9434ba58faf564d4bbb39c7cdab13ca59e7aa798
[gnulib.git] / ChangeLog
1 2010-09-21  Eric Blake  <eblake@redhat.com>
2
3         net_if: enhance tests
4         * tests/test-net_if.c (main): Move signature checks earlier.
5         Print failures to stderr.
6         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7         Document the bug that we do not yet fix.
8
9 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10
11         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12         about gnulib, not GSS.
13
14 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15
16         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18         for Emacs.
19         * build-aux/pmccabe2html: Make Makefile.am example code more
20         cut-and-paste friendly.
21
22 2010-09-21  Simon Josefsson  <simon@josefsson.org>
23
24         * tests/test-net_if.c: New file.
25         * modules/net_if-tests: New file.
26
27 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28
29         pthread: add pthread_spin_destroy
30         * lib/pthread.in.h (pthread_spin_destroy): New function.
31
32 2010-09-19  Bruno Haible  <bruno@clisp.org>
33
34         gnulib-tool: Fix --help output.
35         * gnulib-tool (func_usage): Fix help message.
36         Reported by Reuben Thomas <rrt@sc3d.org>.
37
38 2010-09-18  Jim Meyering  <meyering@redhat.com>
39
40         maint.mk: avoid unexpanded \n in two diagnostics
41         * top/maint.mk (sc_prohibit_always_true_header_tests):
42         Don't use a literal \n in a halt=... assignment.  It would not be
43         expanded, and the two \n bytes would appear in the diagnostic output
44         rather than the desired newline.  Use halt=$$(printf ... instead.
45         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46
47 2010-09-18  Bruno Haible  <bruno@clisp.org>
48
49         netinet_in: Doc tweak.
50         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
51         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
52
53 2010-09-18  Jim Meyering  <meyering@redhat.com>
54
55         init.sh: correct an outdated comment
56         * tests/init.sh (create_exe_shims_):  s/function/alias/
57
58         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
59         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60         a file named "*.exe" is removed between the glob expansion and the
61         processing of that oddly named file.
62
63 2010-09-17  Eric Blake  <eblake@redhat.com>
64
65         mirbsd: add some more support
66         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
67         in BSD family.
68         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
69         devices as OpenBSD.
70         * m4/host-os.m4 (mirbsd): Add MirBSD.
71
72         tests: fix unportable assumption on sys/wait.h
73         * tests/test-sys_wait.c (main): Relax test.
74         * tests/test-stdlib.c (main): Likewise.
75
76         init.sh: accomodate directory with no .exes
77         * tests/init.sh: Accomodate directory containing only scripts.
78
79         tests: avoid compiler warning
80         * tests/test-stdlib.c (main): Use the variable.
81
82         fdutimens, fdutimensat: update signature, again
83         * lib/utimens.h (gl_futimens): Delete, and move signature...
84         (fdutimens): ...here.
85         (fdutimensat): Rearrange signature.
86         (lutimensat): Rename variable for clarity.
87         * lib/fdutimensat.c (fdutimensat): Update signature.
88         * lib/utimens.c (fdutimens): Likewise.
89         (gl_futimens): Delete.
90         (utimens, lutimens): Update callers.
91         * lib/futimens.c (futimens): Likewise.
92         * tests/test-fdutimensat.c: Likewise.
93         * tests/test-utimens.c: Likewise.
94         * tests/test-futimens.h: Update comment.
95         * NEWS: Mention this.
96         Suggested by Paul Eggert.
97
98 2010-09-17  Bruno Haible  <bruno@clisp.org>
99
100         Take over the maintenance of some older macros from Autoconf.
101         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
102         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
103         GNU Autoconf.
104         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
105         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
106
107 2010-09-17  Eric Blake  <eblake@redhat.com>
108
109         fdutimensat: drop atflag validation
110         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
111         with valid fd, to close a race scenario where futimens is
112         unsupported and FILE was replaced by a symlink.
113         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
114         accordingly.
115         Suggested by Paul Eggert.
116
117 2010-09-16  Bruno Haible  <bruno@clisp.org>
118
119         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
120         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
121
122 2010-09-16  Bruno Haible  <bruno@clisp.org>
123
124         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
125         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
126         login_tty exists.
127         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
128
129 2010-09-16  Bruno Haible  <bruno@clisp.org>
130
131         login_tty: Make the replacement code work on BSD systems.
132         * lib/login_tty.c: Include <sys/ioctl.h>.
133         (login_tty): Use ioctl TIOCSCTTY when available.
134         * modules/login_tty (Depends-on): Add sys_ioctl.
135         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
136
137 2010-09-16  Bruno Haible  <bruno@clisp.org>
138
139         login_tty: Stricter unit test.
140         * modules/login_tty-tests (Depends-on): Add tcgetsid.
141         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
142         and tcgetsid() after login_tty.
143         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
144
145 2010-09-16  Bruno Haible  <bruno@clisp.org>
146
147         New module 'tcgetsid'.
148         * lib/tcgetsid.c: New file.
149         * m4/tcgetsid.m4: New file.
150         * modules/tcgetsid: New file.
151         * modules/termios (Depends-on): Add c++defs, warn-on-use.
152         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
153         GNULIB_TCGETSID, HAVE_TCGETSID.
154         * lib/termios.in.h: Include <sys/types.h>.
155         (tcgetsid): New declaration.
156         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
157         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
158         * doc/posix-functions/tcgetsid.texi: Mention the new module.
159         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
160
161 2010-09-16  Bruno Haible  <bruno@clisp.org>
162
163         Tests for module 'termios'.
164         * modules/termios-c++-tests: New file.
165         * modules/termios-tests: New file.
166         * tests/test-termios-c++.cc: New file.
167         * tests/test-termios.c: New file.
168
169         New module 'termios'.
170         * modules/termios: New file.
171         * lib/termios.in.h: New file.
172         * m4/termios_h.m4: New file.
173         * doc/posix-headers/termios.texi: Mention the new module.
174
175 2010-09-16  Eric Blake  <eblake@redhat.com>
176
177         fdutimensat: add an atflag parameter
178         * lib/fdutimensat.c (fdutimensat): Add new parameter.
179         * lib/utimens.h (fdutimensat): Update prototype.
180         * tests/test-fdutimensat.c: Adjust test to match.
181         * NEWS: Document the change.
182         Suggested by Paul Eggert.
183
184 2010-09-16  Bruno Haible  <bruno@clisp.org>
185
186         Fix typos in comments.
187         * lib/striconveh.h: Fix typo in comment.
188         * lib/login_tty.c (login_tty): Likewise.
189
190 2010-09-15  Bruno Haible  <bruno@clisp.org>
191
192         stdlib: clarify MirBSD WEXITSTATUS bug
193         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
194         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
195
196 2010-09-15  Eric Blake  <eblake@redhat.com>
197
198         stdlib: work around MirBSD WEXITSTATUS bug
199         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
200         * modules/stdlib (Depends-on): Add sys_wait.
201         * tests/test-sys_wait.c (main): Enhance test.
202         * tests/test-stdlib.c (main): Likewise.
203         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
204
205         docs: mention MacOS issue with WEXITSTATUS(constant)
206         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
207         issue.
208         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
209
210         strnlen: add tests
211         * modules/strnlen-tests: New file.
212         * tests/test-strnlen.c: Likewise.
213
214 2010-09-14  Bruno Haible  <bruno@clisp.org>
215
216         unistr/base: Avoid link errors when module 'libunistring' is also used.
217         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
218         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
219         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
220         Declare also when HAVE_LIBUNISTRING is set.
221         Reported by Pádraig Brady <P@draigbrady.com>.
222
223 2010-09-14  Eric Blake  <eblake@redhat.com>
224
225         test-rawmemchr: make more robust
226         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
227         (Depends-on, configure.ac): Add needed prerequisites to use it.
228         * modules/memchr-tests (Files, Depends-on, configure.ac):
229         Likewise, to avoid implicit reliance on memchr module prereqs.
230         * tests/test-memchr.c (main): Ensure proper masking.
231         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
232         reads.
233
234         memchr: detect glibc Alpha bug
235         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
236         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
237         Alpha.
238         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
239         * tests/test-memchr.c (main): Enhance test.
240         Reported by Nelson H. F. Beebe.
241
242 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
243
244         fts, getcwd, glob: audit for dirfd returning -1
245         * lib/fts.c (opendir): Remove #define; no longer used.
246         (opendirat): New arg PDIR_FD.  All callers changed.
247         (fts_build, _opendir2): Use new opendirat to avoid the need for
248         dirfd, or for checking whether dirfd returns a negative value.
249         Don't use opendir; always use openat followed by fdopendir.
250         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
251         it.
252         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
253         returns -1 here.
254         * modules/fts (Depends-on): Remove dirfd.
255         * modules/getcwd (Depends-on): Likewise.
256
257 2010-09-13  Eric Blake  <eblake@redhat.com>
258
259         float: fix broken MirBSD header
260         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
261         * doc/posix-headers/float.texi (float.h): Document it.
262
263 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
264
265         fts: use O_NOFOLLOW to avoid race condition when opening a directory
266         * lib/fts.c (opendirat): New arg extra_flags.
267         (__opendir2): Use it to avoid following symlinks when opening
268         a directory, if symlinks are not supposed to be followed.  See
269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
270
271         fdopendir: preserve argument fd before returning
272         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
273         (fdopendir_with_dup, fd_clone_opendir): New static functions.
274         (fdopendir): Use them, arranging for FD to be open to the same
275         directory that it was when it started.  (It might be temporarily
276         closed while fdopendir is running, so this not thread- or
277         signal-safe.)  Be careful to do the right thing even when file
278         descriptors are scarce and dup fails with errno == EMFILE.  See
279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
280
281 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
282
283         regex: Pass the system regex if its only problem is 32-bit regoff_t.
284         * NEWS: Document change.
285         * m4/regex.m4: Disable test for regoff_t size.
286
287 2010-09-13  Jim Meyering  <meyering@redhat.com>
288
289         fts: don't operate on an invalid file descriptor after failed dup
290         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
291         negative file descriptor.
292
293 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
294
295         savedir: add streamsavedir, deprecate fdsavedir
296         * NEWS: Mention deprecation of fdsavedir.
297         * lib/savedir.c (streamsavedir): New extern function, whose name
298         ends in "savedir" to be consistent with the others.  This differs
299         from savedirstream in that it doesn't close its argument.  The
300         next version of GNU tar will use this instead of fdsavedir, to
301         avoid some race conditions and conserve file descriptors.
302         (savedirstream): Reimplement as a wrapper around streamsavedir.
303         (fdsavedir): Add a comment deprecating this function.  As far as
304         I know, only GNU tar used it, and GNU tar doesn't need it any more.
305         * lib/savedir.h (streamsavedir): New decl.
306         (fdsavedir): Add a comment deprecating this.
307
308 2010-09-10  Bruno Haible  <bruno@clisp.org>
309
310         langinfo: Fix last commit.
311         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
312         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
314
315 2010-09-10  Bruno Haible  <bruno@clisp.org>
316
317         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
318         * lib/progreloc.c (O_EXEC): Define fallback.
319
320 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
321
322         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
323         * NEWS: Document recent changes to fcntl-h.
324         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
325         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
326         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
327         Similarly for O_SEARCH; this last was already true, but not documented.
328         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
329         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
330         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
331         Likewise.
332         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
333         is zero, not whether it is defined.
334         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
335         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
336         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
337
338 2010-09-10  Bruno Haible  <bruno@clisp.org>
339
340         langinfo, nl_langinfo: Fix for IRIX 5.3.
341         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
342         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
343         HAVE_LANGINFO_YESEXPR.
344         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
345         HAVE_LANGINFO_YESEXPR.
346         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
347         HAVE_LANGINFO_T_FMT_AMPM is 0.
348         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
349         HAVE_LANGINFO_YESEXPR is 0.
350         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
351         NOEXPR.
352         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
353         * doc/posix-functions/nl_langinfo.texi: Likewise.
354         Reported by Eric Blake.
355
356 2010-09-10  Bruno Haible  <bruno@clisp.org>
357
358         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
359         * doc/glibc-functions/login_tty.texi: Mention the include file problem
360         on FreeBSD 8.0 and OpenBSD 4.6.
361         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
362         * m4/pty_h.m4 (gl_PTY_H): Likewise.
363         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
364         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
365         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
366         ac_includes_default.
367         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
368
369 2010-09-09  Eric Blake  <eblake@redhat.com>
370
371         strsignal: work around NetBSD bug
372         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
373         * lib/string.in.h (includes): Likewise.
374         * doc/posix-functions/strsignal.texi (strsignal): Document the
375         bug.
376         Reported by Nelson H. F. Beebe.
377
378         gnulib-tool: work with NetBSD /bin/sh
379         * gnulib-tool (func_cache_var, func_cache_lookup_module)
380         (func_get_description, func_get_comment, func_get_status)
381         (func_get_notice, func_get_applicability, func_get_filelist)
382         (func_get_dependencies, func_get_autoconf_early_snippet)
383         (func_get_autoconf_snippet, func_get_automake_snippet)
384         (func_get_include_directive, func_get_link_directive)
385         (func_get_license, func_get_maintainer, func_import): Avoid
386         shell syntax errors from parsing syntax extensions.
387
388 2010-09-09  Bruno Haible  <bruno@clisp.org>
389
390         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
391         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
392         a reliable way to determine whether the 'alias' command works.
393
394 2010-09-08  Jim Meyering  <meyering@redhat.com>
395
396         init.sh: penalize a set-x-impaired shell; don't disqualify it
397         * tests/init.sh: Too many shells corrupt application stderr when
398         you set -x, so we can't afford to disqualify them, since at least
399         on Irix-6.5, that would disqualify all bourne shells.
400         Instead, use a two-pass approach.
401         On the first pass, try to find a shell that meets the stricter
402         condition that set -x does not corrupt stderr.
403         If no shell meets the stricter condition, retest each candidate
404         shell, but without that extra condition.  Finally, when
405         VERBOSE=yes is requested and set -x might cause trouble, simply
406         issue a warning and refrain from enabling debug output.
407
408 2010-09-08  Eric Blake  <eblake@redhat.com>
409
410         unsetenv: fix OpenBSD bug
411         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
412         * doc/posix-functions/unsetenv.texi (unsetenv): Update
413         documentation.
414         Reported by Jim Meyering.
415
416         strtod: work around IRIX 6.5 bug
417         * lib/strtod.c (strtod): Reparse number on shorter string if
418         exponent parse was invalid.
419         * tests/test-strtod.c (main): Add check for "0x1p 2".
420         Reported by Tom G. Christensen.
421
422         getopt: optimize previous patch
423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
424         empty variable.  Speed up awk script.
425         Reported by Paolo Bonzini.
426
427 2010-09-08  Jim Meyering  <meyering@redhat.com>
428
429         test.sh: disqualify shells for which set -x corrupts stderr
430         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
431         and OpenBSD 4.7.  They make it so with "set -x", environment settings
432         appear in stderr output.  For example, this command:
433             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
434         prints "P=1" on those two systems:
435
436 2010-09-08  Bruno Haible  <bruno@clisp.org>
437
438         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
439         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
440         commands, because some shells ignore redirections when there is an
441         error in the command lookup.
442         Reported by Eric Blake.
443
444 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
445
446         * lib/regex.h: Fix a mention of `regex_compile' (should be
447         `re_compile_pattern').
448         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
449         (re_set_registers): Correct name of parameter in comment.
450
451         * doc/regex.texi: Add documentation for missing syntax flags.
452         Remove commented-out documentation of defunct syntax option
453         RE_NO_EMPTY_ALTS.
454         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
455         Add documentation of re_set_registers.
456         Document trick to re-use a pattern buffer by setting fastmap manually.
457         Update documentation of struct re_pattern_buffer per public members.
458         Uncomment documentation of equivalence class operators and
459         collating symbol operators, since they are now implemented,
460         Explain leftmost-longest matching in relation to alternatives.
461         Tidy documentation of substring matching.
462         Remove POSIX documentation, which is done better in
463         glibc, and refer the reader there. Keep BSD API documentation, as
464         that is not readily available elsewhere.
465
466 2010-09-07  Eric Blake  <eblake@redhat.com>
467
468         getopt: handle POSIXLY_CORRECT set but not exported
469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
470         export state of POSIXLY_CORRECT, due to bash set -o posix.
471         Reported by Dustin J. Mitchell.
472
473 2010-09-05  Bruno Haible  <bruno@clisp.org>
474
475         gnulib-tool: Highlight the changed options.
476         * gnulib-tool (func_usage): Display the --import, --add-import,
477         --remove-import explanations in bold font.
478
479 2010-09-06  Karl Berry  <karl@gnu.org>
480
481         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
482
483 2010-09-05  Bruno Haible  <bruno@clisp.org>
484
485         uniwidth/width: Update comment.
486         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
487         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
488
489 2010-09-05  Bruno Haible  <bruno@clisp.org>
490
491         isinf, isnan: Relax license.
492         * modules/isinf (License): Change from GPL to LGPL, with consent from
493         Ben Pfaff.
494         * modules/isnan (License): Likewise.
495         Requested by Ludovic Courtès.
496
497 2010-09-04  Bruno Haible  <bruno@clisp.org>
498
499         gnulib-tool: Help migration from --import to --add-import or --update.
500         * gnulib-tool: Emit a verbose error message when --import is used
501         without any module name.
502
503 2010-09-04  Bruno Haible  <bruno@clisp.org>
504
505         Update doc about gnulib-tool.
506         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
507         'gnulib-tool --update' in more detail.
508         Reported by Eric Blake.
509
510 2010-09-04  Bruno Haible  <bruno@clisp.org>
511
512         gnulib-tool: Change --import. New options --add/remove-import.
513         * gnulib-tool: New options --add-import, --remove-import.
514         (func_usage): Document them.
515         (have_associative): Define always.
516         (func_import): In import mode, don't merge the specified settings with
517         the cached settings. Implement remove-import mode.
518         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
519         Explain when to use them versus --import.
520         (Simple update): Use --add-import instead of --import.
521         * NEWS: Mention the change.
522
523 2010-09-04  Bruno Haible  <bruno@clisp.org>
524
525         * doc/gnulib-tool.texi (Initial import): Update paragraph about
526         separate gnulib.mk.
527
528 2010-09-04  Bruno Haible  <bruno@clisp.org>
529
530         gnulib-tool: Don't talk about CVS any more.
531         * gnulib-tool (func_usage, func_import): Write "version control"
532         instead of CVS.
533
534 2010-09-04  Jim Meyering  <meyering@redhat.com>
535
536         maint.mk: avoid obscure sc_copyright_check failure in coreutils
537         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
538         false positives (whose names may be ill-chosen) when searching
539         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
540         would cause a false-positive.
541
542         avoid coreutils "make distcheck" failure
543         Coreutils tests with an absolute build directory name that contains
544         a space.  Not quoting this directory name caused a failure.
545         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
546         * tests/test-vc-list-files-cvs.sh: Likewise.
547
548 2010-09-04  Bruno Haible  <bruno@clisp.org>
549
550         gnulib-tool: Avoid error when run in a package without Makefile.am.
551         * gnulib-tool: When collecting the m4dirs in a package that does not
552         have a Makefile.am, eliminate those directories that contain no
553         gnulib-cache.m4. Fix expression that counts these directories.
554
555 2010-09-04  Bruno Haible  <bruno@clisp.org>
556
557         update-copyright test: Improve output when perl is missing or too old.
558         * tests/test-update-copyright.sh: Move test of Perl version down after
559         the test whether Perl exists. Provide an explanation relating Perl's
560         error message to Automake's SKIP: message.
561
562 2010-09-04  Bruno Haible  <bruno@clisp.org>
563
564         Don't augment PATH in TESTS_ENVIRONMENT.
565         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
566         set abs_aux_dir instead of augmenting PATH.
567         * modules/vc-list-files-tests (Makefile.am): Likewise.
568         * tests/test-update-copyright.sh: Augment PATH here.
569         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
570         path_prepend_.
571         * tests/test-vc-list-files-git.sh: Likewise.
572
573 2010-09-04  Jim Meyering  <meyering@redhat.com>
574
575         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
576         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
577
578 2010-09-04  Bruno Haible  <bruno@clisp.org>
579
580         strdup: Fix compilation error in C++ mode.
581         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
582         the macro.
583
584 2010-09-04  Bruno Haible  <bruno@clisp.org>
585
586         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
587         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
588         macro into a function.
589         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
590
591 2010-09-04  Bruno Haible  <bruno@clisp.org>
592
593         Set PATH_SEPARATOR the same way autoconf does.
594         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
595         the value of PATH_SEPARATOR the same way autoconf-generated configure
596         scripts do.
597         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
598         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
599
600 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
601
602         Set PATH_SEPARATOR the same way autoconf does.
603         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
604         the same way autoconf-generated configure scripts do.
605         * posix-modules: Likewise.
606
607 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
608
609         hash: fix safe_hasher const typo
610         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
611         const; otherwise, there is a type error later.
612
613 2010-09-02  Jim Meyering  <meyering@redhat.com>
614
615         test-update-copyright.sh: require perl 5.8.0
616         * tests/test-update-copyright.sh: Require 5.8.0,
617         which Tom G. Christensen has confirmed is adequate,
618         while 5.6.1 is not.
619
620 2010-09-02  Eric Blake  <eblake@redhat.com>
621
622         tests: init.sh improvements for re-exec'ing with zsh
623         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
624         -vx through shell re-exec.
625         Reported by Tom G. Christensen.
626
627         wctype: fix typo in previous commit
628         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
629         Reported by Ludovic Courtès.
630
631 2010-09-02  Jim Meyering  <meyering@redhat.com>
632
633         test-update-copyright.sh: skip test if Perl is too old
634         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
635         Reported by Tom G. Christensen.
636
637 2010-09-02  Bruno Haible  <bruno@clisp.org>
638
639         wctype: Avoid compilation error on IRIX 6.5.30.
640         * lib/wctype.in.h (iswblank): Declare with a replacement if
641         REPLACE_ISWBLANK is set.
642         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
643         declared. Set REPLACE_ISWBLANK.
644         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
645         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
646         * doc/posix-headers/wctype.texi: Likewise.
647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
648
649 2010-09-01  Bruno Haible  <bruno@clisp.org>
650
651         New module 'socketlib'.
652         * modules/socketlib: New file.
653         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
654         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
655         * modules/sockets (Depends-on): Add socketlib.
656         Suggested by Sam Steingold <sds@gnu.org>.
657
658 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
659
660         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
661
662         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
663         when one needs search access to a directory but not read access.
664         On systems where it is available, it works in some cases where
665         O_RDONLY does not, namely on directories that are searchable but
666         not readable, and which need only to be searchable.  If O_SEARCH
667         is not available, fall back to the traditional method of using
668         O_RDONLY.
669
670         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
671         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
672         when opening a directory that needs only to be searchable.
673         * lib/chdir-safer.c (chdir_no_follow): Likewise.
674         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
675         * lib/openat-proc.c (openat_proc_name): Likewise.
676         * lib/openat.c (openat_needs_fchdir): Likewise.
677         * lib/save-cwd.c (save_cwd): Likewise.
678         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
679
680 2010-08-28  Bruno Haible  <bruno@clisp.org>
681
682         New module 'host-cpu-c-abi'.
683         * modules/host-cpu-c-abi: New file.
684         * m4/host-cpu-c-abi.m4: New file, based on part of
685         clisp/src/m4/general.m4.
686         Requested by Sam Steingold <sds@gnu.org>.
687
688 2010-08-31  Eric Blake  <eblake@redhat.com>
689         and Jim Meyering  <meyering@redhat.com>
690
691         hash: factor, and guard against misbehaving hasher function
692         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
693         of table->hasher's return value.  Also protect against a hash value
694         so large that adding it to table->bucket results in a NULL pointer.
695         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
696         Use it in place of open-coded check-and-abort.
697
698 2010-08-30  Bruno Haible  <bruno@clisp.org>
699
700         hash: silence spurious clang warning
701         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
702         Reported by Eric Blake.
703
704 2010-08-30  Eric Blake  <eblake@redhat.com>
705
706         strstr, memmem, strcasestr: avoid leaked shell message
707         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
708         FreeBSD.
709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
711
712         tests: silence clang warning
713         * tests/test-malloca.c (do_allocation): Avoid dead store.
714
715 2010-08-29  Bruno Haible  <bruno@clisp.org>
716
717         gettext: Fix recent mistake.
718         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
719
720 2010-08-29  Bruno Haible  <bruno@clisp.org>
721
722         selinux-h: Offer a --without-selinux option.
723         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
724         --without-selinux was specified, skip all tests and define
725         HAVE_SELINUX_SELINUX_H to 0.
726         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
727         set LIB_SELINUX to empty.
728         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
729         gl_LIBSELINUX. If --without-selinux was specified, replace
730         selinux/context.h.
731         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
732
733 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
734             Bruno Haible  <bruno@clisp.org>
735
736         Make the module 'realloc-gnu' work again on AIX and OSF/1.
737         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
738         of HAVE_REALLOC.
739         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
740         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
741         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
742         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
743
744 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
745             Bruno Haible  <bruno@clisp.org>
746
747         Make the module 'calloc-gnu' work again on AIX and OSF/1.
748         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
749         HAVE_CALLOC.
750         * lib/xmalloc.c: Update accordingly.
751         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
752         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
753         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
754
755 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
756             Bruno Haible  <bruno@clisp.org>
757
758         Make the module 'malloc-gnu' work again on AIX and OSF/1.
759         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
760         HAVE_MALLOC.
761         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
762         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
763         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
764
765 2010-08-29  Bruno Haible  <bruno@clisp.org>
766
767         Update modules list.
768         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
769         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
770         (String handling <string.h>): Add astrxfrm.
771         (File system functions): Add readlinkat.
772
773 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
774
775         Tests for module 'realloc-gnu'.
776         * modules/realloc-gnu-tests: New file.
777         * tests/test-realloc-gnu.c: New file.
778
779         Tests for module 'calloc-gnu'.
780         * modules/calloc-gnu-tests: New file.
781         * tests/test-calloc-gnu.c: New file.
782
783         Tests for module 'malloc-gnu'.
784         * modules/malloc-gnu-tests: New file.
785         * tests/test-malloc-gnu.c: New file.
786
787 2010-08-28  Bruno Haible  <bruno@clisp.org>
788
789         Rename module 'realloc' -> 'realloc-gnu'.
790         * modules/realloc-gnu: New file, copied from modules/realloc.
791         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
792         obsolete.
793         * modules/mgetgroups (Depends-on): Update.
794         * doc/posix-functions/realloc.texi: Update.
795         * NEWS: Mention the change.
796
797         Rename module 'calloc' -> 'calloc-gnu'.
798         * modules/calloc-gnu: New file, copied from modules/calloc.
799         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
800         obsolete.
801         * doc/posix-functions/calloc.texi: Update.
802         * NEWS: Mention the change.
803
804         Rename module 'malloc' -> 'malloc-gnu'.
805         * modules/malloc-gnu: New file, copied from modules/malloc.
806         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
807         obsolete.
808         * modules/argp (Depends-on): Update.
809         * modules/regex (Depends-on): Update.
810         * doc/posix-functions/malloc.texi: Update.
811         * NEWS: Mention the change.
812
813 2010-08-28  Eric Blake  <eblake@redhat.com>
814
815         pread, pwrite: add missing dependency
816         * modules/pread (Depends-on): Add extensions.
817         * modules/pwrite (Depends-on): Likewise.
818
819 2010-08-28  Bruno Haible  <bruno@clisp.org>
820
821         unistr/u*-strchr: Fix tests dependencies.
822         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
823         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
824         Reported by Ian Beckwith <ianb@erislabs.net>.
825
826 2010-08-28  Bruno Haible  <bruno@clisp.org>
827
828         read-file: Don't occupy too much unused memory.
829         * lib/read-file.c (fread_file): Shrink the buffer at the end.
830
831 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
832             Eric Blake  <eblake@redhat.com>
833             Bruno Haible  <bruno@clisp.org>
834
835         read-file: Avoid memory reallocations with regular files.
836         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
837         (fread_file): With regular files, use the remaining length as the
838         initial buffer size.  Check against overflow.
839         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
840         sys_stat.
841
842 2010-08-28  Bruno Haible  <bruno@clisp.org>
843
844         ftello: Relax license.
845         * modules/ftello (License): Relax to LGPLv2+.
846         Reported by Eric Blake.
847
848 2010-08-28  Bruno Haible  <bruno@clisp.org>
849
850         Avoid relocwrapper link errors due to gnulib replacement functions.
851         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
852         function.
853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
854
855 2010-08-28  Bruno Haible  <bruno@clisp.org>
856
857         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
858         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
859         defined.
860         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
861         Suggested by Eric Blake.
862
863 2010-08-28  Bruno Haible  <bruno@clisp.org>
864
865         sys_socket, netdb: Ensure socklen_t gets defined.
866         * modules/sys_socket (Depends-on): Add socklen.
867         * modules/netdb (Depends-on): Likewise.
868         * modules/getaddrinfo (Depends-on): Remove socklen.
869         * modules/getsockopt (Depends-on): Likewise.
870         * modules/setsockopt (Depends-on): Likewise.
871         * tests/test-sys_socket.c: Check that socklen_t is defined.
872         * tests/test-netdb.c: Likewise.
873         * m4/socklen.m4: Update comments.
874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
875
876 2010-08-27  Eric Blake  <eblake@redhat.com>
877
878         login_tty: add missing dependency
879         * modules/login_tty (Depends-on): Add pty.
880
881 2010-08-26  Eric Blake  <eblake@redhat.com>
882
883         lib-symbol-versions: fix m4 quoting
884         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
885         format for AC_LINK_IFELSE.
886
887         glob: fix compile test
888         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
889
890         btowc: fix missing file
891         * modules/btowc (Files): Also ship locale-fr.m4.
892
893         lseek: fix link test
894         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
895         AC_LINK_IFELSE.
896
897         include_next: silence autoconf 2.68 warning
898         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
899         AC_COMPILE_IFELSE as special.
900         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
901         autoconf < 2.68.
902
903         acl: fix compilation test
904         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
905         AC_COMPILE_IFELSE.
906
907 2010-08-26  Bruno Haible  <bruno@clisp.org>
908
909         Modernize AC_TRY_RUN invocations.
910         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
911         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
912         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
913         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
914         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
915         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
918         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
919         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
920         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
921         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
922         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
923         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
924         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
925         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
926         gl_MBRLEN_NUL_RETVAL): Likewise.
927         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
928         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
929         Likewise.
930         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
931         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
932         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
933         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
934         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
935         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
936         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
937         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
938         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
939         Likewise.
940         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
941         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
945         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
947         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
948         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
950
951 2010-08-26  Bruno Haible  <bruno@clisp.org>
952
953         Modernize AC_TRY_LINK invocations.
954         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
955         AC_TRY_LINK.
956         * m4/argp.m4 (gl_ARGP): Likewise.
957         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
958         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
959         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
960         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
961         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
962         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
963         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
964         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
965         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
966         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
967         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
968         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
969         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
970         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
971         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
972         * m4/hostent.m4 (gl_HOSTENT): Likewise.
973         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
974         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
975         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
976         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
977         Likewise.
978         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
979         Likewise.
980         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
981         Likewise.
982         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
983         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
984         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
985         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
986         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
987         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
988         * m4/servent.m4 (gl_SERVENT): Likewise.
989         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
990         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
991         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
992         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
993         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
994         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
995         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
997         * modules/tsearch-tests (configure.ac): Likewise.
998
999 2010-08-26  Bruno Haible  <bruno@clisp.org>
1000
1001         Modernize AC_TRY_COMPILE invocations.
1002         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1003         AC_TRY_COMPILE.
1004         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1005         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1006         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1007         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1008         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1009         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1010         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1011         * m4/lock.m4 (gl_LOCK): Likewise.
1012         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1013         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1014         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1015         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1016         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1017         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1018         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1020         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1021         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1022         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1023         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1024         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1025         extraneous semicolon.
1026
1027 2010-08-26  Jim Meyering  <meyering@redhat.com>
1028
1029         stat-time: relax license LGPL
1030         * modules/stat-time (License): Change from GPL to LGPL,
1031         with consent from all contributors, for use in libguile.
1032         Requested by Ludovic Courtès.
1033
1034 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1035
1036         poll: return immediately on POLLHUP.
1037         * lib/poll.c (poll): Always set timeout before wait_timeout is
1038         computed.
1039
1040 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1041
1042         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1043         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1044         rmdir ("dir/.//"), unlinkat.
1045
1046 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         stdbool: avoid spurious failure with modern xlc
1049         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1050
1051 2010-08-24  Bruno Haible  <bruno@clisp.org>
1052
1053         getloadavg: simplify code
1054         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1055         gl_have_func. Update comments.
1056
1057 2010-08-24  Eric Blake  <eblake@redhat.com>
1058
1059         getloadavg: don't define SVR4 on cygwin
1060         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1061         only define SVR4 when -lkvm is required.
1062         Reported by Yaakov Selkowitz.
1063
1064 2010-08-24  Bruno Haible  <bruno@clisp.org>
1065
1066         priv-set: fix comment
1067         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1068
1069 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1070
1071         priv-set: fix comments
1072         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1073         to match code, as suggested by David Bartley in:
1074         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1075
1076 2010-08-23  Eric Blake  <eblake@redhat.com>
1077
1078         stdbool: avoid rejecting clang
1079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1080         * tests/test-stdbool.c: Enable more tests if using the system
1081         <stdbool.h> instead of the gnulib replacement.
1082         (main): Move xlc bug test to a runtime test for all compilers.
1083         Reported by Anders Kaseorg.
1084
1085         argz: fix shell quoting issue
1086         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1087         Reported by Charles Wilson.
1088
1089 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1090             Erik Faye-Lund <kusmabite@gmail.com>
1091
1092         poll, select: handle ERROR_BROKEN_PIPE.
1093         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1094         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1095         * lib/select.c (win32_compute_revents): Do not mark a pipe
1096         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1097
1098 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1099
1100         fts: allow compilation with C++
1101         * lib/fts_.h: Specify extern "C" linkage with C++.
1102
1103 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1104
1105         Fix gnulib-tool sed script de-commentation for AIX sed.
1106         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1107         sed.
1108
1109 2010-08-17  Eric Blake  <eblake@redhat.com>
1110
1111         test-stddef: test for (some) offsetof bugs
1112         * tests/test-stddef.c: Enhance test to ensure correct type of
1113         offsetof.
1114         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1115         that we are not fixing at this time.
1116
1117 2010-08-15  Bruno Haible  <bruno@clisp.org>
1118
1119         stpncpy: Allow stpncpy to be defined as a macro.
1120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1121         if it's already correctly declared.
1122         * lib/string.in.h (stpncpy): Undefine before redefining.
1123         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1124
1125 2010-08-14  Bruno Haible  <bruno@clisp.org>
1126
1127         Rename module 'memxfrm' to 'amemxfrm'.
1128         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1129         (amemxfrm): Renamed from memxfrm.
1130         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1131         (amemxfrm): Renamed from memxfrm.
1132         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1133         * NEWS: Mention the change.
1134         * MODULES.html.sh (String handling <string.h>): Update.
1135         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1136         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1137         * lib/unicase/u16-casexfrm.c: Likewise.
1138         * lib/unicase/u32-casexfrm.c: Likewise.
1139         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1140         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1141         * lib/uninorm/u16-normxfrm.c: Likewise.
1142         * lib/uninorm/u32-normxfrm.c: Likewise.
1143         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1144         memxfrm.
1145         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1146         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1147         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1148         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1149         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1150         Suggested by Paul Eggert.
1151
1152 2010-08-14  Bruno Haible  <bruno@clisp.org>
1153
1154         Tests for module 'astrxfrm'.
1155         * modules/astrxfrm-tests: New file.
1156         * tests/test-astrxfrm.c: New file.
1157
1158         New module 'astrxfrm'.
1159         * lib/astrxfrm.h: New file.
1160         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1161         * modules/astrxfrm: New file.
1162
1163 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1164
1165         regex: Tweak doc.
1166         * doc/regex.texi (Overview): Don't mention regex.c.
1167         (GNU Regular Expression Compiling): Likewise.
1168         (Match-end-of-line Operator): Mention 'not_eol'.
1169
1170 2010-08-14  Brian Gough  <bjg@gnu.org>
1171             Bruno Haible  <bruno@clisp.org>
1172
1173         git-merge-changelog: add doc relating to use with bzr and hg.
1174         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1175
1176 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1177
1178         pthread: fix pthread.h creation for srcdir != builddir
1179         * modules/pthread (Makefile.am): Fix the rule to work also in a
1180         non-srcdir build.
1181
1182 2010-08-13  Karl Berry  <karl@gnu.org>
1183
1184         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1185         * doc/posix-*/*: force line break before @url of POSIX
1186         specifications.
1187         Suggested by Werner Lemberg.
1188
1189 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1190
1191         strtod: fix const diagnostic
1192         * lib/strtod.c (strtod): Don't assign const char * to char *,
1193         as this elicits a warning from GCC when warnings are enabled.
1194
1195 2010-08-10  Pádraig Brady <P@draigbrady.com>
1196         and Eric Blake  <eblake@redhat.com>
1197
1198         copy-acl: ignore ENOTSUP on HP-UX
1199         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1200         so that it is available for HP-UX.
1201         * lib/copy-acl.c (qcopy_acl): Use it.
1202         Reported by Patrick M. Callahan.
1203
1204 2010-08-10  Eric Blake  <eblake@redhat.com>
1205
1206         open, chown: relax license
1207         * modules/open (License): Change to LGPLv2+, with consent by all
1208         authors, for use in augeas.
1209         * modules/chown (License): Likewise.
1210         * modules/lchown (Likewise): Likewise.
1211         Requested by Adam Stokes.
1212
1213 2010-08-09  Karl Berry  <karl@gnu.org>
1214
1215         * build-aux/ar-lib: new file, import from Automake.
1216         * config/srclist.txt: autocheck for updates.
1217
1218 2010-08-09  Eric Blake  <eblake@redhat.com>
1219
1220         readlinkat: adjust client modules
1221         * modules/areadlinkat (Depends-on): Use readlinkat, not
1222         symlinkat.
1223         * modules/areadlinkat-with-size (Depends-on): Likewise.
1224
1225         mknod: be more vocal about danger of running tests as root
1226         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1227         root, since that is just asking for problems.
1228         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1229
1230         readlinkat: split into its own module
1231         * modules/symlinkat: Split readlinkat...
1232         * modules/readlinkat: ...into separate module.
1233         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1234         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1235         * lib/symlinkat.c (readlinkat): Move...
1236         * lib/readlinkat.c: ...into new file.
1237         * modules/symlinkat-tests: Split readlinkat test...
1238         * modules/readlinkat-tests: ...into separate module.
1239         * tests/test-symlinkat.c: Split...
1240         * tests/test-readlinkat.c: ...into new file.
1241         * NEWS: Document the split.
1242         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1243         * lib/unistd.in.h (readlinkat): Likewise.
1244         Suggested by Bruno Haible.
1245
1246 2010-08-08  Bruno Haible  <bruno@clisp.org>
1247
1248         memxfrm: Speed up.
1249         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1250         that usually only one call to strxfrm is necessary for each string
1251         part.
1252         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1253
1254 2010-08-07  Karl Berry  <karl@gnu.org>
1255
1256         * doc/posix-headers/limits.texi,
1257         * doc/posix-functions/malloc.texi,
1258         * doc/posix-functions/strsignal.texi: missing @item.
1259         * doc/ld-version-script.texi: spurious leading i.
1260         * doc/regex.texi (Interval Operators): no commas inside @var.
1261
1262 2010-08-01  Bruno Haible  <bruno@clisp.org>
1263
1264         Integrate the regex documentation.
1265         * doc/gnulib.texi: Define 'cn' index.
1266         (Regular expressions): New a chapter that includes regex.texi and
1267         regexprops-generic.texi.
1268         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1269         syntax.
1270
1271         Whitespace cleanup.
1272         * doc/regex.texi: Remove trailing spaces.
1273
1274         Add regex documentation.
1275         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1276         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1277         Written by Kathy A. Hargreaves and Karl Berry.
1278
1279 2010-08-01  Bruno Haible  <bruno@clisp.org>
1280
1281         link: Update documentation.
1282         * doc/posix-functions/link.texi: Update regarding Solaris.
1283
1284 2010-07-31  Bruno Haible  <bruno@clisp.org>
1285
1286         Update modules list.
1287         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1288         (String handling <string.h>): Add memcmp2, memxfrm.
1289         (Container data structures): Add xlist, xsublist, xoset.
1290         (Core language properties): Add alignof, unused-parameter.
1291         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1292         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1293         (Unibyte characters <ctype.h>): New section.
1294         (String handling <string.h>): New section.
1295         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1296         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1297         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1298         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1299         tan, tanh, tanl, y0, y1, yn.
1300         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1301         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1302         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1303         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1304         unlockpt, vdprintf, vdprintf-posix.
1305         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1306         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1307         xconcat-filename.
1308         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1309         getdtablesize, pipe2, pipe2-safer.
1310         (Security): New section.
1311         (Networking functions): Add accept4.
1312         (Signal handling): Add sigpipe.
1313         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1314         mbmemcasecoll.
1315         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1316         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1317         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1318         pipe-filter-ii.
1319         (Misc): Add argp-version-etc, login_tty, parse-duration.
1320
1321 2010-07-31  Bruno Haible  <bruno@clisp.org>
1322
1323         Improve doc in MODULES.html.
1324         * modules/linkat (Description): Add the word "function".
1325         * modules/mkfifo (Description): Likewise.
1326         * modules/mknod (Description): Likewise.
1327         * modules/remove (Description): Likewise.
1328         * modules/renameat (Description): Likewise.
1329         * modules/stat (Description): Likewise.
1330         * modules/symlink (Description): Likewise.
1331         * modules/unlink (Description): Likewise.
1332
1333 2010-07-31  Bruno Haible  <bruno@clisp.org>
1334
1335         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1336         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1337         option --enable/disable-c++ instead of --enable/disable-cxx.
1338         * NEWS: Mention the change.
1339
1340 2010-07-31  Bruno Haible  <bruno@clisp.org>
1341
1342         readlink, areadlink: Relax test a bit.
1343         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1344         alternative to ENOTDIR.
1345         * tests/test-areadlink.h (test_areadlink): Likewise.
1346         Reported by Rainer Tammer.
1347
1348 2010-07-31  Bruno Haible  <bruno@clisp.org>
1349
1350         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1351         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1352         character, perform the search using U_STRCHR.
1353         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1354         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1355         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1356         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1357         Suggested by Paolo Bonzini.
1358
1359 2010-07-31  Bruno Haible  <bruno@clisp.org>
1360
1361         unistr/u*-strstr: Fix dependencies.
1362         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1363         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1364         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1365
1366 2010-07-31  Bruno Haible  <bruno@clisp.org>
1367
1368         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1369         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1370         the beginning of the loop.
1371         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1372         cases in 'switch' statement.
1373
1374         unistr/u8-strchr: Fix several bugs.
1375         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1376         the string. When not found, return NULL, not a pointer near the end.
1377
1378         More tests for unistr/u8-strchr.
1379         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1380         that the function does not read past the first occurrence of the byte
1381         being searched.
1382         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1383         * tests/unistr/test-u16-strchr.c (main): New function.
1384         * tests/unistr/test-u32-strchr.c (main): New function.
1385
1386 2010-07-31  Bruno Haible  <bruno@clisp.org>
1387
1388         posix-modules: Ignore backup files of documentation files.
1389         * posix-modules: grep only through files named *.texi.
1390
1391 2010-07-31  Bruno Haible  <bruno@clisp.org>
1392
1393         symlinkat: Fix documentation.
1394         * doc/posix-functions/readlinkat.texi: Fix module name.
1395
1396 2010-07-31  Bruno Haible  <bruno@clisp.org>
1397
1398         fchownat: Replace also when chown has the trailing slash bug.
1399         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1400         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1401         introduced on 2010-04-10.
1402         Reported by Rainer Tammer.
1403
1404 2010-07-31  Bruno Haible  <bruno@clisp.org>
1405
1406         linkat: Work around AIX 7.1 bug.
1407         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1408         whether linkat handles trailing slash correctly. If not, replace linkat
1409         and define LINKAT_TRAILING_SLASH_BUG.
1410         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1411         check whether (fd1,file1) points to a directory if file1 or file2 ends
1412         in a slash. Code taken from lib/link.c.
1413         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1414         Reported by Rainer Tammer.
1415
1416 2010-07-31  Bruno Haible  <bruno@clisp.org>
1417
1418         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1419         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1420         This disables an xlc optimization that was causing wrong test results.
1421         Reported by Rainer Tammer.
1422
1423 2010-07-31  Bruno Haible  <bruno@clisp.org>
1424
1425         iconv: Work around AIX 6.1..7.1 bug.
1426         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1427         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1428         cross-compiling, guess no on all versions of AIX.
1429         Reported by Rainer Tammer.
1430
1431 2010-07-31  Bruno Haible  <bruno@clisp.org>
1432
1433         readlink: Relax test a bit.
1434         * tests/test-readlink.h (test_readlink): Allow different errno value
1435         when readlink is called with a file name that ends in / and refers to
1436         a file.
1437         Suggested by Eric Blake.
1438         Reported by Rainer Tammer.
1439
1440 2010-07-31  Bruno Haible  <bruno@clisp.org>
1441
1442         copysign: Does not require -lm on glibc systems.
1443         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1444         gl_COMMON_DOUBLE_MATHFUNC.
1445         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1446
1447 2010-07-31  Bruno Haible  <bruno@clisp.org>
1448
1449         duplocale: Work around AIX 7.1 bug.
1450         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1451         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1452         * lib/duplocale.c (rpl_duplocale): Update comment.
1453         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1454         Reported by Rainer Tammer.
1455
1456 2010-07-30  Bruno Haible  <bruno@clisp.org>
1457
1458         dirfd: Avoid link error on AIX 7.1.
1459         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1460         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1461         exist, set REPLACE_DIRFD.
1462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1463         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1464         * doc/posix-functions/dirfd.texi: Update.
1465         Reported by Rainer Tammer.
1466
1467 2010-07-30  Eric Blake  <eblake@redhat.com>
1468
1469         strtod: next round of AIX fixes
1470         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1471         exponent.
1472         * tests/test-strtod.c (main): Enhance tests.
1473         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1474         Reported by Rainer Tammer.
1475
1476         futimens: fix configure check
1477         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1478         Reported by Bruno Haible.
1479
1480 2010-07-30  Bruno Haible  <bruno@clisp.org>
1481
1482         getline: Update regarding AIX.
1483         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1484         Reported by Rainer Tammer.
1485
1486 2010-07-30  Bruno Haible  <bruno@clisp.org>
1487
1488         wcwidth: Drop replacement on AIX 7.
1489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1490         AIX 7.
1491         Reported by Rainer Tammer.
1492
1493 2010-07-30  Bruno Haible  <bruno@clisp.org>
1494
1495         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1497         a 'char *'.
1498         Reported by Rainer Tammer.
1499
1500 2010-07-30  Bruno Haible  <bruno@clisp.org>
1501
1502         unlink: Update regarding AIX.
1503         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1504         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1505         Reported by Rainer Tammer.
1506
1507 2010-07-30  Bruno Haible  <bruno@clisp.org>
1508
1509         symlink: Update regarding AIX.
1510         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1511         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1512         Reported by Rainer Tammer.
1513
1514 2010-07-30  Bruno Haible  <bruno@clisp.org>
1515
1516         strndup: Update regarding AIX.
1517         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1518         AIX 7.
1519         Reported by Rainer Tammer.
1520
1521 2010-07-30  Bruno Haible  <bruno@clisp.org>
1522
1523         stat: Update regarding AIX.
1524         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1525         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1526         Reported by Rainer Tammer.
1527
1528 2010-07-30  Bruno Haible  <bruno@clisp.org>
1529
1530         truncl: Fix autoconf test.
1531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1532         whether truncl works.
1533         Reported by Rainer Tammer.
1534
1535 2010-07-30  Bruno Haible  <bruno@clisp.org>
1536
1537         round: Update regarding AIX.
1538         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1539         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1540         Reported by Rainer Tammer.
1541
1542 2010-07-30  Bruno Haible  <bruno@clisp.org>
1543
1544         rename: Update regarding AIX.
1545         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1546         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1547         Reported by Rainer Tammer.
1548
1549 2010-07-30  Bruno Haible  <bruno@clisp.org>
1550
1551         printf.m4: Update regarding AIX.
1552         * m4/printf.m4: Update comments regarding AIX.
1553         Reported by Rainer Tammer.
1554
1555 2010-07-30  Bruno Haible  <bruno@clisp.org>
1556
1557         iconv: Update regarding AIX.
1558         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1559         AIX 7.
1560         Reported by Rainer Tammer.
1561
1562 2010-07-30  Bruno Haible  <bruno@clisp.org>
1563
1564         getopt: Update regarding AIX.
1565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1566         no on AIX.
1567         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1568         Reported by Rainer Tammer.
1569
1570 2010-07-30  Bruno Haible  <bruno@clisp.org>
1571
1572         ldexpl; Update regarding AIX.
1573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1574         on AIX 7.
1575         Reported by Rainer Tammer.
1576
1577 2010-07-30  Bruno Haible  <bruno@clisp.org>
1578
1579         frexpl: Update regarding AIX.
1580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1581         on AIX 7.
1582         Reported by Rainer Tammer.
1583
1584 2010-07-30  Bruno Haible  <bruno@clisp.org>
1585
1586         open, fopen: Update regarding AIX.
1587         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1588         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1589         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1590         * doc/posix-functions/fopen.texi: Likewise.
1591         Reported by Rainer Tammer.
1592
1593 2010-07-30  Bruno Haible  <bruno@clisp.org>
1594
1595         chown: Update doc regarding AIX.
1596         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1597         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1598         Reported by Rainer Tammer.
1599
1600 2010-07-30  Eric Blake  <eblake@redhat.com>
1601
1602         strtod: fix bug in replacement function on AIX
1603         * lib/strtod.c (strtod): Special case broken "0x" parse in
1604         underlying strtod.
1605         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1606         * doc/posix-functions/strtod.texi (strtod): Likewise.
1607         Reported by Rainer Tammer.
1608
1609 2010-07-30  Bruno Haible  <bruno@clisp.org>
1610
1611         mbrlen: Fix cross-compilation guess for AIX.
1612         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1613         guess. Leftover from 2008-12-22.
1614
1615 2010-07-30  Bruno Haible  <bruno@clisp.org>
1616
1617         mbrtowc: Fix cross-compilation guess for AIX.
1618         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1619         guess. Leftover from 2008-12-21.
1620
1621 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1622
1623         init.sh: work around trap limitation of some shells
1624         * tests/init.sh (setup_): Move exit trap outside of shell function.
1625
1626 2010-07-29  Eric Blake  <eblake@redhat.com>
1627
1628         strtod: aid debugging
1629         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1630         understanding why strtod is rejected.
1631
1632 2010-07-28  Bruno Haible  <bruno@clisp.org>
1633
1634         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1635         * lib/unistr/u8-chr.c: Include <string.h>.
1636         * tests/unistr/test-u8-chr.c: Likewise.
1637         * tests/unistr/test-u16-chr.c: Likewise.
1638         * tests/unistr/test-u32-chr.c: Likewise.
1639         * tests/unistr/test-u8-strchr.c: Likewise.
1640         * tests/unistr/test-u16-strchr.c: Likewise.
1641         * tests/unistr/test-u32-strchr.c: Likewise.
1642         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1643         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1644         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1645         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1646
1647 2010-07-28  Bruno Haible  <bruno@clisp.org>
1648
1649         Use spaces for indentation, not tabs.
1650         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1651
1652 2010-07-27  Bruno Haible  <bruno@clisp.org>
1653
1654         mbspcasecmp: Fix function specification.
1655         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1656         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1657         Reported by Eric Blake <eblake@redhat.com>.
1658
1659 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1660
1661         timespec: use cast and not conditional, as truncation isn't possible
1662         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1663         instead of a conditional.  Comment about the situation in more detail.
1664         This undoes most of the 2009-10-29 patch.
1665
1666 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1667
1668         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1669         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1670         * lib/unistr/u8-strchr.c: Likewise.
1671         * modules/unistr/u8-chr: Depend on memchr.
1672
1673         unistr/u*-strchr: add tests
1674         * modules/unistr/u8-strchr-tests: New file.
1675         * modules/unistr/u16-strchr-tests: New file.
1676         * modules/unistr/u32-strchr-tests: New file.
1677         * tests/unistr/test-strchr.h: New file.
1678         * tests/unistr/test-u8-strchr.c: New file.
1679         * tests/unistr/test-u16-strchr.c: New file.
1680         * tests/unistr/test-u32-strchr.c: New file.
1681
1682         unistr/u*-chr: test multibyte sequences more
1683         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1684         test vector.
1685         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1686         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1687         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1688
1689         unistr/u*-chr: test multibyte sequences
1690         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1691
1692         unistr/u*-chr: prepare for multibyte tests
1693         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1694         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1695         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1696         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1697         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1698         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1699
1700 2010-07-18  Bruno Haible  <bruno@clisp.org>
1701
1702         unistr/u8-strchr: Optimize non-ASCII argument case.
1703         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1704         because the first byte often matches anyway.
1705         Reported by Pádraig Brady <P@draigbrady.com>.
1706
1707 2010-07-15  Karl Berry  <karl@gnu.org>
1708
1709         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1710
1711 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1712
1713         getcwd: on Solaris, work better if ancestors are inaccessible
1714         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1715         buffer and size, try again with a large buffer.  This works better
1716         on Solaris, since its getcwd succeeds even if the path to the root
1717         is inaccessible, and this is helpful in common cases such as .zfs
1718         hidden directories.  Problem reported by J Chapman Flack in
1719         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1720         Use system getcwd if it's declared, not merely if it's partly
1721         working; use the partly-working test only to avoid needless effort
1722         if the system getcwd fails.
1723         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1724         comment that was already obsolete and is now even more obsolete.
1725         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1726         now might call strdup.
1727
1728 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1729
1730         pthread: Add enough so that coreutils/src/sort.c compiles.
1731         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1732         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1733         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1734         Include <sys/types.h>, in case it defines pthread_t.
1735         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1736         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1737         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1738         (pthread_rwlockattr_t, pthread_spinlock_t):
1739         New typedefs, if HAVE_PTHREAD_T is not defined.
1740         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1741         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1742         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1743         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1744         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1745         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1746         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1747         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1748         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1749         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1750         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1751         New macros.
1752         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1753         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1754         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1755         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1756         (pthread_spin_unlock): New dummy functions.
1757         (pthread_create): Return EAGAIN; don't set errno.
1758         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1759         require AC_C_INLINE.
1760         * modules/pthread (Depends-on): Add sched, time.
1761         (pthread.h): Use AM_V_GEN.
1762
1763 2010-07-13  Bruno Haible  <bruno@clisp.org>
1764
1765         striconveh: Don't malloc memory if the result buffer is sufficient.
1766         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1767         buffer if its size is sufficient.
1768         Reported by Ludovic Courtès <ludo@gnu.org>.
1769
1770 2010-07-13  Bruno Haible  <bruno@clisp.org>
1771
1772         strtod: Add safety check.
1773         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1774
1775 2010-07-12  Bruno Haible  <bruno@clisp.org>
1776
1777         Unify tests that set gl_cv_func_ldexpl_no_libm.
1778         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1779         gl_FUNC_LDEXPL.
1780         (gl_FUNC_LDEXPL): Invoke it.
1781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1782
1783 2010-07-12  Bruno Haible  <bruno@clisp.org>
1784
1785         Unify tests that set gl_cv_func_ldexp_no_libm.
1786         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1787         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1788         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1789         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1790         * modules/strtod (Files): Add m4/ldexp.m4.
1791
1792 2010-07-12  Bruno Haible  <bruno@clisp.org>
1793
1794         Unify tests that set gl_cv_func_frexpl_no_libm.
1795         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1796         gl_FUNC_FREXPL_NO_LIBM.
1797         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1798         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1799
1800 2010-07-12  Bruno Haible  <bruno@clisp.org>
1801
1802         Unify tests that set gl_cv_func_frexp_no_libm.
1803         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1804         gl_FUNC_FREXP_NO_LIBM.
1805         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1806         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1807
1808 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1809
1810         memcoll: clarify sizes versus lengths, document better, and tweak perf
1811         * lib/memcoll.c (strcoll_loop, memcoll0):
1812         Improve quality of descriptive comments.  Name variables
1813         consistently as to whether they are lengths (which do not include
1814         terminating null) versus sizes (which do).
1815         * lib/xmemcoll.c (xmemcoll0): Likewise.
1816         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1817         returned when s1size == 0; this is easier to compile and saves
1818         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1819
1820 2010-07-12  Bruno Haible  <bruno@clisp.org>
1821
1822         Tests for module '_Exit'.
1823         * modules/_Exit-tests: New file.
1824         * tests/test-_Exit.sh: New file.
1825         * tests/test-_Exit.c: New file.
1826
1827         New module '_Exit'.
1828         * lib/stdlib.in.h (__attribute__): New macro.
1829         (_Exit): New declaration.
1830         * lib/_Exit.c: New file.
1831         * m4/_Exit.m4: New file.
1832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1833         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1834         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1835         * modules/_Exit: New file.
1836         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1837         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1838
1839 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1840
1841         strtod: make it more-accurate typically, and don't require libm
1842         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1843         Include limits.h.  Don't include string.h.
1844         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1845         (locale_isspace): New function, so that no casts are needed to
1846         check whether *s is a space.
1847         (ldexp): Provide an unused dummy if not available.
1848         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1849         (strtod): Use them.  This implementation prefers to use the
1850         underlying strtod if available, falling back on our own code
1851         only to fix known bugs.  This is more likely to produce an
1852         accurate result.  Also, it avoids the use of libm functions.
1853         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1854         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1855         was absent, but it caused a test failure with coreutils.
1856         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1857         with libm.
1858         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1859         * modules/strtod-tests (Makefile.am): Likewise.
1860
1861 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1862             Bruno Haible  <bruno@clisp.org>
1863
1864         unistr/u8-strchr: Optimize ASCII argument case.
1865         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1866
1867 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1868
1869         (x)memcoll: minor tweaks
1870         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1871         is after the type that it qualifies.
1872         (memcoll0): Likewise.
1873         * lib/memcoll.h (memcoll0): Likewise.
1874         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1875         * lib/xmemcoll.h (xmemcoll0): Likewise.
1876         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1877         differs from memcoll in that the NUL byte is part of the argument.
1878         Omit the abort-checks, as performance is a real issue here.  Plus,
1879         the checks were wrong anyway (an off-by-one error).  Omit local
1880         variable 'diff', as it's a bit clearer that way.
1881         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1882         no longer needed.
1883
1884 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1885
1886         (x)memcoll: speedup when input is known to be NUL delimited
1887         * lib/memcoll.c: Include stdlib.
1888         (memcoll0) New function.
1889         (strcoll_loop) New function, refactored for use in both memcoll
1890         and memcoll0.
1891         * lib/memcoll.h: Add prototype for memcoll0.
1892         * lib/xmemcoll.c: (xmemcoll0) New function.
1893         (collate_error) New function, refactored for use in both xmemcoll
1894         and xmemcoll0.
1895         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1896         * m4/memcoll.m4: add inline invocation.
1897
1898 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1899
1900         * build-aux/bootstrap: Remove any local translations
1901         from the translation project synchronization directory,
1902         so that local only translations are not distributed.
1903
1904 2010-07-04  Bruno Haible  <bruno@clisp.org>
1905
1906         fsusage: Clarify which code applies to which platforms.
1907         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1908         platform.
1909         * lib/fsusage.c (get_fs_usage): Likewise.
1910
1911 2010-07-04  Bruno Haible  <bruno@clisp.org>
1912
1913         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1914         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1915         Reported by Martin Lambers <marlam@marlam.de>.
1916
1917 2010-07-04  Jim Meyering  <meyering@redhat.com>
1918
1919         hash: once again explicitly disallow insertion of NULL
1920         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1921         inserting a NULL pointer cannot work with these functions.
1922         Add a comment with details.
1923         This reverts part of the 2010-07-01 commit, 5bef1a35
1924         "hash: extend module to deal with non-pointer keys".
1925
1926 2010-07-01  Bruno Haible  <bruno@clisp.org>
1927
1928         stdbool: Update doc.
1929         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1930         Info from Christian Weisgerber <naddy@mips.inka.de>.
1931
1932 2010-07-01  Jim Meyering  <meyering@redhat.com>
1933
1934         hash: extend module to deal with non-pointer keys
1935         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1936         but that allows insertion of non-pointer entries.
1937         Do not disallow an ENTRY value of NULL.
1938         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1939         * lib/hash.h (hash_insert0): Declare.
1940
1941 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1942
1943         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1944         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1945         not present (i.e. with autoconf 2.59 and when using gettextize, not
1946         gnulib), require AC_GNU_SOURCE instead.
1947
1948 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1949
1950         idpriv-drop: Fix tests.
1951         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1952         not to the test-idpriv-droptemp program.
1953
1954 2010-06-29  Bruno Haible  <bruno@clisp.org>
1955
1956         string: Fix syntax error with g++ 2.96.
1957         * lib/string.in.h (__pure__): Remove definition.
1958         (_GL_ATTRIBUTE_PURE): New macro.
1959         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1960         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1961         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1962
1963 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1964
1965         unitypes: Fix bug introduced on 2010-05-18.
1966         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1967
1968 2010-06-22  Eric Blake  <eblake@redhat.com>
1969
1970         memmem: slight optimization
1971         * lib/str-two-way.h (critical_factorization): Update comments.
1972         Reduce work during factorization phase.
1973         Reported by Carlos Bueno <carlos@bueno.org>.
1974
1975 2010-06-21  Bruno Haible  <bruno@clisp.org>
1976
1977         Fix HAVE_CALLOC_POSIX misnomer.
1978         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1979         !HAVE_CALLOC_POSIX.
1980         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1981         HAVE_CALLOC_POSIX.
1982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1983         instead of HAVE_CALLOC_POSIX.
1984         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1985         HAVE_CALLOC_POSIX.
1986
1987         Use modern idiom for calloc() replacement.
1988         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1989         AC_FUNC_CALLOC.
1990         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1991         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1992         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1993         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1994         (gl_REPLACE_CALLOC): New macro.
1995
1996 2010-06-21  Bruno Haible  <bruno@clisp.org>
1997
1998         Fix HAVE_REALLOC_POSIX misnomer.
1999         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2000         !HAVE_REALLOC_POSIX.
2001         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2002         HAVE_REALLOC_POSIX.
2003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2004         instead of HAVE_REALLOC_POSIX.
2005         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2006         HAVE_REALLOC_POSIX.
2007
2008         Use modern idiom for realloc() replacement.
2009         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2010         AC_FUNC_REALLOC.
2011         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2012         Autoconf's AC_FUNC_REALLOC.
2013         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2014         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2015         (gl_REPLACE_REALLOC): New macro.
2016         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2017
2018 2010-06-21  Bruno Haible  <bruno@clisp.org>
2019
2020         Fix HAVE_MALLOC_POSIX misnomer.
2021         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2022         !HAVE_MALLOC_POSIX.
2023         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2024         HAVE_MALLOC_POSIX.
2025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2026         instead of HAVE_MALLOC_POSIX.
2027         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2028         HAVE_MALLOC_POSIX.
2029
2030         Use modern idiom for malloc() replacement.
2031         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2032         AC_FUNC_MALLOC.
2033         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2034         Autoconf's AC_FUNC_MALLOC.
2035         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2036         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2037         (gl_REPLACE_MALLOC): New macro.
2038         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2039
2040 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2041
2042         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2043         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2044         This macro takes 3 arguments, not 4.
2045
2046 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2047
2048         ipv6: fix detection under mingw
2049         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2050         in6_addr.
2051
2052 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2053
2054         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2055         that strtod() works when cross-compiling to a glibc version known
2056         to work.
2057
2058 2010-06-15  Bruno Haible  <bruno@clisp.org>
2059
2060         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2061
2062 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2063
2064         select: Correct timeout.
2065         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2066
2067 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2068
2069         git-version-gen: init shell var to avoid env var influence
2070         * build-aux/git-version-gen (v): Init shell var to empty.
2071
2072 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2073
2074         priv-set: Don't assume that priv.h exists merely because getppriv does.
2075         See Jan Andersen's bug report about AIX 5L in
2076         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2077         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2078         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2079         * lib/priv-set.h: Likewise.
2080         * tests/test-priv-set.c: Likewise.
2081
2082 2010-06-13  Bruno Haible  <bruno@clisp.org>
2083
2084         relocatable: Make it easier to test whether to install wrappers.
2085         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2086         RELOCATABLE_VIA_WRAPPER.
2087
2088 2010-06-13  Bruno Haible  <bruno@clisp.org>
2089
2090         gnulib-tool: Display specified modules and dependencies differently.
2091         * gnulib-tool (func_show_module_list): New function.
2092         (func_import, func_create_testdir): Invoke it.
2093         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2094
2095 2010-06-13  Bruno Haible  <bruno@clisp.org>
2096
2097         gnulib-tool: Align code of func_import and func_create_testdir.
2098         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2099         specified_modules.
2100
2101 2010-06-12  Jim Meyering  <meyering@redhat.com>
2102
2103         test-inttostr: avoid spurious failure on Solaris 9
2104         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2105         to accept "%ju".  Reported by Bruno Haible.
2106
2107 2010-06-11  Jim Meyering  <meyering@redhat.com>
2108
2109         test-sys_socket: mark variables as used more readably
2110         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2111         as "used" explicitly via (void) statement casts.  This is more
2112         readable than using them in an artificial return expression.
2113         Suggestion from Bruno Haible.
2114
2115 2010-06-11  Bruno Haible  <bruno@clisp.org>
2116
2117         Avoid some more warnings from "gcc -Wwrite-strings".
2118         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2119         to 'const char *'.
2120         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2121         * tests/test-c-strcasestr.c (main): Likewise.
2122         * tests/test-mbscasestr1.c (main): Likewise.
2123         * tests/test-mbscasestr2.c (main): Likewise.
2124         * tests/test-memmem.c (main): Likewise.
2125         * tests/test-strstr.c (main): Likewise.
2126         * tests/test-strcasestr.c (main): Likewise.
2127
2128 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2129
2130         init.sh: change framework_failure_ to fail with status 99, not 1
2131         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2132         automake's parallel-tests rule that this is an unexpected failure,
2133         even if the test is listed in XFAIL_TESTS.
2134
2135 2010-06-11  Jim Meyering  <meyering@redhat.com>
2136
2137         test-inttostr: avoid warnings about 4-6KB literal strings
2138         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2139         Include "macros.h", for its definition of ASSERT.
2140         (CK): s/assert/ASSERT/
2141         * modules/inttostr-tests (Files): Add macros.h.
2142
2143         init.sh: don't use $ME_ or skip_ before they are defined
2144         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2145         their first uses.  Also hoist their companions: warn_, fail_,
2146         framework_failure_, $stderr_fileno.  Prompted by a patch from
2147         Stefano Lattarini.
2148
2149         test-sys_socket: avoid set-but-not-used warnings from gcc
2150         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2151         avoid warning about set-but-not-used variables.
2152
2153         test-xvasprintf: avoid 'const' discard warnings
2154         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2155         "const" when assigning from literal strings.
2156         (test_xasprintf): Add "void" in function argument list to placate
2157         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2158
2159         tests: avoid compilation warnings in argmatch and exclude tests...
2160         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2161         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2162         Since it always exits, declare with the "noreturn" attribute.
2163         * tests/test-argmatch.c: Likewise.
2164
2165         tests: avoid 'const' discard warnings in mbsstr tests
2166         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2167         * tests/test-mbsstr2.c (main): Likewise.
2168
2169         test-verify: avoid warning from gcc's -Wmissing-declarations
2170         * tests/test-verify.c (function): Declare to be static.
2171
2172         test-inttostr.c: include <string.h> for use of strcmp
2173         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2174
2175         test-linkat: avoid failed assertion on "other" architectures
2176         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2177         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2178         sparc: https://bugs.launchpad.net/bugs/591968
2179
2180 2010-06-11  Jim Meyering  <meyering@redhat.com>
2181
2182         printf.m4: avoid autoconf's "Expanded Before Required" warning
2183         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2184         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2185         autoconf warning.
2186
2187 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2188
2189         Replacement header templates are now named with ".in", not "_".
2190         * doc/gnulib-intro.texi: Correct.
2191
2192 2010-06-10  Jim Meyering  <meyering@redhat.com>
2193
2194         inttostr-tests: depend on snprintf, not snprintf-posix
2195         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2196         snprintf-posix, to avoid this aclocal failure:
2197           missing file gnulib-tests/vasnprintf.c
2198           configure.ac:45: error: expected source file, required through \
2199           AC_LIBSOURCES, not found
2200
2201 2010-06-10  Jim Meyering  <meyering@redhat.com>
2202
2203         inttostr: add a new function, inttostr, and tests
2204         The namesake function was not available.  The existence of the
2205         template file, inttostr.c makes its addition nontrivial.
2206         * lib/anytostr.c: Rename from inttostr.c.
2207         (anytostr): Rename from inttostr.
2208         * lib/inttostr.c: New file.
2209         * modules/inttostr (Files): Add anytostr.c.
2210         (Makefile.am): Set lib_SOURCES instead of ...
2211         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2212         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2213         * lib/offtostr.c: Likewise.
2214         * lib/uinttostr.c: Likewise.
2215         * lib/umaxtostr.c: Likewise.
2216         * modules/inttostr-tests: New file.
2217         * tests/test-inttostr.c: New file.  Test these functions.
2218
2219 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2220             Bruno Haible  <bruno@clisp.org>
2221
2222         Add "Extending Gnulib" chapter to manual.
2223         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2224         chapter.
2225         (Extending Gnulib): New chapter.
2226         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2227         chapter.
2228
2229 2010-06-09  Bruno Haible  <bruno@clisp.org>
2230
2231         Avoid relocwrapper link errors due to gnulib replacement functions.
2232         * lib/areadlink.c: Use the system's malloc, realloc functions.
2233         (areadlink): Set errno to ENOMEM explicitly.
2234         * modules/areadlink (Depends-on): Remove malloc-posix.
2235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2236
2237 2010-06-09  Bruno Haible  <bruno@clisp.org>
2238
2239         Avoid relocwrapper link errors due to gnulib replacement functions.
2240         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2241         * lib/malloca.c: Likewise.
2242         * lib/relocatable.c: Likewise.
2243         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2244         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2245         * lib/setenv.c: Use the system's malloc, realloc functions.
2246         * lib/strerror.c: Use the system's sprintf function.
2247         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2248
2249 2010-06-04  Bruno Haible  <bruno@clisp.org>
2250
2251         Prefer documented low-level autoconf macro names.
2252         * m4/lib-link.m4: Use m4_translit instead of translit.
2253         * m4/environ.m4: Likewise.
2254         * m4/mathfunc.m4: Likewise.
2255         * m4/onceonly.m4: Likewise.
2256         * m4/stdint.m4: Likewise.
2257         Suggested by Eric Blake.
2258
2259 2010-06-04  Martin Lambers  <marlam@marlam.de>
2260             Bruno Haible  <bruno@clisp.org>
2261
2262         havelib: Allow library names with '+' characters.
2263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2264         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2265
2266 2010-06-09  Bruno Haible  <bruno@clisp.org>
2267
2268         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2269         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2270         realloc failed.
2271
2272 2010-06-08  Peter Simons  <simons@cryp.to>
2273
2274         maint.mk: make the news-check rule more configurable
2275         * top/maint.mk (news-check-lines-spec) New variable.
2276         (news-check): Use "sed -n 1,10p" in place of "head".
2277
2278 2010-06-07  Jim Meyering  <meyering@redhat.com>
2279
2280         do-release-commit-and-tag: fix typo in --help
2281         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2282
2283         regex: avoid new dead-code warning with gcc-4.6.0
2284         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2285         if-block containing a while-loop.  It's been unused for at least
2286         5 years.
2287
2288 2010-06-05  Bruno Haible  <bruno@clisp.org>
2289
2290         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2291         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2292
2293 2010-06-04  Bruno Haible  <bruno@clisp.org>
2294
2295         Update to GNU gettext 0.18.1.
2296         * modules/gettext (configure.ac): Require gettext infrastructure from
2297         version 0.18.1.
2298
2299 2010-06-03  Bruno Haible  <bruno@clisp.org>
2300
2301         Don't use AC_LIBOBJ with file names in subdirectories.
2302         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2303         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2304         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2305         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2306         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2307         gl_LIBUNISTRING_LIBSOURCE.
2308         (Makefile.am): Augment lib_SOURCES here, conditionally.
2309         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2310
2311 2010-06-03  Bruno Haible  <bruno@clisp.org>
2312
2313         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2314         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2315         expansion does not end with a newline.
2316         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2317         unnecessary newline.
2318
2319 2010-06-03  Bruno Haible  <bruno@clisp.org>
2320
2321         Reduce dependencies.
2322         * tests/test-quotearg.h: New file, extracted from
2323         tests/test-quotearg.c.
2324         * tests/test-quotearg-simple.c: New file, extracted from
2325         tests/test-quotearg.c.
2326         * tests/test-quotearg.c: Don't include <ctype.h>.
2327         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2328         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2329         use_quote_double_quotes, use_quotearg_colon): Moved to
2330         tests/test-quotearg.h.
2331         (results_g, flag_results, custom_quotes, custom_results): Moved
2332         to tests/test-quotearg-simple.c.
2333         (main): Moved the part that does not depend on gettext to
2334         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2335         performed.
2336         * modules/quotearg-simple: New file.
2337         * modules/quotearg-simple-tests: New file.
2338         * modules/quotearg (Depends-on): Add quotearg-simple.
2339         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2340         (Files): Add tests/test-quotearg.h.
2341         Reported by Paolo Bonzini.
2342
2343 2010-06-03  Bruno Haible  <bruno@clisp.org>
2344
2345         Reduce dependencies.
2346         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2347
2348 2010-06-03  Bruno Haible  <bruno@clisp.org>
2349
2350         time: Undefine more broken macros.
2351         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2352         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2353         Reported by Eric Blake.
2354
2355 2010-06-03  Bruno Haible  <bruno@clisp.org>
2356
2357         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2358         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2359         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2360         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2361         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2362         Reported by Ludovic Courtès <ludo@gnu.org>.
2363
2364 2010-06-02  Eric Blake  <eblake@redhat.com>
2365
2366         time: work with mingw + pthreads-win32 library
2367         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2368         if timespec is defined only in pthread.h.
2369         * modules/time (Makefile.am): Substitute it.
2370         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2371         <pthread.h>, when needed.
2372         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2373         from the library.
2374
2375 2010-05-31  Bruno Haible  <bruno@clisp.org>
2376
2377         Avoid expanding two macros in the wrong order.
2378         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2379         gl_LIBUNISTRING if it is defined.
2380         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2381         autoconf >= 2.64.
2382         Reported by Ludovic Courtès <ludo@gnu.org>.
2383
2384 2010-05-27  Jim Meyering  <meyering@redhat.com>
2385
2386         maint.mk: also prohibit "#undef" of always-defined symbols
2387         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2388         Allow more than one space before the symbol name.
2389         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2390         the regexp uses alternation.
2391
2392 2010-05-26  Eric Blake  <eblake@redhat.com>
2393
2394         maint.mk: avoid echo -e
2395         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2396         Convert all uses of echo -* to printf.
2397         Reported by Matthias Bolte.
2398
2399 2010-05-25  Bruno Haible  <bruno@clisp.org>
2400
2401         Update to GNU gettext 0.18, part 2.
2402         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2403         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2404
2405 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2406
2407         Add missing include in test-pwrite.c.
2408         * tests/test-pwrite.c: Include string.h, for strcmp.
2409
2410 2010-05-24  Bruno Haible  <bruno@clisp.org>
2411
2412         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2413
2414 2010-05-24  Bruno Haible  <bruno@clisp.org>
2415
2416         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2417         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2418         iconveh_error argument.
2419         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2420         U_STRCONV_TO_LOCALE.
2421         * lib/unistr/u16-strcoll.c: Likewise.
2422         * lib/unistr/u32-strcoll.c: Likewise.
2423         * modules/unistr/u8-strcoll (Depends-on): Add
2424         uniconv/u8-strconv-to-enc, localcharset. Remove
2425         uniconv/u8-strconv-to-locale.
2426         (configure.ac): Bump version number.
2427         * modules/unistr/u16-strcoll (Depends-on): Add
2428         uniconv/u16-strconv-to-enc, localcharset. Remove
2429         uniconv/u16-strconv-to-locale.
2430         (configure.ac): Bump version number.
2431         * modules/unistr/u32-strcoll (Depends-on): Add
2432         uniconv/u32-strconv-to-enc, localcharset. Remove
2433         uniconv/u32-strconv-to-locale.
2434         (configure.ac): Bump version number.
2435
2436 2010-05-24  Bruno Haible  <bruno@clisp.org>
2437
2438         Avoid a test failure on NetBSD 5.0.
2439         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2440         an iconv() bug.
2441
2442 2010-05-24  Bruno Haible  <bruno@clisp.org>
2443
2444         Adjust #include directive style.
2445         * modules/regex (Includes): Recommend to write <regex.h>.
2446
2447 2010-05-24  Bruno Haible  <bruno@clisp.org>
2448
2449         regex: Don't require alloca.
2450         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2451         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2452         only inside if (0).
2453
2454 2010-05-23  Jim Meyering  <meyering@redhat.com>
2455
2456         test-renameat.c: include <sys/stat.h>
2457         * tests/test-renameat.c: Include <sys/stat.h>; required for
2458         definition of S_IS* macros.
2459
2460 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2461
2462         Update maintainer documentation for 'relocatable-prog' module.
2463         * doc/relocatable-maint.texi: Update.
2464         Comments by Bruno Haible.
2465
2466 2010-05-23  Bruno Haible  <bruno@clisp.org>
2467
2468         git-merge-changelog: Enable --split-merged-entry by default.
2469         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2470         (usage): Don't mention this option any more.
2471         Reported by Ralf Wildenhues.
2472
2473 2010-05-23  Jim Meyering  <meyering@redhat.com>
2474
2475         test-pwrite: do not leave behind a test file named "out"
2476         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2477         The trivial-looking use of init.sh is really necessary.
2478         It ensures that the temporary file, "out", is created in
2479         a temporary directory, and removed upon termination.
2480         * tests/test-pwrite.sh: Re-add file.
2481         * modules/pwrite-tests: Reference it.
2482
2483 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2484
2485         Fix output redirection buglet in init.sh.
2486         * tests/init.sh: Fix redirection of stderr.
2487
2488 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2489
2490         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2491
2492 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2493
2494         * modules/valgrind-tests: New file.
2495         * m4/valgrind-tests.m4: New file.
2496         * doc/valgrind-tests.texi: New file.
2497         * doc/gnulib.texi (Running self-tests under valgrind): New
2498         section.
2499
2500 2010-05-19  Bruno Haible  <bruno@clisp.org>
2501
2502         Clean up dead code in recent commit.
2503         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2504         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2505         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2506         Suggested by Paolo Bonzini.
2507
2508 2010-05-19  Bruno Haible  <bruno@clisp.org>
2509
2510         Avoid valgrind error reports from libunistring.
2511         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2512         * modules/libunistring (Files): Add it.
2513         * modules/libunistring-optional (Files): Likewise.
2514
2515 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2516             Bruno Haible  <bruno@clisp.org>
2517
2518         New module 'libunistring-optional'.
2519         * modules/libunistring-optional: New file.
2520         * m4/libunistring-base.m4: New file.
2521         * m4/libunistring-optional.m4: New file.
2522         * lib/unicase.in.h: Renamed from lib/unicase.h.
2523         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2524         * lib/unictype.in.h: Renamed from lib/unictype.h.
2525         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2526         * lib/uniname.in.h: Renamed from lib/uniname.h.
2527         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2528         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2529         * lib/unistr.in.h: Renamed from lib/unistr.h.
2530         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2531         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2532         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2533         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2534         gl_LIBUNISTRING. If the library was found, determine the installed
2535         version and set LIBUNISTRING_VERSION.
2536         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2537         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2538         handle a configuration option --with-included-libunistring.
2539         * modules/libunistring (Files): Add m4/absolute-header.m4.
2540         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2541         Add m4/libunistring-base.m4.
2542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2543         (Makefile.am): Build unicase.h from unicase.in.h.
2544         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2545         Add m4/libunistring-base.m4.
2546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2547         (Makefile.am): Build uniconv.h from uniconv.in.h.
2548         * modules/unictype/base (Files): Use unictype.in.h instead of
2549         unictype.h. Add m4/libunistring-base.m4.
2550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2551         (Makefile.am): Build unictype.h from unictype.in.h.
2552         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2553         Add m4/libunistring-base.m4.
2554         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2555         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2556         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2557         Add m4/libunistring-base.m4.
2558         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2559         (Makefile.am): Build uniname.h from uniname.in.h.
2560         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2561         Add m4/libunistring-base.m4.
2562         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2563         (Makefile.am): Build uninorm.h from uninorm.in.h.
2564         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2565         unistdio.h. Add m4/libunistring-base.m4.
2566         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2567         (Makefile.am): Build unistdio.h from unistdio.in.h.
2568         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2569         Add m4/libunistring-base.m4.
2570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2571         (Makefile.am): Build unistr.h from unistr.in.h.
2572         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2573         Add m4/libunistring-base.m4.
2574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2575         (Makefile.am): Build unitypes.h from unitypes.in.h.
2576         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2577         Add m4/libunistring-base.m4.
2578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2579         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2580         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2581         uniwidth.h. Add m4/libunistring-base.m4.
2582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2583         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2584         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2585         instead of augmenting lib_SOURCES.
2586         * modules/unicase/empty-suffix-context: Likewise.
2587         * modules/unicase/locale-language: Likewise.
2588         * modules/unicase/tolower: Likewise.
2589         * modules/unicase/totitle: Likewise.
2590         * modules/unicase/toupper: Likewise.
2591         * modules/unicase/u8-casecmp: Likewise.
2592         * modules/unicase/u8-casecoll: Likewise.
2593         * modules/unicase/u8-casefold: Likewise.
2594         * modules/unicase/u8-casexfrm: Likewise.
2595         * modules/unicase/u8-ct-casefold: Likewise.
2596         * modules/unicase/u8-ct-tolower: Likewise.
2597         * modules/unicase/u8-ct-totitle: Likewise.
2598         * modules/unicase/u8-ct-toupper: Likewise.
2599         * modules/unicase/u8-is-cased: Likewise.
2600         * modules/unicase/u8-is-casefolded: Likewise.
2601         * modules/unicase/u8-is-lowercase: Likewise.
2602         * modules/unicase/u8-is-titlecase: Likewise.
2603         * modules/unicase/u8-is-uppercase: Likewise.
2604         * modules/unicase/u8-prefix-context: Likewise.
2605         * modules/unicase/u8-suffix-context: Likewise.
2606         * modules/unicase/u8-tolower: Likewise.
2607         * modules/unicase/u8-totitle: Likewise.
2608         * modules/unicase/u8-toupper: Likewise.
2609         * modules/unicase/u16-casecmp: Likewise.
2610         * modules/unicase/u16-casecoll: Likewise.
2611         * modules/unicase/u16-casefold: Likewise.
2612         * modules/unicase/u16-casexfrm: Likewise.
2613         * modules/unicase/u16-ct-casefold: Likewise.
2614         * modules/unicase/u16-ct-tolower: Likewise.
2615         * modules/unicase/u16-ct-totitle: Likewise.
2616         * modules/unicase/u16-ct-toupper: Likewise.
2617         * modules/unicase/u16-is-cased: Likewise.
2618         * modules/unicase/u16-is-casefolded: Likewise.
2619         * modules/unicase/u16-is-lowercase: Likewise.
2620         * modules/unicase/u16-is-titlecase: Likewise.
2621         * modules/unicase/u16-is-uppercase: Likewise.
2622         * modules/unicase/u16-prefix-context: Likewise.
2623         * modules/unicase/u16-suffix-context: Likewise.
2624         * modules/unicase/u16-tolower: Likewise.
2625         * modules/unicase/u16-totitle: Likewise.
2626         * modules/unicase/u16-toupper: Likewise.
2627         * modules/unicase/u32-casecmp: Likewise.
2628         * modules/unicase/u32-casecoll: Likewise.
2629         * modules/unicase/u32-casefold: Likewise.
2630         * modules/unicase/u32-casexfrm: Likewise.
2631         * modules/unicase/u32-ct-casefold: Likewise.
2632         * modules/unicase/u32-ct-tolower: Likewise.
2633         * modules/unicase/u32-ct-totitle: Likewise.
2634         * modules/unicase/u32-ct-toupper: Likewise.
2635         * modules/unicase/u32-is-cased: Likewise.
2636         * modules/unicase/u32-is-casefolded: Likewise.
2637         * modules/unicase/u32-is-lowercase: Likewise.
2638         * modules/unicase/u32-is-titlecase: Likewise.
2639         * modules/unicase/u32-is-uppercase: Likewise.
2640         * modules/unicase/u32-prefix-context: Likewise.
2641         * modules/unicase/u32-suffix-context: Likewise.
2642         * modules/unicase/u32-tolower: Likewise.
2643         * modules/unicase/u32-totitle: Likewise.
2644         * modules/unicase/u32-toupper: Likewise.
2645         * modules/unicase/ulc-casecmp: Likewise.
2646         * modules/unicase/ulc-casecoll: Likewise.
2647         * modules/unicase/ulc-casexfrm: Likewise.
2648         * modules/uniconv/u8-conv-from-enc: Likewise.
2649         * modules/uniconv/u8-conv-to-enc: Likewise.
2650         * modules/uniconv/u8-strconv-from-enc: Likewise.
2651         * modules/uniconv/u8-strconv-from-locale: Likewise.
2652         * modules/uniconv/u8-strconv-to-enc: Likewise.
2653         * modules/uniconv/u8-strconv-to-locale: Likewise.
2654         * modules/uniconv/u16-conv-from-enc: Likewise.
2655         * modules/uniconv/u16-conv-to-enc: Likewise.
2656         * modules/uniconv/u16-strconv-from-enc: Likewise.
2657         * modules/uniconv/u16-strconv-from-locale: Likewise.
2658         * modules/uniconv/u16-strconv-to-enc: Likewise.
2659         * modules/uniconv/u16-strconv-to-locale: Likewise.
2660         * modules/uniconv/u32-conv-from-enc: Likewise.
2661         * modules/uniconv/u32-conv-to-enc: Likewise.
2662         * modules/uniconv/u32-strconv-from-enc: Likewise.
2663         * modules/uniconv/u32-strconv-from-locale: Likewise.
2664         * modules/uniconv/u32-strconv-to-enc: Likewise.
2665         * modules/uniconv/u32-strconv-to-locale: Likewise.
2666         * modules/unictype/bidicategory-byname: Likewise.
2667         * modules/unictype/bidicategory-name: Likewise.
2668         * modules/unictype/bidicategory-of: Likewise.
2669         * modules/unictype/bidicategory-test: Likewise.
2670         * modules/unictype/block-list: Likewise.
2671         * modules/unictype/block-test: Likewise.
2672         * modules/unictype/category-C: Likewise.
2673         * modules/unictype/category-Cc: Likewise.
2674         * modules/unictype/category-Cf: Likewise.
2675         * modules/unictype/category-Cn: Likewise.
2676         * modules/unictype/category-Co: Likewise.
2677         * modules/unictype/category-Cs: Likewise.
2678         * modules/unictype/category-L: Likewise.
2679         * modules/unictype/category-Ll: Likewise.
2680         * modules/unictype/category-Lm: Likewise.
2681         * modules/unictype/category-Lo: Likewise.
2682         * modules/unictype/category-Lt: Likewise.
2683         * modules/unictype/category-Lu: Likewise.
2684         * modules/unictype/category-M: Likewise.
2685         * modules/unictype/category-Mc: Likewise.
2686         * modules/unictype/category-Me: Likewise.
2687         * modules/unictype/category-Mn: Likewise.
2688         * modules/unictype/category-N: Likewise.
2689         * modules/unictype/category-Nd: Likewise.
2690         * modules/unictype/category-Nl: Likewise.
2691         * modules/unictype/category-No: Likewise.
2692         * modules/unictype/category-P: Likewise.
2693         * modules/unictype/category-Pc: Likewise.
2694         * modules/unictype/category-Pd: Likewise.
2695         * modules/unictype/category-Pe: Likewise.
2696         * modules/unictype/category-Pf: Likewise.
2697         * modules/unictype/category-Pi: Likewise.
2698         * modules/unictype/category-Po: Likewise.
2699         * modules/unictype/category-Ps: Likewise.
2700         * modules/unictype/category-S: Likewise.
2701         * modules/unictype/category-Sc: Likewise.
2702         * modules/unictype/category-Sk: Likewise.
2703         * modules/unictype/category-Sm: Likewise.
2704         * modules/unictype/category-So: Likewise.
2705         * modules/unictype/category-Z: Likewise.
2706         * modules/unictype/category-Zl: Likewise.
2707         * modules/unictype/category-Zp: Likewise.
2708         * modules/unictype/category-Zs: Likewise.
2709         * modules/unictype/category-and: Likewise.
2710         * modules/unictype/category-and-not: Likewise.
2711         * modules/unictype/category-byname: Likewise.
2712         * modules/unictype/category-name: Likewise.
2713         * modules/unictype/category-none: Likewise.
2714         * modules/unictype/category-of: Likewise.
2715         * modules/unictype/category-or: Likewise.
2716         * modules/unictype/category-test: Likewise.
2717         * modules/unictype/combining-class: Likewise.
2718         * modules/unictype/ctype-alnum: Likewise.
2719         * modules/unictype/ctype-alpha: Likewise.
2720         * modules/unictype/ctype-blank: Likewise.
2721         * modules/unictype/ctype-cntrl: Likewise.
2722         * modules/unictype/ctype-digit: Likewise.
2723         * modules/unictype/ctype-graph: Likewise.
2724         * modules/unictype/ctype-lower: Likewise.
2725         * modules/unictype/ctype-print: Likewise.
2726         * modules/unictype/ctype-punct: Likewise.
2727         * modules/unictype/ctype-space: Likewise.
2728         * modules/unictype/ctype-upper: Likewise.
2729         * modules/unictype/ctype-xdigit: Likewise.
2730         * modules/unictype/decimal-digit: Likewise.
2731         * modules/unictype/digit: Likewise.
2732         * modules/unictype/mirror: Likewise.
2733         * modules/unictype/numeric: Likewise.
2734         * modules/unictype/property-alphabetic: Likewise.
2735         * modules/unictype/property-ascii-hex-digit: Likewise.
2736         * modules/unictype/property-bidi-arabic-digit: Likewise.
2737         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2738         * modules/unictype/property-bidi-block-separator: Likewise.
2739         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2740         * modules/unictype/property-bidi-common-separator: Likewise.
2741         * modules/unictype/property-bidi-control: Likewise.
2742         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2743         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2744         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2745         * modules/unictype/property-bidi-european-digit: Likewise.
2746         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2747         * modules/unictype/property-bidi-left-to-right: Likewise.
2748         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2749         * modules/unictype/property-bidi-other-neutral: Likewise.
2750         * modules/unictype/property-bidi-pdf: Likewise.
2751         * modules/unictype/property-bidi-segment-separator: Likewise.
2752         * modules/unictype/property-bidi-whitespace: Likewise.
2753         * modules/unictype/property-byname: Likewise.
2754         * modules/unictype/property-combining: Likewise.
2755         * modules/unictype/property-composite: Likewise.
2756         * modules/unictype/property-currency-symbol: Likewise.
2757         * modules/unictype/property-dash: Likewise.
2758         * modules/unictype/property-decimal-digit: Likewise.
2759         * modules/unictype/property-default-ignorable-code-point: Likewise.
2760         * modules/unictype/property-deprecated: Likewise.
2761         * modules/unictype/property-diacritic: Likewise.
2762         * modules/unictype/property-extender: Likewise.
2763         * modules/unictype/property-format-control: Likewise.
2764         * modules/unictype/property-grapheme-base: Likewise.
2765         * modules/unictype/property-grapheme-extend: Likewise.
2766         * modules/unictype/property-grapheme-link: Likewise.
2767         * modules/unictype/property-hex-digit: Likewise.
2768         * modules/unictype/property-hyphen: Likewise.
2769         * modules/unictype/property-id-continue: Likewise.
2770         * modules/unictype/property-id-start: Likewise.
2771         * modules/unictype/property-ideographic: Likewise.
2772         * modules/unictype/property-ids-binary-operator: Likewise.
2773         * modules/unictype/property-ids-trinary-operator: Likewise.
2774         * modules/unictype/property-ignorable-control: Likewise.
2775         * modules/unictype/property-iso-control: Likewise.
2776         * modules/unictype/property-join-control: Likewise.
2777         * modules/unictype/property-left-of-pair: Likewise.
2778         * modules/unictype/property-line-separator: Likewise.
2779         * modules/unictype/property-logical-order-exception: Likewise.
2780         * modules/unictype/property-lowercase: Likewise.
2781         * modules/unictype/property-math: Likewise.
2782         * modules/unictype/property-non-break: Likewise.
2783         * modules/unictype/property-not-a-character: Likewise.
2784         * modules/unictype/property-numeric: Likewise.
2785         * modules/unictype/property-other-alphabetic: Likewise.
2786         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2787         * modules/unictype/property-other-grapheme-extend: Likewise.
2788         * modules/unictype/property-other-id-continue: Likewise.
2789         * modules/unictype/property-other-id-start: Likewise.
2790         * modules/unictype/property-other-lowercase: Likewise.
2791         * modules/unictype/property-other-math: Likewise.
2792         * modules/unictype/property-other-uppercase: Likewise.
2793         * modules/unictype/property-paired-punctuation: Likewise.
2794         * modules/unictype/property-paragraph-separator: Likewise.
2795         * modules/unictype/property-pattern-syntax: Likewise.
2796         * modules/unictype/property-pattern-white-space: Likewise.
2797         * modules/unictype/property-private-use: Likewise.
2798         * modules/unictype/property-punctuation: Likewise.
2799         * modules/unictype/property-quotation-mark: Likewise.
2800         * modules/unictype/property-radical: Likewise.
2801         * modules/unictype/property-sentence-terminal: Likewise.
2802         * modules/unictype/property-soft-dotted: Likewise.
2803         * modules/unictype/property-space: Likewise.
2804         * modules/unictype/property-terminal-punctuation: Likewise.
2805         * modules/unictype/property-test: Likewise.
2806         * modules/unictype/property-titlecase: Likewise.
2807         * modules/unictype/property-unassigned-code-value: Likewise.
2808         * modules/unictype/property-unified-ideograph: Likewise.
2809         * modules/unictype/property-uppercase: Likewise.
2810         * modules/unictype/property-variation-selector: Likewise.
2811         * modules/unictype/property-white-space: Likewise.
2812         * modules/unictype/property-xid-continue: Likewise.
2813         * modules/unictype/property-xid-start: Likewise.
2814         * modules/unictype/property-zero-width: Likewise.
2815         * modules/unictype/scripts: Likewise.
2816         * modules/unictype/syntax-c-ident: Likewise.
2817         * modules/unictype/syntax-c-whitespace: Likewise.
2818         * modules/unictype/syntax-java-ident: Likewise.
2819         * modules/unictype/syntax-java-whitespace: Likewise.
2820         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2821         * modules/unilbrk/u8-width-linebreaks: Likewise.
2822         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2823         * modules/unilbrk/u16-width-linebreaks: Likewise.
2824         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2825         * modules/unilbrk/u32-width-linebreaks: Likewise.
2826         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2827         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2828         * modules/uniname/uniname: Likewise.
2829         * modules/uninorm/canonical-decomposition: Likewise.
2830         * modules/uninorm/composition: Likewise.
2831         * modules/uninorm/decomposing-form: Likewise.
2832         * modules/uninorm/decomposition: Likewise.
2833         * modules/uninorm/filter: Likewise.
2834         * modules/uninorm/nfc: Likewise.
2835         * modules/uninorm/nfd: Likewise.
2836         * modules/uninorm/nfkc: Likewise.
2837         * modules/uninorm/nfkd: Likewise.
2838         * modules/uninorm/u8-normalize: Likewise.
2839         * modules/uninorm/u8-normcmp: Likewise.
2840         * modules/uninorm/u8-normcoll: Likewise.
2841         * modules/uninorm/u8-normxfrm: Likewise.
2842         * modules/uninorm/u16-normalize: Likewise.
2843         * modules/uninorm/u16-normcmp: Likewise.
2844         * modules/uninorm/u16-normcoll: Likewise.
2845         * modules/uninorm/u16-normxfrm: Likewise.
2846         * modules/uninorm/u32-normalize: Likewise.
2847         * modules/uninorm/u32-normcmp: Likewise.
2848         * modules/uninorm/u32-normcoll: Likewise.
2849         * modules/uninorm/u32-normxfrm: Likewise.
2850         * modules/unistdio/u8-asnprintf: Likewise.
2851         * modules/unistdio/u8-asprintf: Likewise.
2852         * modules/unistdio/u8-snprintf: Likewise.
2853         * modules/unistdio/u8-sprintf: Likewise.
2854         * modules/unistdio/u8-u8-asnprintf: Likewise.
2855         * modules/unistdio/u8-u8-asprintf: Likewise.
2856         * modules/unistdio/u8-u8-snprintf: Likewise.
2857         * modules/unistdio/u8-u8-sprintf: Likewise.
2858         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2859         * modules/unistdio/u8-u8-vasprintf: Likewise.
2860         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2861         * modules/unistdio/u8-u8-vsprintf: Likewise.
2862         * modules/unistdio/u8-vasnprintf: Likewise.
2863         * modules/unistdio/u8-vasprintf: Likewise.
2864         * modules/unistdio/u8-vsnprintf: Likewise.
2865         * modules/unistdio/u8-vsprintf: Likewise.
2866         * modules/unistdio/u16-asnprintf: Likewise.
2867         * modules/unistdio/u16-asprintf: Likewise.
2868         * modules/unistdio/u16-snprintf: Likewise.
2869         * modules/unistdio/u16-sprintf: Likewise.
2870         * modules/unistdio/u16-u16-asnprintf: Likewise.
2871         * modules/unistdio/u16-u16-asprintf: Likewise.
2872         * modules/unistdio/u16-u16-snprintf: Likewise.
2873         * modules/unistdio/u16-u16-sprintf: Likewise.
2874         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2875         * modules/unistdio/u16-u16-vasprintf: Likewise.
2876         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2877         * modules/unistdio/u16-u16-vsprintf: Likewise.
2878         * modules/unistdio/u16-vasnprintf: Likewise.
2879         * modules/unistdio/u16-vasprintf: Likewise.
2880         * modules/unistdio/u16-vsnprintf: Likewise.
2881         * modules/unistdio/u16-vsprintf: Likewise.
2882         * modules/unistdio/u32-asnprintf: Likewise.
2883         * modules/unistdio/u32-asprintf: Likewise.
2884         * modules/unistdio/u32-snprintf: Likewise.
2885         * modules/unistdio/u32-sprintf: Likewise.
2886         * modules/unistdio/u32-u32-asnprintf: Likewise.
2887         * modules/unistdio/u32-u32-asprintf: Likewise.
2888         * modules/unistdio/u32-u32-snprintf: Likewise.
2889         * modules/unistdio/u32-u32-sprintf: Likewise.
2890         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2891         * modules/unistdio/u32-u32-vasprintf: Likewise.
2892         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2893         * modules/unistdio/u32-u32-vsprintf: Likewise.
2894         * modules/unistdio/u32-vasnprintf: Likewise.
2895         * modules/unistdio/u32-vasprintf: Likewise.
2896         * modules/unistdio/u32-vsnprintf: Likewise.
2897         * modules/unistdio/u32-vsprintf: Likewise.
2898         * modules/unistdio/ulc-asnprintf: Likewise.
2899         * modules/unistdio/ulc-asprintf: Likewise.
2900         * modules/unistdio/ulc-fprintf: Likewise.
2901         * modules/unistdio/ulc-snprintf: Likewise.
2902         * modules/unistdio/ulc-sprintf: Likewise.
2903         * modules/unistdio/ulc-vasnprintf: Likewise.
2904         * modules/unistdio/ulc-vasprintf: Likewise.
2905         * modules/unistdio/ulc-vfprintf: Likewise.
2906         * modules/unistdio/ulc-vsnprintf: Likewise.
2907         * modules/unistdio/ulc-vsprintf: Likewise.
2908         * modules/unistr/u8-check: Likewise.
2909         * modules/unistr/u8-chr: Likewise.
2910         * modules/unistr/u8-cmp: Likewise.
2911         * modules/unistr/u8-cmp2: Likewise.
2912         * modules/unistr/u8-cpy: Likewise.
2913         * modules/unistr/u8-cpy-alloc: Likewise.
2914         * modules/unistr/u8-endswith: Likewise.
2915         * modules/unistr/u8-mblen: Likewise.
2916         * modules/unistr/u8-mbsnlen: Likewise.
2917         * modules/unistr/u8-mbtouc: Likewise.
2918         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2919         * modules/unistr/u8-mbtoucr: Likewise.
2920         * modules/unistr/u8-move: Likewise.
2921         * modules/unistr/u8-next: Likewise.
2922         * modules/unistr/u8-prev: Likewise.
2923         * modules/unistr/u8-set: Likewise.
2924         * modules/unistr/u8-startswith: Likewise.
2925         * modules/unistr/u8-stpcpy: Likewise.
2926         * modules/unistr/u8-stpncpy: Likewise.
2927         * modules/unistr/u8-strcat: Likewise.
2928         * modules/unistr/u8-strchr: Likewise.
2929         * modules/unistr/u8-strcmp: Likewise.
2930         * modules/unistr/u8-strcoll: Likewise.
2931         * modules/unistr/u8-strcpy: Likewise.
2932         * modules/unistr/u8-strcspn: Likewise.
2933         * modules/unistr/u8-strdup: Likewise.
2934         * modules/unistr/u8-strlen: Likewise.
2935         * modules/unistr/u8-strmblen: Likewise.
2936         * modules/unistr/u8-strmbtouc: Likewise.
2937         * modules/unistr/u8-strncat: Likewise.
2938         * modules/unistr/u8-strncmp: Likewise.
2939         * modules/unistr/u8-strncpy: Likewise.
2940         * modules/unistr/u8-strnlen: Likewise.
2941         * modules/unistr/u8-strpbrk: Likewise.
2942         * modules/unistr/u8-strrchr: Likewise.
2943         * modules/unistr/u8-strspn: Likewise.
2944         * modules/unistr/u8-strstr: Likewise.
2945         * modules/unistr/u8-strtok: Likewise.
2946         * modules/unistr/u8-to-u16: Likewise.
2947         * modules/unistr/u8-to-u32: Likewise.
2948         * modules/unistr/u8-uctomb: Likewise.
2949         * modules/unistr/u16-check: Likewise.
2950         * modules/unistr/u16-chr: Likewise.
2951         * modules/unistr/u16-cmp: Likewise.
2952         * modules/unistr/u16-cmp2: Likewise.
2953         * modules/unistr/u16-cpy: Likewise.
2954         * modules/unistr/u16-cpy-alloc: Likewise.
2955         * modules/unistr/u16-endswith: Likewise.
2956         * modules/unistr/u16-mblen: Likewise.
2957         * modules/unistr/u16-mbsnlen: Likewise.
2958         * modules/unistr/u16-mbtouc: Likewise.
2959         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2960         * modules/unistr/u16-mbtoucr: Likewise.
2961         * modules/unistr/u16-move: Likewise.
2962         * modules/unistr/u16-next: Likewise.
2963         * modules/unistr/u16-prev: Likewise.
2964         * modules/unistr/u16-set: Likewise.
2965         * modules/unistr/u16-startswith: Likewise.
2966         * modules/unistr/u16-stpcpy: Likewise.
2967         * modules/unistr/u16-stpncpy: Likewise.
2968         * modules/unistr/u16-strcat: Likewise.
2969         * modules/unistr/u16-strchr: Likewise.
2970         * modules/unistr/u16-strcmp: Likewise.
2971         * modules/unistr/u16-strcoll: Likewise.
2972         * modules/unistr/u16-strcpy: Likewise.
2973         * modules/unistr/u16-strcspn: Likewise.
2974         * modules/unistr/u16-strdup: Likewise.
2975         * modules/unistr/u16-strlen: Likewise.
2976         * modules/unistr/u16-strmblen: Likewise.
2977         * modules/unistr/u16-strmbtouc: Likewise.
2978         * modules/unistr/u16-strncat: Likewise.
2979         * modules/unistr/u16-strncmp: Likewise.
2980         * modules/unistr/u16-strncpy: Likewise.
2981         * modules/unistr/u16-strnlen: Likewise.
2982         * modules/unistr/u16-strpbrk: Likewise.
2983         * modules/unistr/u16-strrchr: Likewise.
2984         * modules/unistr/u16-strspn: Likewise.
2985         * modules/unistr/u16-strstr: Likewise.
2986         * modules/unistr/u16-strtok: Likewise.
2987         * modules/unistr/u16-to-u32: Likewise.
2988         * modules/unistr/u16-to-u8: Likewise.
2989         * modules/unistr/u16-uctomb: Likewise.
2990         * modules/unistr/u32-check: Likewise.
2991         * modules/unistr/u32-chr: Likewise.
2992         * modules/unistr/u32-cmp: Likewise.
2993         * modules/unistr/u32-cmp2: Likewise.
2994         * modules/unistr/u32-cpy: Likewise.
2995         * modules/unistr/u32-cpy-alloc: Likewise.
2996         * modules/unistr/u32-endswith: Likewise.
2997         * modules/unistr/u32-mblen: Likewise.
2998         * modules/unistr/u32-mbsnlen: Likewise.
2999         * modules/unistr/u32-mbtouc: Likewise.
3000         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3001         * modules/unistr/u32-mbtoucr: Likewise.
3002         * modules/unistr/u32-move: Likewise.
3003         * modules/unistr/u32-next: Likewise.
3004         * modules/unistr/u32-prev: Likewise.
3005         * modules/unistr/u32-set: Likewise.
3006         * modules/unistr/u32-startswith: Likewise.
3007         * modules/unistr/u32-stpcpy: Likewise.
3008         * modules/unistr/u32-stpncpy: Likewise.
3009         * modules/unistr/u32-strcat: Likewise.
3010         * modules/unistr/u32-strchr: Likewise.
3011         * modules/unistr/u32-strcmp: Likewise.
3012         * modules/unistr/u32-strcoll: Likewise.
3013         * modules/unistr/u32-strcpy: Likewise.
3014         * modules/unistr/u32-strcspn: Likewise.
3015         * modules/unistr/u32-strdup: Likewise.
3016         * modules/unistr/u32-strlen: Likewise.
3017         * modules/unistr/u32-strmblen: Likewise.
3018         * modules/unistr/u32-strmbtouc: Likewise.
3019         * modules/unistr/u32-strncat: Likewise.
3020         * modules/unistr/u32-strncmp: Likewise.
3021         * modules/unistr/u32-strncpy: Likewise.
3022         * modules/unistr/u32-strnlen: Likewise.
3023         * modules/unistr/u32-strpbrk: Likewise.
3024         * modules/unistr/u32-strrchr: Likewise.
3025         * modules/unistr/u32-strspn: Likewise.
3026         * modules/unistr/u32-strstr: Likewise.
3027         * modules/unistr/u32-strtok: Likewise.
3028         * modules/unistr/u32-to-u16: Likewise.
3029         * modules/unistr/u32-to-u8: Likewise.
3030         * modules/unistr/u32-uctomb: Likewise.
3031         * modules/uniwbrk/u8-wordbreaks: Likewise.
3032         * modules/uniwbrk/u16-wordbreaks: Likewise.
3033         * modules/uniwbrk/u32-wordbreaks: Likewise.
3034         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3035         * modules/uniwbrk/wordbreak-property: Likewise.
3036         * modules/uniwidth/u8-strwidth: Likewise.
3037         * modules/uniwidth/u8-width: Likewise.
3038         * modules/uniwidth/u16-strwidth: Likewise.
3039         * modules/uniwidth/u16-width: Likewise.
3040         * modules/uniwidth/u32-strwidth: Likewise.
3041         * modules/uniwidth/u32-width: Likewise.
3042         * modules/uniwidth/width: Likewise.
3043         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3044         with $(LIBUNISTRING).
3045         * modules/unicase/ignorable-tests: Likewise.
3046         * modules/unicase/locale-language-tests: Likewise.
3047         * modules/unicase/tolower-tests: Likewise.
3048         * modules/unicase/totitle-tests: Likewise.
3049         * modules/unicase/toupper-tests: Likewise.
3050         * modules/unicase/u8-casecmp-tests: Likewise.
3051         * modules/unicase/u8-casecoll-tests: Likewise.
3052         * modules/unicase/u8-casefold-tests: Likewise.
3053         * modules/unicase/u8-is-cased-tests: Likewise.
3054         * modules/unicase/u8-is-casefolded-tests: Likewise.
3055         * modules/unicase/u8-is-lowercase-tests: Likewise.
3056         * modules/unicase/u8-is-titlecase-tests: Likewise.
3057         * modules/unicase/u8-is-uppercase-tests: Likewise.
3058         * modules/unicase/u8-tolower-tests: Likewise.
3059         * modules/unicase/u8-totitle-tests: Likewise.
3060         * modules/unicase/u8-toupper-tests: Likewise.
3061         * modules/unicase/u16-casecmp-tests: Likewise.
3062         * modules/unicase/u16-casecoll-tests: Likewise.
3063         * modules/unicase/u16-casefold-tests: Likewise.
3064         * modules/unicase/u16-is-cased-tests: Likewise.
3065         * modules/unicase/u16-is-casefolded-tests: Likewise.
3066         * modules/unicase/u16-is-lowercase-tests: Likewise.
3067         * modules/unicase/u16-is-titlecase-tests: Likewise.
3068         * modules/unicase/u16-is-uppercase-tests: Likewise.
3069         * modules/unicase/u16-tolower-tests: Likewise.
3070         * modules/unicase/u16-totitle-tests: Likewise.
3071         * modules/unicase/u16-toupper-tests: Likewise.
3072         * modules/unicase/u32-casecmp-tests: Likewise.
3073         * modules/unicase/u32-casecoll-tests: Likewise.
3074         * modules/unicase/u32-casefold-tests: Likewise.
3075         * modules/unicase/u32-is-cased-tests: Likewise.
3076         * modules/unicase/u32-is-casefolded-tests: Likewise.
3077         * modules/unicase/u32-is-lowercase-tests: Likewise.
3078         * modules/unicase/u32-is-titlecase-tests: Likewise.
3079         * modules/unicase/u32-is-uppercase-tests: Likewise.
3080         * modules/unicase/u32-tolower-tests: Likewise.
3081         * modules/unicase/u32-totitle-tests: Likewise.
3082         * modules/unicase/u32-toupper-tests: Likewise.
3083         * modules/unicase/ulc-casecmp-tests: Likewise.
3084         * modules/unicase/ulc-casecoll-tests: Likewise.
3085         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3086         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3087         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3088         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3089         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3090         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3091         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3092         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3093         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3094         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3095         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3096         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3097         * modules/unictype/bidicategory-byname-tests: Likewise.
3098         * modules/unictype/bidicategory-name-tests: Likewise.
3099         * modules/unictype/bidicategory-of-tests: Likewise.
3100         * modules/unictype/bidicategory-test-tests: Likewise.
3101         * modules/unictype/block-list-tests: Likewise.
3102         * modules/unictype/block-of-tests: Likewise.
3103         * modules/unictype/block-test-tests: Likewise.
3104         * modules/unictype/category-C-tests: Likewise.
3105         * modules/unictype/category-Cc-tests: Likewise.
3106         * modules/unictype/category-Cf-tests: Likewise.
3107         * modules/unictype/category-Cn-tests: Likewise.
3108         * modules/unictype/category-Co-tests: Likewise.
3109         * modules/unictype/category-Cs-tests: Likewise.
3110         * modules/unictype/category-L-tests: Likewise.
3111         * modules/unictype/category-Ll-tests: Likewise.
3112         * modules/unictype/category-Lm-tests: Likewise.
3113         * modules/unictype/category-Lo-tests: Likewise.
3114         * modules/unictype/category-Lt-tests: Likewise.
3115         * modules/unictype/category-Lu-tests: Likewise.
3116         * modules/unictype/category-M-tests: Likewise.
3117         * modules/unictype/category-Mc-tests: Likewise.
3118         * modules/unictype/category-Me-tests: Likewise.
3119         * modules/unictype/category-Mn-tests: Likewise.
3120         * modules/unictype/category-N-tests: Likewise.
3121         * modules/unictype/category-Nd-tests: Likewise.
3122         * modules/unictype/category-Nl-tests: Likewise.
3123         * modules/unictype/category-No-tests: Likewise.
3124         * modules/unictype/category-P-tests: Likewise.
3125         * modules/unictype/category-Pc-tests: Likewise.
3126         * modules/unictype/category-Pd-tests: Likewise.
3127         * modules/unictype/category-Pe-tests: Likewise.
3128         * modules/unictype/category-Pf-tests: Likewise.
3129         * modules/unictype/category-Pi-tests: Likewise.
3130         * modules/unictype/category-Po-tests: Likewise.
3131         * modules/unictype/category-Ps-tests: Likewise.
3132         * modules/unictype/category-S-tests: Likewise.
3133         * modules/unictype/category-Sc-tests: Likewise.
3134         * modules/unictype/category-Sk-tests: Likewise.
3135         * modules/unictype/category-Sm-tests: Likewise.
3136         * modules/unictype/category-So-tests: Likewise.
3137         * modules/unictype/category-Z-tests: Likewise.
3138         * modules/unictype/category-Zl-tests: Likewise.
3139         * modules/unictype/category-Zp-tests: Likewise.
3140         * modules/unictype/category-Zs-tests: Likewise.
3141         * modules/unictype/category-and-not-tests: Likewise.
3142         * modules/unictype/category-and-tests: Likewise.
3143         * modules/unictype/category-byname-tests: Likewise.
3144         * modules/unictype/category-name-tests: Likewise.
3145         * modules/unictype/category-none-tests: Likewise.
3146         * modules/unictype/category-of-tests: Likewise.
3147         * modules/unictype/category-or-tests: Likewise.
3148         * modules/unictype/category-test-withtable-tests: Likewise.
3149         * modules/unictype/combining-class-tests: Likewise.
3150         * modules/unictype/ctype-alnum-tests: Likewise.
3151         * modules/unictype/ctype-alpha-tests: Likewise.
3152         * modules/unictype/ctype-blank-tests: Likewise.
3153         * modules/unictype/ctype-cntrl-tests: Likewise.
3154         * modules/unictype/ctype-digit-tests: Likewise.
3155         * modules/unictype/ctype-graph-tests: Likewise.
3156         * modules/unictype/ctype-lower-tests: Likewise.
3157         * modules/unictype/ctype-print-tests: Likewise.
3158         * modules/unictype/ctype-punct-tests: Likewise.
3159         * modules/unictype/ctype-space-tests: Likewise.
3160         * modules/unictype/ctype-upper-tests: Likewise.
3161         * modules/unictype/ctype-xdigit-tests: Likewise.
3162         * modules/unictype/decimal-digit-tests: Likewise.
3163         * modules/unictype/digit-tests: Likewise.
3164         * modules/unictype/mirror-tests: Likewise.
3165         * modules/unictype/numeric-tests: Likewise.
3166         * modules/unictype/property-alphabetic-tests: Likewise.
3167         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3168         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3169         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3170         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3171         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3172         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3173         * modules/unictype/property-bidi-control-tests: Likewise.
3174         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3175         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3176         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3177         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3178         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3179         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3180         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3181         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3182         * modules/unictype/property-bidi-pdf-tests: Likewise.
3183         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3184         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3185         * modules/unictype/property-byname-tests: Likewise.
3186         * modules/unictype/property-combining-tests: Likewise.
3187         * modules/unictype/property-composite-tests: Likewise.
3188         * modules/unictype/property-currency-symbol-tests: Likewise.
3189         * modules/unictype/property-dash-tests: Likewise.
3190         * modules/unictype/property-decimal-digit-tests: Likewise.
3191         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3192         * modules/unictype/property-deprecated-tests: Likewise.
3193         * modules/unictype/property-diacritic-tests: Likewise.
3194         * modules/unictype/property-extender-tests: Likewise.
3195         * modules/unictype/property-format-control-tests: Likewise.
3196         * modules/unictype/property-grapheme-base-tests: Likewise.
3197         * modules/unictype/property-grapheme-extend-tests: Likewise.
3198         * modules/unictype/property-grapheme-link-tests: Likewise.
3199         * modules/unictype/property-hex-digit-tests: Likewise.
3200         * modules/unictype/property-hyphen-tests: Likewise.
3201         * modules/unictype/property-id-continue-tests: Likewise.
3202         * modules/unictype/property-id-start-tests: Likewise.
3203         * modules/unictype/property-ideographic-tests: Likewise.
3204         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3205         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3206         * modules/unictype/property-ignorable-control-tests: Likewise.
3207         * modules/unictype/property-iso-control-tests: Likewise.
3208         * modules/unictype/property-join-control-tests: Likewise.
3209         * modules/unictype/property-left-of-pair-tests: Likewise.
3210         * modules/unictype/property-line-separator-tests: Likewise.
3211         * modules/unictype/property-logical-order-exception-tests: Likewise.
3212         * modules/unictype/property-lowercase-tests: Likewise.
3213         * modules/unictype/property-math-tests: Likewise.
3214         * modules/unictype/property-non-break-tests: Likewise.
3215         * modules/unictype/property-not-a-character-tests: Likewise.
3216         * modules/unictype/property-numeric-tests: Likewise.
3217         * modules/unictype/property-other-alphabetic-tests: Likewise.
3218         * modules/unictype/property-other-default-ignorable-code-point-tests:
3219         Likewise.
3220         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3221         * modules/unictype/property-other-id-continue-tests: Likewise.
3222         * modules/unictype/property-other-id-start-tests: Likewise.
3223         * modules/unictype/property-other-lowercase-tests: Likewise.
3224         * modules/unictype/property-other-math-tests: Likewise.
3225         * modules/unictype/property-other-uppercase-tests: Likewise.
3226         * modules/unictype/property-paired-punctuation-tests: Likewise.
3227         * modules/unictype/property-paragraph-separator-tests: Likewise.
3228         * modules/unictype/property-pattern-syntax-tests: Likewise.
3229         * modules/unictype/property-pattern-white-space-tests: Likewise.
3230         * modules/unictype/property-private-use-tests: Likewise.
3231         * modules/unictype/property-punctuation-tests: Likewise.
3232         * modules/unictype/property-quotation-mark-tests: Likewise.
3233         * modules/unictype/property-radical-tests: Likewise.
3234         * modules/unictype/property-sentence-terminal-tests: Likewise.
3235         * modules/unictype/property-soft-dotted-tests: Likewise.
3236         * modules/unictype/property-space-tests: Likewise.
3237         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3238         * modules/unictype/property-test-tests: Likewise.
3239         * modules/unictype/property-titlecase-tests: Likewise.
3240         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3241         * modules/unictype/property-unified-ideograph-tests: Likewise.
3242         * modules/unictype/property-uppercase-tests: Likewise.
3243         * modules/unictype/property-variation-selector-tests: Likewise.
3244         * modules/unictype/property-white-space-tests: Likewise.
3245         * modules/unictype/property-xid-continue-tests: Likewise.
3246         * modules/unictype/property-xid-start-tests: Likewise.
3247         * modules/unictype/property-zero-width-tests: Likewise.
3248         * modules/unictype/scripts-tests: Likewise.
3249         * modules/unictype/syntax-c-ident-tests: Likewise.
3250         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3251         * modules/unictype/syntax-java-ident-tests: Likewise.
3252         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3253         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3254         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3255         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3256         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3257         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3258         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3259         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3260         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3261         * modules/uniname/uniname-tests: Likewise.
3262         * modules/uninorm/canonical-decomposition-tests: Likewise.
3263         * modules/uninorm/compat-decomposition-tests: Likewise.
3264         * modules/uninorm/composition-tests: Likewise.
3265         * modules/uninorm/decomposing-form-tests: Likewise.
3266         * modules/uninorm/decomposition-tests: Likewise.
3267         * modules/uninorm/filter-tests: Likewise.
3268         * modules/uninorm/nfc-tests: Likewise.
3269         * modules/uninorm/nfd-tests: Likewise.
3270         * modules/uninorm/nfkc-tests: Likewise.
3271         * modules/uninorm/nfkd-tests: Likewise.
3272         * modules/uninorm/u8-normcmp-tests: Likewise.
3273         * modules/uninorm/u8-normcoll-tests: Likewise.
3274         * modules/uninorm/u16-normcmp-tests: Likewise.
3275         * modules/uninorm/u16-normcoll-tests: Likewise.
3276         * modules/uninorm/u32-normcmp-tests: Likewise.
3277         * modules/uninorm/u32-normcoll-tests: Likewise.
3278         * modules/unistdio/u8-asnprintf-tests: Likewise.
3279         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3280         * modules/unistdio/u8-vasprintf-tests: Likewise.
3281         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3282         * modules/unistdio/u8-vsprintf-tests: Likewise.
3283         * modules/unistdio/u16-asnprintf-tests: Likewise.
3284         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3285         * modules/unistdio/u16-vasprintf-tests: Likewise.
3286         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3287         * modules/unistdio/u16-vsprintf-tests: Likewise.
3288         * modules/unistdio/u32-asnprintf-tests: Likewise.
3289         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3290         * modules/unistdio/u32-vasprintf-tests: Likewise.
3291         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3292         * modules/unistdio/u32-vsprintf-tests: Likewise.
3293         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3294         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3295         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3296         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3297         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3298         * modules/unistr/u8-check-tests: Likewise.
3299         * modules/unistr/u8-chr-tests: Likewise.
3300         * modules/unistr/u8-cmp-tests: Likewise.
3301         * modules/unistr/u8-cmp2-tests: Likewise.
3302         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3303         * modules/unistr/u8-cpy-tests: Likewise.
3304         * modules/unistr/u8-mblen-tests: Likewise.
3305         * modules/unistr/u8-mbsnlen-tests: Likewise.
3306         * modules/unistr/u8-mbtouc-tests: Likewise.
3307         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3308         * modules/unistr/u8-mbtoucr-tests: Likewise.
3309         * modules/unistr/u8-move-tests: Likewise.
3310         * modules/unistr/u8-next-tests: Likewise.
3311         * modules/unistr/u8-prev-tests: Likewise.
3312         * modules/unistr/u8-set-tests: Likewise.
3313         * modules/unistr/u8-stpcpy-tests: Likewise.
3314         * modules/unistr/u8-stpncpy-tests: Likewise.
3315         * modules/unistr/u8-strcat-tests: Likewise.
3316         * modules/unistr/u8-strcmp-tests: Likewise.
3317         * modules/unistr/u8-strcoll-tests: Likewise.
3318         * modules/unistr/u8-strcpy-tests: Likewise.
3319         * modules/unistr/u8-strdup-tests: Likewise.
3320         * modules/unistr/u8-strlen-tests: Likewise.
3321         * modules/unistr/u8-strmblen-tests: Likewise.
3322         * modules/unistr/u8-strmbtouc-tests: Likewise.
3323         * modules/unistr/u8-strncat-tests: Likewise.
3324         * modules/unistr/u8-strncmp-tests: Likewise.
3325         * modules/unistr/u8-strncpy-tests: Likewise.
3326         * modules/unistr/u8-strnlen-tests: Likewise.
3327         * modules/unistr/u8-to-u16-tests: Likewise.
3328         * modules/unistr/u8-to-u32-tests: Likewise.
3329         * modules/unistr/u8-uctomb-tests: Likewise.
3330         * modules/unistr/u16-check-tests: Likewise.
3331         * modules/unistr/u16-chr-tests: Likewise.
3332         * modules/unistr/u16-cmp-tests: Likewise.
3333         * modules/unistr/u16-cmp2-tests: Likewise.
3334         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3335         * modules/unistr/u16-cpy-tests: Likewise.
3336         * modules/unistr/u16-mblen-tests: Likewise.
3337         * modules/unistr/u16-mbsnlen-tests: Likewise.
3338         * modules/unistr/u16-mbtouc-tests: Likewise.
3339         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3340         * modules/unistr/u16-mbtoucr-tests: Likewise.
3341         * modules/unistr/u16-move-tests: Likewise.
3342         * modules/unistr/u16-next-tests: Likewise.
3343         * modules/unistr/u16-prev-tests: Likewise.
3344         * modules/unistr/u16-set-tests: Likewise.
3345         * modules/unistr/u16-stpcpy-tests: Likewise.
3346         * modules/unistr/u16-stpncpy-tests: Likewise.
3347         * modules/unistr/u16-strcat-tests: Likewise.
3348         * modules/unistr/u16-strcmp-tests: Likewise.
3349         * modules/unistr/u16-strcoll-tests: Likewise.
3350         * modules/unistr/u16-strcpy-tests: Likewise.
3351         * modules/unistr/u16-strdup-tests: Likewise.
3352         * modules/unistr/u16-strlen-tests: Likewise.
3353         * modules/unistr/u16-strmblen-tests: Likewise.
3354         * modules/unistr/u16-strmbtouc-tests: Likewise.
3355         * modules/unistr/u16-strncat-tests: Likewise.
3356         * modules/unistr/u16-strncmp-tests: Likewise.
3357         * modules/unistr/u16-strncpy-tests: Likewise.
3358         * modules/unistr/u16-strnlen-tests: Likewise.
3359         * modules/unistr/u16-to-u32-tests: Likewise.
3360         * modules/unistr/u16-to-u8-tests: Likewise.
3361         * modules/unistr/u16-uctomb-tests: Likewise.
3362         * modules/unistr/u32-check-tests: Likewise.
3363         * modules/unistr/u32-chr-tests: Likewise.
3364         * modules/unistr/u32-cmp-tests: Likewise.
3365         * modules/unistr/u32-cmp2-tests: Likewise.
3366         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3367         * modules/unistr/u32-cpy-tests: Likewise.
3368         * modules/unistr/u32-mblen-tests: Likewise.
3369         * modules/unistr/u32-mbsnlen-tests: Likewise.
3370         * modules/unistr/u32-mbtouc-tests: Likewise.
3371         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3372         * modules/unistr/u32-mbtoucr-tests: Likewise.
3373         * modules/unistr/u32-move-tests: Likewise.
3374         * modules/unistr/u32-next-tests: Likewise.
3375         * modules/unistr/u32-prev-tests: Likewise.
3376         * modules/unistr/u32-set-tests: Likewise.
3377         * modules/unistr/u32-stpcpy-tests: Likewise.
3378         * modules/unistr/u32-stpncpy-tests: Likewise.
3379         * modules/unistr/u32-strcat-tests: Likewise.
3380         * modules/unistr/u32-strcmp-tests: Likewise.
3381         * modules/unistr/u32-strcoll-tests: Likewise.
3382         * modules/unistr/u32-strcpy-tests: Likewise.
3383         * modules/unistr/u32-strdup-tests: Likewise.
3384         * modules/unistr/u32-strlen-tests: Likewise.
3385         * modules/unistr/u32-strmblen-tests: Likewise.
3386         * modules/unistr/u32-strmbtouc-tests: Likewise.
3387         * modules/unistr/u32-strncat-tests: Likewise.
3388         * modules/unistr/u32-strncmp-tests: Likewise.
3389         * modules/unistr/u32-strncpy-tests: Likewise.
3390         * modules/unistr/u32-strnlen-tests: Likewise.
3391         * modules/unistr/u32-to-u16-tests: Likewise.
3392         * modules/unistr/u32-to-u8-tests: Likewise.
3393         * modules/unistr/u32-uctomb-tests: Likewise.
3394         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3395         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3396         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3397         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3398         * modules/uniwidth/u8-strwidth-tests: Likewise.
3399         * modules/uniwidth/u8-width-tests: Likewise.
3400         * modules/uniwidth/u16-strwidth-tests: Likewise.
3401         * modules/uniwidth/u16-width-tests: Likewise.
3402         * modules/uniwidth/u32-strwidth-tests: Likewise.
3403         * modules/uniwidth/u32-width-tests: Likewise.
3404         * modules/uniwidth/width-tests: Likewise.
3405
3406 2010-05-18  Richard Jones  <rjones@redhat.com>
3407
3408         doc: users.txt: list hivex
3409         * users.txt: Add hivex.
3410
3411 2010-05-18  Richard Jones  <rjones@redhat.com>
3412
3413         doc: users.txt: list febootstrap
3414         * users.txt: Add febootstrap.
3415
3416 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3417
3418         bootstrap: fix an error when gnulib is not used as a git submodule
3419         * build-aux/bootstrap (gnulib_path): If its length is zero then
3420         assign "gnulib" to it.
3421         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3422
3423 2010-05-16  Bruno Haible  <bruno@clisp.org>
3424
3425         Avoid autoconf warnings about AM_ICONV.
3426         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3427         2.64.
3428
3429 2010-05-16  Bruno Haible  <bruno@clisp.org>
3430
3431         absolute-header: Make the macro usable in more situations.
3432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3433         from gl_ABSOLUTE_HEADER.
3434         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3435
3436 2010-05-16  James Youngman  <jay@gnu.org>
3437
3438         doc: update users.txt
3439         * users.txt: Add CSSC.
3440
3441 2010-05-16  Jim Meyering  <meyering@redhat.com>
3442
3443         init.sh: fix an error in the previous change; add more comments
3444         * tests/init.sh: Compare exit code in loop against 9, not 2.
3445         Patch by Bruno Haible.
3446         Make the two tests more similar by adding an empty "then" clause.
3447         Add comments.
3448
3449         init.sh: avoid unnecessary shell re-exec
3450         * tests/init.sh: Improve the re-exec-required check to first test the
3451         current shell.  If it passes the test, do not search for a shell that
3452         does pass, and do not re-exec.  This test is particularly contorted to
3453         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3454         of $(...) evokes a syntax error and causes immediate shell exit with
3455         status 2.  Bruno Haible reported that the re-exec made it impossible
3456         to single-step through any init.sh-using script.
3457
3458 2010-05-16  Bruno Haible  <bruno@clisp.org>
3459
3460         Fix collision between gnulib's and libintl's printf replacements.
3461         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3462         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3463         (printf): When using GNU C, map the __printf__ function to rpl_printf
3464         via __asm__. When not using GNU C, define rpl_printf instead of
3465         __printf__.
3466         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3467         commit.
3468         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3469         commit.
3470         * m4/asm-underscore.m4: New file.
3471         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3472         * modules/stdio (Files): Add m4/asm-underscore.m4.
3473         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3474         Reported by Ben Pfaff.
3475
3476 2010-05-16  Bruno Haible  <bruno@clisp.org>
3477
3478         verify: Avoid skipping the test on openSUSE 11.0.
3479         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3480
3481 2010-05-13  Bruno Haible  <bruno@clisp.org>
3482
3483         Avoid useless warnings from G++.
3484         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3485         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3487
3488 2010-05-11  Jim Meyering  <meyering@redhat.com>
3489
3490         maint.mk: tweak preceding change
3491         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3492         regexps tighter by anchoring at EOL, and make the new group "shy"
3493         for slightly decreased overhead.
3494
3495 2010-05-11  Eric Blake  <eblake@redhat.com>
3496
3497         maint.mk: gnulib doesn't guarantee NSIG
3498         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3499
3500 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3501
3502         test-pwrite.c: Remove unused variable declaration.
3503         * tests/test-pwrite.c (main): Remove read_buf declaration.
3504
3505         Remove useless test-pwrite.sh file.
3506         * tests/test-pwrite.sh: Delete file.
3507         * modules/pwrite-tests: Remove references.
3508         Reported by Bruno Haible.
3509
3510 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3511
3512         init.sh: fix a typo
3513         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3514
3515 2010-05-10  Jim Meyering  <meyering@redhat.com>
3516
3517         maint.mk: avoid using a temporary file in the always-defined-macros check
3518         * top/maint.mk (.re-defmac): Remove rule.
3519         (gl_trap_): Remove definition.
3520         (sc_prohibit_always-defined_macros): Rewrite not to create and
3521         depend on a temporary file.  Instead, depend on GNU grep's ability
3522         to read a list of regular expressions from stdin when given "-f -".
3523
3524 2010-05-09  Bruno Haible  <bruno@clisp.org>
3525
3526         Update to GNU gettext 0.18, part 1.
3527         * m4/gettext.m4: Update to GNU gettext 0.18.
3528         * m4/intl.m4: Likewise.
3529         * m4/po.m4: Likewise.
3530         * modules/gettext (Files): Add m4/fcntl-o.m4.
3531         (configure.ac): Require gettext infrastructure from version 0.18.
3532
3533 2010-05-09  Jim Meyering  <meyering@redhat.com>
3534
3535         init.sh: enable MALLOC_PERTURB_
3536         * tests/init.sh: Enable glibc's malloc-perturbing option.
3537
3538         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3539         With my recent change in init.sh from the two-line form:
3540             -#   : ${srcdir=.}
3541             -#   . "$srcdir/init.sh"; path_prepend_ .
3542             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3543         I noticed that using the one-line form would cause this test
3544         to fail with a false-positive, or to stop working altogether,
3545         depending on whether help-version changed or all the tests did.
3546         * top/maint.mk (_hv_regex): Remove this definition.
3547         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3548         (_hv_regex_strong): Use a stronger regex to check for conformance.
3549         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3550         Give a separate diagnostic for lack of conforming use.
3551
3552         maint.mk: prohibit definition of symbols defined by gnulib
3553         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3554         definition of symbols defined by gnulib.
3555
3556 2010-05-09  Bruno Haible  <bruno@clisp.org>
3557
3558         acl: Avoid test failure on Cygwin-hosted mingw.
3559         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3560
3561 2010-05-09  Bruno Haible  <bruno@clisp.org>
3562
3563         error: Use system's fcntl function.
3564         * lib/error.c (fcntl): Undefine.
3565
3566 2010-05-09  Jim Meyering  <meyering@redhat.com>
3567
3568         verify: adjust formatting to be more consistent
3569         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3570         argument-list '('s, and after one comma.
3571
3572 2010-05-09  Bruno Haible  <bruno@clisp.org>
3573
3574         error: More reliable output on mingw.
3575         * lib/error.c: Include <windows.h>.
3576         (is_open): New function.
3577         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3578         defined.
3579
3580 2010-05-09  Bruno Haible  <bruno@clisp.org>
3581
3582         vasnprintf: Fix syntax errors in libintl build on mingw.
3583         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3584         pad_ourselves and prec_ourselves after use.
3585
3586 2010-05-08  Bruno Haible  <bruno@clisp.org>
3587
3588         * lib/config.charset: Update comments for Cygwin 1.7.
3589         * lib/localcharset.c: Likewise.
3590
3591 2010-05-07  Jim Meyering  <meyering@redhat.com>
3592
3593         init.sh: improve comments
3594         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3595         . "${srcdir=.}/init.sh"; path_prepend_ .
3596         Add a note about path_prepend_ and the alternative of using
3597         TESTS_ENVIRONMENT.
3598
3599 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3600
3601         exclude: Unescape hashed patterns in wildcard mode.
3602         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3603         to the hash list.
3604         * tests/test-exclude8.sh: New test case.
3605         * modules/exclude-tests: Add new test.
3606
3607 2010-05-05  Eric Blake  <eblake@redhat.com>
3608
3609         verify: automate tests
3610         * modules/verify-tests: New module.
3611         * tests/test-verify.sh: New file.
3612         * tests/test-verify.c: Guard each negative test with a unique id.
3613         Also avoid warning about unused left hand of comma expressions.
3614
3615 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3616
3617         Further improvements to verify.h, suggested by Eric Blake.
3618         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3619         the GL_* versions, to avoid collision with OpenGL.
3620         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3621         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3622         than testing merely whether it's defined.
3623
3624         Modify verify.h to pacify gcc -Wredundant_decls.
3625         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3626         These use the prefix "GL_" since they're likely to be useful elsewhere.
3627         We may need to break them out into a different .h file.
3628         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3629         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3630         of verify_function__.
3631
3632 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3633
3634         Tests for module pwrite.
3635         * modules/pwrite-tests: New file.
3636         * tests/test-pwrite.sh: New file.
3637         * tests/test-pwrite.c: New file.
3638
3639         New module pwrite.
3640         * lib/unistd.in.h (pwrite): New declaration.
3641         * lib/pwrite.c: New file, from glibc with modifications.
3642         * m4/pwrite.m4: New file.
3643         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3644         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3645         REPLACE_PWRITE.
3646         * modules/pwrite: New file.
3647         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3648         REPLACE_PWRITE.
3649         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3650         * doc/posix-functions/pwrite.texi: Mention the new module.
3651
3652 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3653
3654         pread: Update documentation.
3655         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3656
3657 2010-05-04  Eric Blake  <eblake@redhat.com>
3658
3659         docs: update cygwin progress
3660         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3661         this bug.
3662         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3663         Added in cygwin 1.7.2.
3664         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3665         Likewise.
3666         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3667         Likewise.
3668         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3669         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3670         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3671         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3672         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3673         Mention nproc module.
3674         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3675         bug in cygwin 1.7.5 addition.
3676         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3677         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3678         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3679         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3680         1.7.5.
3681         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3682         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3683         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3684         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3685         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3686         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3687         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3688         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3689         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3690         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3691         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3692         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3693         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3694         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3695         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3696         Likewise.
3697         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3698         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3699         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3700         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3701         Likewise.
3702         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3703         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3704         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3705         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3706         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3707         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3708         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3709         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3710         Likewise.
3711         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3712         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3713         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3714         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3715         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3716         Likewise.
3717         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3718         Likewise.
3719         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3720         Likewise.
3721         * doc/glibc-functions/xdrrec_endofrecord.texi
3722         (xdrrec_endofrecord): Likewise.
3723         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3724         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3725         Likewise.
3726         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3727         Likewise.
3728
3729 2010-05-04  Jim Meyering  <meyering@redhat.com>
3730
3731         gendocs.sh: make its "-s FILE" option more useful
3732         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3733         $PACKAGE to reflect the probably-different basename of "FILE".
3734
3735 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3736
3737         bootstrap: don't ignore download_po_files failure
3738         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3739         failure.
3740
3741 2010-05-03  Jim Meyering  <meyering@redhat.com>
3742
3743         maint.mk: allow to pass options to gendocs.sh
3744         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3745         (gendocs_options_): New overridable variable.
3746
3747         gnu-web-doc-update: don't ignore configure or build failure
3748         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3749
3750         announce-gen: backslash-escape '@'s in --help output
3751         * build-aux/announce-gen: Fix syntax errors.
3752
3753         maint.mk, announce-gen: allow project-specific announcement mail headers
3754         * top/maint.mk (translation_project_): Define default.
3755         (announcement_Cc_, announcement_mail_headers_): Likewise.
3756         (announcement): Invoke announce-gen with new --mail-headers option.
3757         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3758
3759         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3760         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3761         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3762         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3763         line in the "err2" output file when running "make check" in verbose
3764         mode (i.e., with set -x enabled).
3765
3766 2010-05-03  Bruno Haible  <bruno@clisp.org>
3767
3768         wctob: Fix for weird platforms.
3769         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3770         argument value.
3771
3772 2010-05-03  Jim Meyering  <meyering@redhat.com>
3773
3774         maint.mk: prohibit unwarranted use of <strings.h>
3775         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3776         strings.h in a file that does not also use strcasecmp, strncasecmp,
3777         ffs or ffsll.
3778
3779         maint.mk: remove obsolete comments
3780         * top/maint.mk: Remove stale, commented-out rules.
3781
3782 2010-05-02  Bruno Haible  <bruno@clisp.org>
3783
3784         wcwidth: Declare also when it's aliased.
3785         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3786         macro.
3787
3788 2010-05-02  Bruno Haible  <bruno@clisp.org>
3789
3790         Fix regression from 2010-04-25.
3791         * gnulib-tool (func_modules_transitive_closure): Check the status of
3792         all modules, not only of the tests that are of the form foo-tests where
3793         foo is a module.
3794
3795 2010-05-02  Bruno Haible  <bruno@clisp.org>
3796
3797         wctob: Work around nasty Cygwin 1.7.2 bug.
3798         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3799         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3800
3801 2010-05-01  Bruno Haible  <bruno@clisp.org>
3802
3803         fpurge: Sharper test.
3804         * tests/test-fpurge.c (main): Add one more ftell check.
3805         * modules/fpurge-tests (Depends-on): Add ftell.
3806         Suggested by Eric Blake.
3807
3808 2010-05-01  Bruno Haible  <bruno@clisp.org>
3809
3810         ftello: Another test.
3811         * tests/test-ftello3.c: New file.
3812         * modules/ftello-tests (Files): Add it.
3813         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3814         MOSTLYCLEANFILES.
3815
3816         ftell: Another test.
3817         * tests/test-ftell3.c: New file.
3818         * modules/ftell-tests (Files): Add it.
3819         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3820         MOSTLYCLEANFILES.
3821
3822 2010-05-01  Bruno Haible  <bruno@clisp.org>
3823
3824         ftell, ftello: Work around Solaris bug.
3825         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3826         * lib/ftello.c: Include stdio-impl.h.
3827         (ftello): On Solaris, when _IOWRT is set, compute the result without
3828         looking at _IOREAD.
3829         * modules/ftello (Files): Add lib/stdio-impl.h.
3830         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3831         * doc/posix-functions/ftello.texi: Likewise.
3832         Reported by Eric Blake.
3833
3834 2010-05-01  Bruno Haible  <bruno@clisp.org>
3835
3836         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3837         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3838         the _IOWRT flag is also set.
3839
3840 2010-05-01  Bruno Haible  <bruno@clisp.org>
3841
3842         Fix doc about a HP-UX stdio bug.
3843         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3844         * doc/posix-functions/ftello.texi: Likewise.
3845
3846 2010-05-01  Bruno Haible  <bruno@clisp.org>
3847
3848         lseek test: Fix failure on Solaris.
3849         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3850         output.
3851
3852 2010-04-30  Jim Meyering  <meyering@redhat.com>
3853
3854         bootstrap: don't ignore failure to generate po*/Makevars
3855         * build-aux/bootstrap (with_gettext): Don't ignore failure
3856         to create po/Makevars or runtime-po/Makevars.
3857
3858 2010-04-29  Eric Blake  <eblake@redhat.com>
3859
3860         headers: relax license to LGPLv2+
3861         * modules/fcntl-h (License): Relax license.
3862         * modules/getopt-posix (License): Likewise.
3863         * modules/locale (License): Likewise.
3864         * modules/math (License): Likewise.
3865         * modules/pty (License): Likewise.
3866         * modules/sched (License): Likewise.
3867         * modules/search (License): Likewise.
3868         * modules/spawn (License): Likewise.
3869         * modules/stdarg (License): Likewise.
3870         * modules/sysexits (License): Likewise.
3871
3872 2010-04-29  Jim Meyering  <meyering@redhat.com>
3873
3874         inttypes: relax license to LGPLv2+
3875         * modules/inttypes (License): Relax license.
3876
3877 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3878
3879         * top/maint.mk (indent): Run twice to produce idempotent results.
3880
3881 2010-04-28  Bruno Haible  <bruno@clisp.org>
3882
3883         getdate: Generate getdate.c in the source directory.
3884         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3885         MOSTLYCLEANFILES.
3886         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3887
3888 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3889
3890         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3891         is not declared as a const *; avoid warnings in that case.
3892
3893 2010-04-28  Eric Blake  <eblake@redhat.com>
3894
3895         canonicalize-lgpl: avoid compiler warning
3896         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3897         declaration' / 'extraneous semicolon' warning with some compilers.
3898         Reported by Andreas Gruenbacher.
3899
3900 2010-04-28  Jim Meyering  <meyering@redhat.com>
3901
3902         init.sh: ensure a more reliable exit status when exiting via trap
3903         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3904         Inspired by patches from Dmitry V. Levin.
3905         Also trap on signal 3 (SIGQUIT).
3906
3907 2010-04-27  Bruno Haible  <bruno@clisp.org>
3908
3909         Update doc about utimes().
3910         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3911         'utimens' module.
3912         Reported by Andreas Gruenbacher <agruen@suse.de>.
3913
3914 2010-04-27  Eric Blake  <eblake@redhat.com>
3915
3916         full-read, full-write: relax license
3917         * modules/full-read (License): Drop to LGPLv2+.
3918         * modules/full-write (License): Likewise.
3919         * modules/safe-read (License): Likewise.
3920         * modules/safe-write (License): Likewise.
3921
3922         pthread: mention library for linking
3923         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3924
3925 2010-04-27  Jim Meyering  <meyering@redhat.com>
3926
3927         maint.mk: fix a bug introduced in last change
3928         * top/maint.mk (gl_assured_headers_): Now that all names are on
3929         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3930         is not anchored to end of word, it should be adequate.
3931
3932         maint.mk: avoid side-effect in latest syntax-check
3933         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3934         to run commands via $(shell...), and hence to incur cost only when
3935         the new rule is actually run.
3936
3937         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3938         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3939         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3940         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3941         (gl_assured_headers_, az_, AZ_): Define.
3942         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3943
3944 2010-04-26  Jim Meyering  <jim@meyering.net>
3945             Bruno Haible  <bruno@clisp.org>
3946
3947         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3948         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3949         Prompted by an exchange with Gilles Espinasse.
3950
3951 2010-04-26  Jim Meyering  <meyering@redhat.com>
3952
3953         git-version-gen: aesthetic tweak
3954         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3955         so that the command remains on a single line.
3956
3957 2010-04-26  Eric Blake  <eblake@redhat.com>
3958
3959         git-version-gen: allow use on EBCDIC hosts
3960         * build-aux/git-version-gen (dirty): Use literal rather than tying
3961         ourselves to ascii.
3962         Reported by Steve Goetze.
3963
3964 2010-04-25  Bruno Haible  <bruno@clisp.org>
3965
3966         netdb: Add support for GNULIB_POSIXCHECK.
3967         * lib/netdb.in.h: Include warn-on-use.h.
3968         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3969         functions are used when GNULIB_POSIXCHECK is defined and the
3970         getaddrinfo module is not in use.
3971         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3972         freeaddrinfo, gai_strerror, getnameinfo are declared.
3973         * modules/netdb (Depends-on): Add warn-on-use.
3974         (Makefile.am): Include warn-on-use.h in netdb.h.
3975
3976 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3977
3978         build: avoid "make check" failure without .git/ directory
3979         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3980         there is no .git/ directory.
3981
3982 2010-04-25  Bruno Haible  <bruno@clisp.org>
3983
3984         ptsname: Fix misuse of ttyname_r.
3985         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3986         of errno.
3987
3988 2010-04-25  Bruno Haible  <bruno@clisp.org>
3989
3990         ttyname_r: Make it work on Solaris 10.
3991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3992         if the system function has the POSIX declaration. Test whether the
3993         function fails if the buffer is less than 128 bytes large.
3994         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3995         system's ttyname_r function. Provide a reasonably large buffer.
3996         * modules/ttyname_r (Depends-on): Add extensions.
3997         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3998
3999 2010-04-25  Bruno Haible  <bruno@clisp.org>
4000
4001         Use the 'extensions' module for some more functions on Solaris.
4002         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4003         module.
4004         * doc/posix-functions/ctime_r.texi: Likewise.
4005         * doc/posix-functions/getgrgid_r.texi: Likewise.
4006         * doc/posix-functions/getgrnam_r.texi: Likewise.
4007         * doc/posix-functions/getpwnam_r.texi: Likewise.
4008         * doc/posix-functions/getpwuid_r.texi: Likewise.
4009         * doc/posix-functions/readdir_r.texi: Likewise.
4010         * doc/posix-functions/sigwait.texi: Likewise.
4011         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4012         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4013
4014 2010-04-25  Bruno Haible  <bruno@clisp.org>
4015
4016         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4017         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4018         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4019         * lib/ttyname_r.c: Include <limits.h>.
4020         (ttyname_r): Define using the system's ttyname_r function, if it exists
4021         and not on Solaris.
4022         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4023         set.
4024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4025         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4026         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4027         Reported by Simon Josefsson.
4028
4029 2010-04-25  Bruno Haible  <bruno@clisp.org>
4030
4031         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4032         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4033         * doc/posix-functions/ctime_r.texi: Likewise.
4034         * doc/posix-functions/getgrgid_r.texi: Likewise.
4035         * doc/posix-functions/getgrnam_r.texi: Likewise.
4036         * doc/posix-functions/getlogin_r.texi: Likewise.
4037         * doc/posix-functions/getpwnam_r.texi: Likewise.
4038         * doc/posix-functions/getpwuid_r.texi: Likewise.
4039         * doc/posix-functions/readdir_r.texi: Likewise.
4040         * doc/posix-functions/sigwait.texi: Likewise.
4041         * doc/posix-functions/ttyname_r.texi: Likewise.
4042         Reported by Simon Josefsson.
4043
4044 2010-04-25  Bruno Haible  <bruno@clisp.org>
4045
4046         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4047         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4048         also to --create-testdir.
4049         (func_acceptable): Don't consider the status of *-tests modules here.
4050         (func_modules_transitive_closure): Consider it here, before including a
4051         test module.
4052         (func_import, func_create_testdir): Set inc_all_direct_tests,
4053         inc_all_indirect_tests.
4054         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4055         --create-testdir and --create-megatestdir.
4056
4057 2010-04-25  Bruno Haible  <bruno@clisp.org>
4058
4059         gnulib-tool: Add --without-*-tests options.
4060         * gnulib-tool (func_usage): Document the --without-*-tests options.
4061         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4062         excl_unportable_tests): New variables.
4063         Fail if they are specified with --import or --update.
4064         (func_acceptable): Respect the excl_*_tests variables.
4065         (func_import): Set the excl_*_tests variables to empty.
4066
4067 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4068             Bruno Haible  <bruno@clisp.org>
4069
4070         Work around a MacOS X 10.4 bug with openpty.
4071         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4072         * tests/test-openpty.c (main): Close the master side explicitly.
4073
4074 2010-04-25  Bruno Haible  <bruno@clisp.org>
4075
4076         strnlen: Fix a C++ test error on MacOS X and Solaris.
4077         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4078         the function is not declared.
4079         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4080         Simon Josefsson.
4081
4082 2010-04-24  Bruno Haible  <bruno@clisp.org>
4083
4084         Avoid a gcc warning.
4085         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4086         of correct type for %08lx directive.
4087         Reported by Eric Blake.
4088
4089 2010-04-24  Bruno Haible  <bruno@clisp.org>
4090
4091         vasnprintf: Correct errno value in case of out-of-memory.
4092         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4093         or sprintf. Use the errno value from SNPRINTF or sprintf.
4094         Reported by Ian Beckwith <ianb@erislabs.net>.
4095
4096 2010-04-24  Bruno Haible  <bruno@clisp.org>
4097
4098         ansi-c++-opt: Find correct compiler when cross-compiling.
4099         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4100         AC_CHECK_PROGS.
4101         Reported by Simon Josefsson.
4102
4103 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4104
4105         vc-list-files: Add support for subversion
4106         * build-aux/vc-list-files: Use "svn list" to generate the list of
4107         files controlled by subversion.
4108
4109 2010-04-23  Jim Meyering  <meyering@redhat.com>
4110
4111         vc-list-files tests: convert to use init.sh
4112         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4113         path_prepend_.
4114         Use Exit, not exit.
4115         Use skip_ rather than open coding it.
4116         Remove trap set-up and compare definitions.
4117         * tests/test-vc-list-files-git.sh: Likewise.
4118         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4119
4120 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4121
4122         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4123         backup files.
4124
4125 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4126
4127         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4128
4129 2010-04-20  Eric Blake  <eblake@redhat.com>
4130
4131         tests: be robust to ignored SIGPIPE
4132         * tests/test-select-in.sh: Consume all output.
4133         * tests/test-lseek.sh: Check correct exit status, while avoiding
4134         EPIPE.
4135
4136 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4137             Bruno Haible  <bruno@clisp.org>
4138
4139         visibility: Don't use -fvisibility if it leads to a warning.
4140         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4141         yes, don't pretend that visibility works if it leads to a warning.
4142         Reported by Mike Gran <spk121@yahoo.com>.
4143
4144 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4145
4146         * build-aux/bootstrap: Use "git -h" for testing for supported options
4147         instead of "git --help".  The short-form option only shows a summary,
4148         and doesn't layout the full man page.  Grep for the full option name
4149         in the summary, too.
4150
4151 2010-04-19  Bruno Haible  <bruno@clisp.org>
4152
4153         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4155         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4156         mention of RELOCATABLE_STRIP.
4157         Reported by Sylvain Beucler <beuc@beuc.net>.
4158
4159 2010-04-19  Bruno Haible  <bruno@clisp.org>
4160
4161         * lib/diffseq.h: Fix typo in comment.
4162         Reported by Eric Blake.
4163
4164 2010-04-19  Bruno Haible  <bruno@clisp.org>
4165
4166         ioctl: Move autoconf macro to a .m4 file.
4167         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4168         * modules/ioctl (Files): Add it.
4169         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4170         Reported by Ian Beckwith <ianb@erislabs.net>.
4171
4172 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4173             Bruno Haible  <bruno@clisp.org>
4174
4175         diffseq: Accommodate use-case with abstract arrays.
4176         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4177         is not defined.
4178         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4179         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4180
4181 2010-04-18  Bruno Haible  <bruno@clisp.org>
4182
4183         * doc/posix-headers/stdbool.texi: More precise wording.
4184
4185 2010-04-17  Jim Meyering  <meyering@redhat.com>
4186
4187         maint.mk: use gnu-style indentation in an embedded perl script
4188         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4189         Rename variable: s/two/last_two_bytes/
4190
4191 2010-04-16  Eric Blake  <eblake@redhat.com>
4192
4193         test-stdbool: skip test that fails with Solaris CC
4194         * tests/test-stdbool.c (f): Skip test that causes compilation
4195         error under buggy C++ compiler.
4196         * lib/stdbool.in.h: Document the limitation.
4197         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4198
4199         setenv: allow compilation with C++
4200         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4201         register keyword.
4202
4203         stdint: allow test to pass with C++
4204         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4205
4206         getopt: allow compilation with C++
4207         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4208         struct.
4209         * lib/getopt.c (_getopt_internal_r): Use correct type.
4210         Reported by Dagobert Michelson, via Joel E. Denny.
4211
4212 2010-04-16  Bruno Haible  <bruno@clisp.org>
4213
4214         Override netdb.h always.
4215         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4216         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4217         Reported by Ludovic Courtès <ludo@gnu.org>.
4218
4219 2010-04-15  Bruno Haible  <bruno@clisp.org>
4220
4221         openpty: Fix mistake from 2010-03-21.
4222         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4223         Reported by Simon Josefsson.
4224
4225 2010-04-15  Eric Blake  <eblake@redhat.com>
4226
4227         test-forkpty: fix expected signature
4228         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4229         Reported by Simon Josefsson.
4230
4231 2010-04-15  Jim Meyering  <meyering@redhat.com>
4232
4233         maint.mk: texinfo_suffix_re_: correct the default regexp
4234         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4235
4236         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4237         make it configurable via texinfo_suffix_re_.
4238
4239 2010-04-14  Eric Blake  <eblake@redhat.com>
4240
4241         strtok_r: relax license to LGPLv2+
4242         * modules/strtok_r (License): Relax license.
4243         Reported by Matthias Bolte.
4244
4245 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4246
4247         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4248         version 1.4.4 by default instead of requiring the libgcrypt
4249         version used during build.  This makes it possible to use the
4250         application with older but still binary compatible libgcrypt
4251         versions.
4252
4253 2010-04-13  Eric Blake  <eblake@redhat.com>
4254
4255         getopt-gnu: match recent glibc fixes and posix ruling
4256         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4257         '+' handling, when requesting extensions.
4258         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4259         'W;' handling.
4260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4261         * doc/posix-functions/getopt.texi (getopt): Document this.
4262         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4263         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4264         Likewise.
4265
4266         getopt: merge bug fixes from glibc
4267         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4268         diagnostics.  Honor '+:' correctly.  Reject ';'.
4269
4270         getopt-posix: detect MacOS bug
4271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4272         optind when missing a required argument.
4273         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4274         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4275         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4276         Likewise.
4277
4278         getopt-posix: avoid spurious failure on Solaris
4279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4280         an indicator that setting optind=1 is sufficient for reset.
4281
4282         getopt-posix: avoid spurious failure on FreeBSD
4283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4284         in POSIX mode, since the m4 test uses it.
4285
4286         gnulib-tool: silence warning on BSD sh
4287         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4288
4289 2010-04-13  Jim Meyering  <meyering@redhat.com>
4290
4291         doc: users.txt: GNU patch now uses gnulib
4292         * users.txt: Add patch.
4293
4294 2010-04-12  Jim Meyering  <meyering@redhat.com>
4295
4296         maint.mk: generate more concise timing data for syntax-check rules
4297         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4298         " done" from each line that reports a syntax-check test duration.
4299
4300 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4301
4302         git-version-gen: use "git update-index..." rather than "git status"
4303         * build-aux/git-version-gen: Use git update-index --refresh, not
4304         "git status".  With some versions of git, "git status" would fail
4305         to update the index and result in an unwarranted "-dirty" suffix.
4306
4307 2010-04-11  Jim Meyering  <meyering@redhat.com>
4308
4309         openat: correct formatting (no semantic change)
4310         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4311         Suggested by Bruno Haible.
4312
4313 2010-04-11  Bruno Haible  <bruno@clisp.org>
4314
4315         Stricter declaration checking in testdirs.
4316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4317         If for_tests is true, augment AM_CPPFLAGS to define
4318         GNULIB_STRICT_CHECKING.
4319         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4320         GNULIB_STRICT_CHECKING is defined, verify that the function is
4321         declared.
4322
4323 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4324             Bruno Haible  <bruno@clisp.org>
4325
4326         libunistring: Improve configure output.
4327         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4328         Don't say "consider installing GNU libunistring" when checking again
4329         with libiconv.
4330
4331 2010-04-11  Bruno Haible  <bruno@clisp.org>
4332
4333         libunistring: Correct value of $LTLIBUNISTRING.
4334         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4335         correct the value of $LTLIBUNISTRING.
4336
4337 2010-04-11  Bruno Haible  <bruno@clisp.org>
4338
4339         havelib: Add static libraries to LIBS in the right order.
4340         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4341         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4342
4343 2010-04-11  Bruno Haible  <bruno@clisp.org>
4344
4345         libunistring: Detect libunistring also when it depends on libiconv.
4346         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4347         the second AC_LIB_HAVE_LINKFLAGS invocation.
4348
4349 2010-04-11  James Youngman  <jay@gnu.org>
4350
4351         close-stream: declare local scalars to be "const"
4352         * lib/close-stream.c (close_stream): Make boolean variables const
4353         to document the fact that we set but do not change them.
4354
4355 2010-04-11  Bruno Haible  <bruno@clisp.org>
4356
4357         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4358
4359 2010-04-11  Jim Meyering  <meyering@redhat.com>
4360
4361         maint.mk: don't include dist-check.mk
4362         * top/maint.mk: Remove bogus include directive.
4363
4364         maint.mk: improve empty-line-at-EOF check
4365         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4366         solution, rather than tail+Perl-based one.  The latter would read
4367         a few kilobytes from the end of each file, and did not handle empty
4368         files properly.
4369
4370         maint.mk: print the elapsed time for each syntax-check rule
4371         * top/maint.mk (sc_m_rules_): Save start time in a file.
4372         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4373         (local-check): Interpose the .z rules
4374
4375 2010-04-11  Jim Meyering  <meyering@redhat.com>
4376
4377         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4378         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4379         empty file with one that ends in an empty line.
4380
4381 2010-04-10  Bruno Haible  <bruno@clisp.org>
4382
4383         mkdir: Make it work on mingw64.
4384         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4385         * lib/mkdir.c: Update comment.
4386         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4387
4388 2010-04-10  Bruno Haible  <bruno@clisp.org>
4389
4390         Don't override improved macro from newer autoconf.
4391         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4392         autoconf >= 2.62.
4393         Reported by Joel E. Denny <jdenny@clemson.edu>.
4394
4395 2010-04-10  Jim Meyering  <meyering@redhat.com>
4396
4397         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4398         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4399
4400         maint.mk: correct a diagnostic
4401         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4402         in diagnostic; now use $prohibit.
4403
4404 2010-04-10  Bruno Haible  <address@hidden>
4405
4406         fchownat: Fix a C++ test error on Solaris 8.
4407         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4408         the function does not exist.
4409
4410 2010-04-10  Bruno Haible  <bruno@clisp.org>
4411
4412         vasnprintf: Add more tests.
4413         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4414         (test_function): Test converting an invalid wide string.
4415
4416         vasnprintf: Correct handling of unconvertible wide string arguments.
4417         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4418         VASNPRINTF.
4419         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4420         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4421         smaller than the expected maximum need for the directive. Set errno to
4422         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4423         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4425         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4426         * modules/vasnprintf (Files): Add m4/printf.m4.
4427         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4428
4429 2010-04-10  Bruno Haible  <bruno@clisp.org>
4430
4431         vasnprintf: Fix crash in %ls directive.
4432         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4433         string is passed as argument to %ls, with no precision and no width.
4434         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4435
4436 2010-04-10  Bruno Haible  <bruno@clisp.org>
4437
4438         vasnprintf: Fix multiple test failures on mingw.
4439         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4440         _snprintf, or snwprintf, not _snwprintf.
4441
4442 2010-04-10  Bruno Haible  <bruno@clisp.org>
4443
4444         write: Fix a C++ test error on mingw.
4445         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4446
4447 2010-04-10  Bruno Haible  <bruno@clisp.org>
4448
4449         vasnprintf test: Reduce code duplication.
4450         * tests/test-vasnprintf.c (test_function): New function, extracted from
4451         test_vasnprintf.
4452         (test_vasnprintf, test_asnprintf): Invoke it.
4453
4454 2010-04-10  Bruno Haible  <bruno@clisp.org>
4455
4456         strnlen: Fix warning in C++ mode on MacOS X.
4457         * lib/string.in.h (strnlen): Use the modern idiom.
4458         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4459         defining strnlen as a macro already in <config.h>.
4460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4461         REPLACE_STRNLEN.
4462         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4463         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4464
4465 2010-04-08  James Youngman  <jay@gnu.org>
4466
4467         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4468         the example.
4469
4470 2010-04-09  Jim Meyering  <meyering@redhat.com>
4471
4472         maint.mk: print better diagnostic when there is no $(_hv_file)
4473         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4474         announce that when $(_hv_file) (aka help-version) does not exist.
4475
4476         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4477         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4478         not try to interpret its random input bytes.  Jarno Rajahalme reported
4479         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4480         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4481         (mktempd_): Likewise, just in case.
4482
4483         ftruncate: add two years to projected module removal date: 2012
4484         * m4/ftruncate.m4: Adjust comments.
4485
4486         ftruncate: mark module as obsolete; even MinGW provides it, now
4487         * modules/ftruncate (Status): Obsolete.
4488         (Notice): Say that.
4489         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4490         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4491
4492 2010-04-08  Bruno Haible  <bruno@clisp.org>
4493
4494         Fix side effects from tests-related modules.
4495         * modules/dprintf-posix (Comment): New section.
4496         * modules/fprintf-posix (Comment): Likewise.
4497         * modules/obstack-printf-posix (Comment): Likewise.
4498         * modules/printf-posix (Comment): Likewise.
4499         * modules/snprintf-posix (Comment): Likewise.
4500         * modules/sprintf-posix (Comment): Likewise.
4501         * modules/vasnprintf-posix (Comment): Likewise.
4502         * modules/vasprintf-posix (Comment): Likewise.
4503         * modules/vdprintf-posix (Comment): Likewise.
4504         * modules/vfprintf-posix (Comment): Likewise.
4505         * modules/vprintf-posix (Comment): Likewise.
4506         * modules/vsnprintf-posix (Comment): Likewise.
4507         * modules/vsprintf-posix (Comment): Likewise.
4508         * modules/xprintf-posix (Comment): Likewise.
4509         * modules/xvasprintf-posix (Comment): Likewise.
4510         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4511         * modules/floorf-tests (Depends-on): Likewise.
4512         * modules/round-tests (Depends-on): Likewise.
4513         * modules/roundf-tests (Depends-on): Likewise.
4514         * modules/trunc-tests (Depends-on): Likewise.
4515         * modules/truncf-tests (Depends-on): Likewise.
4516         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4517         'fprintf-posix' module is not present.
4518         * tests/test-floorf2.c (check): Likewise.
4519         * tests/test-trunc2.c (check): Likewise.
4520         * tests/test-truncf2.c (check): Likewise.
4521         * tests/test-round2.c (equal): Likewise.
4522         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4523
4524 2010-04-07  Karl Berry  <karl@gnu.org>
4525
4526         * config/srclist.txt,
4527         * config/srclistvars.sh,
4528         * config/srclist-update: doc fixes.
4529
4530 2010-04-07  Jim Meyering  <meyering@redhat.com>
4531
4532         maint.mk: add a PATH crosschecking syntax-check rule
4533         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4534         Useful if you use a test like the one in help-version (coreutils,
4535         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4536         printed by prog --version.
4537
4538 2010-04-06  Bruno Haible  <bruno@clisp.org>
4539
4540         Fix link error on mingw.
4541         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4542         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4543
4544 2010-04-06  Bruno Haible  <bruno@clisp.org>
4545
4546         Assume rmdir exists.
4547         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4548
4549 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4550
4551         doc: update users.txt
4552         * users.txt: Add gcal.
4553
4554 2010-04-06  Jim Meyering  <meyering@redhat.com>
4555
4556         init.sh: simply unset TMPDIR rather than risking env -i
4557         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4558         although it probably works fine on all Unix-based systems, some
4559         systems (Cygwin?) cannot tolerate a totally cleared environment.
4560         Suggestion from Eric Blake.
4561
4562 2010-04-06  Jim Meyering  <meyering@redhat.com>
4563
4564         init.sh: portability fix: use env's POSIX-specified -i option not -u
4565         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4566         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4567
4568 2010-04-05  Bruno Haible  <bruno@clisp.org>
4569
4570         btowc: Work around Cygwin 1.7.2 bug.
4571         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4572         does not map NUL to 0.
4573         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4574
4575 2010-04-05  Bruno Haible  <bruno@clisp.org>
4576
4577         Make the multithread modules work on Cygwin 1.7.2.
4578         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4579         imported symbols can be declared weak, so that it returns "no" on
4580         Cygwin 1.7.2.
4581
4582 2010-04-05  Bruno Haible  <bruno@clisp.org>
4583
4584         Use the module 'strncat'.
4585         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4586
4587         Tests for module 'strncat'.
4588         * modules/strncat-tests: New file.
4589         * tests/test-strncat.c: New file.
4590
4591         New module 'strncat'.
4592         * lib/string.in.h (strncat): New declaration.
4593         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4594         * m4/strncat.m4: New file, based on m4/memchr.m4.
4595         * modules/strncat: New file.
4596         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4597         is declared.
4598         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4599         REPLACE_STRNCAT.
4600         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4601         REPLACE_STRNCAT.
4602         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4603         module.
4604         * tests/test-string-c++.cc: Check signature of strncat.
4605
4606 2010-04-05  Jim Meyering  <meyering@redhat.com>
4607
4608         xstrtoumax-tests: convert to use init.sh
4609         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4610         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4611         Use Exit, not exit.
4612         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4613
4614         xstrtoimax-tests: convert to use init.sh
4615         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4616         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4617         Use Exit, not exit.
4618         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4619
4620 2010-04-05  Bruno Haible  <bruno@clisp.org>
4621
4622         sys_socket: Avoid #define replacements in C++ mode.
4623         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4624         warning to the function if possible, rather than #defining the symbol
4625         to a dysfunctional alias.
4626
4627 2010-04-05  Bruno Haible  <bruno@clisp.org>
4628
4629         fseeko: Fix C++ test error on mingw.
4630         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4631         gl_FUNC_FSEEKO.
4632         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4633         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4634         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4635         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4636
4637 2010-04-05  Bruno Haible  <bruno@clisp.org>
4638
4639         duplocale: Improve test output.
4640         * tests/test-duplocale.c (main): Print reason for skipped test.
4641
4642 2010-04-05  Bruno Haible  <bruno@clisp.org>
4643
4644         Assume rmdir exists.
4645         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4646         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4647
4648 2010-04-05  Bruno Haible  <bruno@clisp.org>
4649
4650         Fix link error on Solaris 8 with cc.
4651         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4652
4653 2010-04-05  Bruno Haible  <bruno@clisp.org>
4654
4655         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4656         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4657
4658 2010-04-05  Bruno Haible  <bruno@clisp.org>
4659
4660         vasprintf: Update documentation.
4661         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4662
4663 2010-04-05  Bruno Haible  <bruno@clisp.org>
4664
4665         ptsname: Improve test.
4666         * tests/test-ptsname.c (main): Also try the various master names of BSD
4667         systems.
4668
4669 2010-04-05  Bruno Haible  <bruno@clisp.org>
4670
4671         memchr: Avoid a possible C++ test error.
4672         * lib/string.in.h (memchr): Provide declaration if function is missing.
4673         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4674         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4676         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4677
4678 2010-04-05  Bruno Haible  <bruno@clisp.org>
4679
4680         strtok_r: Improve idiom.
4681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4682         AC_LIBOBJ is used.
4683
4684 2010-04-05  Bruno Haible  <bruno@clisp.org>
4685
4686         strdup: Improve idiom.
4687         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4688         AC_LIBOBJ is used.
4689         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4690         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4691         when AC_LIBOBJ is used.
4692
4693 2010-04-05  Bruno Haible  <bruno@clisp.org>
4694
4695         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4696         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4697         don't set REPLACE_MBSINIT to 1.
4698         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4699         don't set REPLACE_MBRTOWC to 1.
4700         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4701         exist, don't set REPLACE_MBSRTOWCS to 1.
4702         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4703         exist, don't set REPLACE_MBSNRTOWCS to 1.
4704         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4705         don't set REPLACE_WCRTOMB to 1.
4706         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4707         exist, don't set REPLACE_WCSRTOMBS to 1.
4708         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4709         exist, don't set REPLACE_WCSNRTOMBS to 1.
4710
4711 2010-04-05  Bruno Haible  <bruno@clisp.org>
4712
4713         ldexpl: Improve idiom.
4714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4715         make sure to set HAVE_DECL_LDEXPL to 0.
4716
4717 2010-04-05  Jim Meyering  <meyering@redhat.com>
4718
4719         xstrtol-tests: convert to use init.sh
4720         * modules/xstrtol-tests (Files): Add tests/init.sh.
4721         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4722         Use Exit, not exit.
4723         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4724
4725         atexit-tests: convert to use init.sh
4726         * modules/atexit-tests (Files): Add tests/init.sh.
4727         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4728         Use Exit, not exit.
4729         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4730
4731         init.sh: fix typo
4732         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4733
4734         init.sh: make it easier for a test script to write to the tty, ...
4735         when using automake's parallel-tests mode.
4736         * tests/init.sh (stderr_fileno_): Define overridable variable.
4737         (warn_): New function, to use it.
4738         (fail_, skip_, framework_failure_): Use warn_.
4739
4740 2010-04-04  Bruno Haible  <bruno@clisp.org>
4741
4742         btowc: Avoid warning.
4743         * lib/btowc.c: Include <stdlib.h>.
4744         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4745
4746 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4747             Bruno Haible  <bruno@clisp.org>
4748
4749         wchar: Port to NetBSD 1.5.
4750         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4751         * lib/wctype.in.h (WEOF): Likewise.
4752
4753 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4754             Bruno Haible  <bruno@clisp.org>
4755
4756         Port extended stdio to NetBSD 1.5.
4757         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4758         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4759         older.
4760
4761 2010-04-04  Bruno Haible  <bruno@clisp.org>
4762
4763         string: Remove unused substitution.
4764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4765         HAVE_DECL_STRERROR.
4766         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4767
4768 2010-04-04  Bruno Haible  <bruno@clisp.org>
4769
4770         strtod: Avoid a possible C++ test error.
4771         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4772         set REPLACE_STRTOD.
4773
4774 2010-04-04  Bruno Haible  <bruno@clisp.org>
4775
4776         strerror: Update documentation.
4777         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4778
4779 2010-04-04  Bruno Haible  <bruno@clisp.org>
4780
4781         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4782         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4783         _GL_CXXALIAS_SYS_CAST.
4784
4785 2010-04-04  Bruno Haible  <bruno@clisp.org>
4786
4787         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4788         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4789         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4790         REPLACE_FREXPL to 1.
4791         * doc/posix-functions/frexpl.texi: Update documentation.
4792
4793 2010-04-04  Bruno Haible  <bruno@clisp.org>
4794
4795         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4796         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4797
4798 2010-04-04  Bruno Haible  <bruno@clisp.org>
4799
4800         Implement nanosleep for native Windows.
4801         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4802
4803 2010-04-04  Bruno Haible  <bruno@clisp.org>
4804
4805         math: Fix some C++ test errors on Solaris 8.
4806         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4807
4808 2010-04-04  Bruno Haible  <bruno@clisp.org>
4809
4810         math: Fix some C++ test errors on Cygwin.
4811         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4812         truncl): Provide declaration if the system does not have it.
4813         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4814         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4815         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4816         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4817         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4818         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4819         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4820         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4821         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4822         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4823         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4824         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4825         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4826         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4827         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4828         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4830         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4831         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4832         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4833         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4834         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4835
4836 2010-04-04  Bruno Haible  <bruno@clisp.org>
4837
4838         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4839         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4840         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4841         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4842         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4843         * m4/isinf.m4 (gl_ISINF): Likewise.
4844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4845
4846 2010-04-04  Bruno Haible  <bruno@clisp.org>
4847
4848         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4849         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4850
4851 2010-04-04  Bruno Haible  <bruno@clisp.org>
4852
4853         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4854         * modules/tmpfile (configure.ac): Update.
4855
4856         tmpfile: Fix C++ test error on mingw.
4857         * lib/stdio.in.h (tmpfile): New declaration.
4858         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4859         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4860         * modules/tmpfile (Depends-on): Add stdio.
4861         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4862         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4863         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4864         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4865         REPLACE_TMPFILE.
4866         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4867
4868 2010-04-04  Bruno Haible  <bruno@clisp.org>
4869
4870         ioctl: Fix C++ test error on mingw.
4871         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4872         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4873         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4874
4875 2010-04-03  Bruno Haible  <bruno@clisp.org>
4876
4877         wcwidth: Fix C++ test error on mingw.
4878         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4880         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4881
4882 2010-04-03  Bruno Haible  <bruno@clisp.org>
4883
4884         nanosleep: Fix C++ test error on mingw.
4885         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4886         * lib/time.in.h (nanosleep): Use modern idiom.
4887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4888         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4889         REPLACE_NANOSLEEP to 1.
4890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4891         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4892
4893 2010-04-03  Bruno Haible  <bruno@clisp.org>
4894
4895         strptime: Fix C++ test error on mingw.
4896         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4897         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4898         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4899         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4901         not REPLACE_STRPTIME.
4902         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4903         REPLACE_STRPTIME.
4904
4905 2010-04-03  Bruno Haible  <bruno@clisp.org>
4906
4907         timegm: Fix C++ test error on mingw.
4908         * lib/time.in.h (timegm): Use modern idiom.
4909         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4910         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4911         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4912         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4913
4914 2010-04-03  Bruno Haible  <bruno@clisp.org>
4915
4916         timegm: Assume declaration if function exists.
4917         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4918         if it exists. Don't clobber ac_cv_func_timegm.
4919
4920 2010-04-03  Bruno Haible  <bruno@clisp.org>
4921
4922         time_r: Fix C++ test error on mingw.
4923         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4924         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4925         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4926         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4927         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4928
4929 2010-04-03  Bruno Haible  <bruno@clisp.org>
4930
4931         time_r: Minor updates.
4932         * modules/time_r (Description): Mention the provided functions.
4933         * lib/time_r.c: Don't include <string.h>.
4934         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4935         * doc/posix-functions/localtime_r.texi: Likewise.
4936
4937 2010-04-03  Bruno Haible  <bruno@clisp.org>
4938
4939         time: Fix regression introduced on 2010-03-08.
4940         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4941         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4942
4943 2010-04-03  Jim Meyering  <meyering@redhat.com>
4944
4945         maint.mk: don't silently disable project-specific syntax-check rules
4946         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4947         that they need to convert their project-specific syntax-check rules
4948         to use the new _sc_search_regexp.
4949
4950 2010-04-03  Bruno Haible  <bruno@clisp.org>
4951
4952         fchdir: Fix regression introduced on 2010-03-08.
4953         * lib/unistd.in.h (fchdir): Fix declaration.
4954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4956         REPLACE_FCHDIR.
4957         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4958         REPLACE_FCHDIR.
4959
4960 2010-04-03  Bruno Haible  <bruno@clisp.org>
4961
4962         getpagesize: Fix C++ test error on mingw.
4963         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4964         system does not declare the function.
4965         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4966         declared.
4967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4968         HAVE_DECL_GETPAGESIZE.
4969         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4970
4971 2010-04-03  Bruno Haible  <bruno@clisp.org>
4972
4973         stdio: Make C++ tests work on mingw.
4974         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4975         does not declare the function.
4976
4977 2010-04-03  Bruno Haible  <bruno@clisp.org>
4978
4979         ftello: Fix C++ test error on mingw.
4980         * lib/stdio.in.h (ftello): Use modern idiom.
4981         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4982         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4983         is missing and that it needs to be replaced.
4984         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4986         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4987
4988 2010-04-03  Bruno Haible  <bruno@clisp.org>
4989
4990         fseeko: Fix C++ test error on mingw.
4991         * lib/stdio.in.h (fseeko): Use modern idiom.
4992         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4994         is missing and that it needs to be replaced.
4995         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4997         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4998
4999 2010-04-03  Bruno Haible  <bruno@clisp.org>
5000
5001         mkstemp: Fix C++ test error on mingw.
5002         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5003         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5004         function is missing and that it needs to be replaced.
5005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5006         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5007
5008 2010-04-03  Bruno Haible  <bruno@clisp.org>
5009
5010         stpncpy: Fix C++ test error on mingw.
5011         * lib/string.in.h (stpncpy): Use modern idiom.
5012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5013         function is missing and that it needs to be replaced.
5014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5015         REPLACE_STPNCPY.
5016         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5017
5018 2010-04-03  Bruno Haible  <bruno@clisp.org>
5019
5020         sys_stat: Fix C++ test error on mingw.
5021         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5022         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5023
5024 2010-04-03  Bruno Haible  <bruno@clisp.org>
5025
5026         pty: Update doc.
5027         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5028
5029 2010-04-03  Bruno Haible  <bruno@clisp.org>
5030
5031         unistd: Fix C++ test error on mingw.
5032         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5033
5034 2010-04-03  Bruno Haible  <bruno@clisp.org>
5035
5036         Update doc regarding mingw.
5037         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5038         * doc/glibc-functions/login_tty.texi: Likewise.
5039         * doc/glibc-functions/forkpty.texi: Likewise.
5040
5041 2010-04-03  Bruno Haible  <bruno@clisp.org>
5042
5043         stdlib: Avoid compilation failure of c-strtold on mingw.
5044         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5045
5046 2010-04-03  Bruno Haible  <bruno@clisp.org>
5047
5048         locale: Make C++ tests work on Cygwin and mingw.
5049         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5050         cannot provide the function.
5051         Reported by Simon Josefsson.
5052
5053 2010-04-03  Bruno Haible  <bruno@clisp.org>
5054
5055         localename: Port to MacOS X 10.6.
5056         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5057         memory layout of the locales in MacOS X 10.6 as well.
5058         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5059
5060 2010-04-02  Bruno Haible  <bruno@clisp.org>
5061
5062         gnulib-tool: Ensure that long-running tests are executed last.
5063         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5064         running tests after the one for the other tests.
5065
5066 2010-04-02  Bruno Haible  <bruno@clisp.org>
5067
5068         gnulib-tool: Ensure the tests in the main directory are executed first.
5069         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5070         start with the current directory.
5071
5072 2010-04-02  Bruno Haible  <bruno@clisp.org>
5073
5074         Tests for module 'havelib', moved here from GNU gettext.
5075         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5076         modifications.
5077         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5078         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5079         with modifications.
5080         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5081         modifications.
5082         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5083         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5084         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5085         with modifications.
5086         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5087         with modifications.
5088         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5089         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5090         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5091         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5092         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5093         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5094         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5095         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5096         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5097         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5098         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5099         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5100         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5101         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5102         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5103         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5104         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5105         with modifications.
5106         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5107         with modifications.
5108         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5109         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5110         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5111         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5112         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5113         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5114         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5115         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5116         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5117         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5118         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5119         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5120         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5121         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5122         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5123         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5124         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5125         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5126         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5127         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5128         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5129         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5130         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5131         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5132         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5133         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5134         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5135         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5136         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5137         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5138         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5139         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5140         * tests/havelib/rpathx/rpathx.c: New file, from
5141         gettext/autoconf-lib-link.
5142         * tests/havelib/rpathx/Makefile.am: New file, from
5143         gettext/autoconf-lib-link.
5144         * tests/havelib/rpathx/configure.ac: New file, from
5145         gettext/autoconf-lib-link with modifications.
5146         * tests/havelib/rpathy/rpathy.c: New file, from
5147         gettext/autoconf-lib-link.
5148         * tests/havelib/rpathy/Makefile.am: New file, from
5149         gettext/autoconf-lib-link.
5150         * tests/havelib/rpathy/configure.ac: New file, from
5151         gettext/autoconf-lib-link with modifications.
5152         * tests/havelib/rpathz/rpathz.c: New file, from
5153         gettext/autoconf-lib-link.
5154         * tests/havelib/rpathz/Makefile.am: New file, from
5155         gettext/autoconf-lib-link.
5156         * tests/havelib/rpathz/configure.ac: New file, from
5157         gettext/autoconf-lib-link with modifications.
5158         * tests/havelib/rpathlx/usex.c: New file, from
5159         gettext/autoconf-lib-link.
5160         * tests/havelib/rpathlx/Makefile.am: New file, from
5161         gettext/autoconf-lib-link.
5162         * tests/havelib/rpathlx/configure.ac: New file, from
5163         gettext/autoconf-lib-link with modifications.
5164         * tests/havelib/rpathly/usey.c: New file, from
5165         gettext/autoconf-lib-link.
5166         * tests/havelib/rpathly/Makefile.am: New file, from
5167         gettext/autoconf-lib-link.
5168         * tests/havelib/rpathly/configure.ac: New file, from
5169         gettext/autoconf-lib-link with modifications.
5170         * tests/havelib/rpathlz/usez.c: New file, from
5171         gettext/autoconf-lib-link.
5172         * tests/havelib/rpathlz/Makefile.am: New file, from
5173         gettext/autoconf-lib-link.
5174         * tests/havelib/rpathlz/configure.ac: New file, from
5175         gettext/autoconf-lib-link with modifications.
5176         * tests/havelib/rpathlyx/usey.c: New file, from
5177         gettext/autoconf-lib-link.
5178         * tests/havelib/rpathlyx/Makefile.am: New file, from
5179         gettext/autoconf-lib-link.
5180         * tests/havelib/rpathlyx/configure.ac: New file, from
5181         gettext/autoconf-lib-link with modifications.
5182         * tests/havelib/rpathlzyx/usez.c: New file, from
5183         gettext/autoconf-lib-link.
5184         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5185         gettext/autoconf-lib-link.
5186         * tests/havelib/rpathlzyx/configure.ac: New file, from
5187         gettext/autoconf-lib-link with modifications.
5188         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5189         with modifications.
5190
5191 2010-04-02  Bruno Haible  <bruno@clisp.org>
5192
5193         gnulib-tool: Create distributed built sources also for the tests.
5194         * gnulib-tool (func_create_testdir): Also generate distributed built
5195         sources in the tests directory.
5196
5197 2010-04-02  Bruno Haible  <bruno@clisp.org>
5198
5199         gnulib-tool: Obey user's environment variables.
5200         * gnulib-tool (func_create_testdir): When creating built sources,
5201         respect the environment variables for autoconf, automake, etc. given by
5202         the user.
5203
5204 2010-04-02  Bruno Haible  <bruno@clisp.org>
5205
5206         gnulib-tool: Provide the value of --m4-base to modules.
5207         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5208         of gl_m4_base.
5209
5210 2010-04-02  Eric Blake  <eblake@redhat.com>
5211
5212         maint.mk: fix some fallout
5213         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5214         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5215
5216 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5217
5218         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5219         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5220         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5221         (sc_cast_of_x_alloc_return_value): Likewise.
5222         (sc_cast_of_alloca_return_value): Likewise.
5223         (sc_space_tab): Likewise.
5224         (sc_prohibit_atoi_atof): Likewise.
5225         (sc_prohibit_magic_number_exit): Likewise.
5226         (sc_error_exit_success): Likewise.
5227         (sc_file_system): Likewise.
5228         (sc_prohibit_have_config_h): Likewise.
5229         (sc_require_config_h): Likewise.
5230         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5231         (sc_obsolete_symbols): Likewise.
5232         (sc_changelog): Likewise.
5233         (sc_program_name): Likewise.
5234         (sc_the_the): Likewise.
5235         (sc_trailing_blank): Likewise.
5236         (sc_two_space_separator_in_usage): Likewise.
5237         (sc_useless_cpp_parens): Likewise.
5238         (sc_GPL_version): Likewise.
5239         (sc_GFDL_version): Likewise.
5240         (sc_texinfo_acronym): Likewise.
5241         (sc_prohibit_cvs_keyword): Likewise.
5242         (sc_prohibit_stat_st_blocks): Likewise.
5243         (sc_prohibit_S_IS_definition): Likewise.
5244         (sc_redundant_const): Likewise.
5245         (sc_makefile_TAB_only_indentation): Likewise.
5246         (sc_m4_quote_check): Likewise.
5247         (sc_makefile_path_separator_check): Likewise.
5248         (sc_copyright_check): Likewise.
5249         (sc_Wundef_boolean): Likewise.
5250         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5251
5252         maint.mk: match 0 or more whitespace-before-function-call '('
5253         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5254         that have zero or two-and-more spaces between the function name
5255         and the open parenthesis.
5256         (sc_error_message_warn_fatal): Likewise.
5257         (sc_error_message_uppercase): Likewise.
5258         (sc_error_message_period): Likewise.
5259
5260 2010-03-31  Eric Blake  <eblake@redhat.com>
5261
5262         maint.mk: check for [ as well as test
5263         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5264         Based on a libvirt report by Matthias Bolte.
5265
5266         gnumakefile: don't squelch _version output
5267         * top/GNUmakefile (_version): Create one-shot dependency rather
5268         than using $(shell) when version must be regenerated.
5269         (_autoreconf): Run verbosely, by default.
5270
5271         sys_time: avoid compiler warnings
5272         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5273         unconditional, fixing regression from 2010-03-29.
5274         Reported by Simon Josefsson.
5275
5276 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5277
5278         maint.mk: s/_header_without_use/_sc_header_without_use/
5279         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5280         (sc_prohibit_assert_without_use): Use the new name.
5281         (sc_prohibit_close_stream_without_use): Likewise.
5282         (sc_prohibit_getopt_without_use): Likewise.
5283         (sc_prohibit_quotearg_without_use): Likewise.
5284         (sc_prohibit_quote_without_use): Likewise.
5285         (sc_prohibit_long_options_without_use): Likewise.
5286         (sc_prohibit_inttostr_without_use): Likewise.
5287         (sc_prohibit_ignore_value_without_use): Likewise.
5288         (sc_prohibit_error_without_use): Likewise.
5289         (sc_prohibit_xalloc_without_use): Likewise.
5290         (sc_prohibit_hash_without_use): Likewise.
5291         (sc_prohibit_hash_pjw_without_use): Likewise.
5292         (sc_prohibit_safe_read_without_use): Likewise.
5293         (sc_prohibit_argmatch_without_use): Likewise.
5294         (sc_prohibit_canonicalize_without_use): Likewise.
5295         (sc_prohibit_root_dev_ino_without_use): Likewise.
5296         (sc_prohibit_openat_without_use): Likewise.
5297         (sc_prohibit_c_ctype_without_use): Likewise.
5298         (sc_prohibit_signal_without_use): Likewise.
5299         (sc_prohibit_intprops_without_use): Likewise.
5300
5301 2010-03-30  Eric Blake  <eblake@redhat.com>
5302
5303         maint: improve module indicators
5304         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5305         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5306         columns, and avoid extra macro expansion.
5307
5308         fdopendir: work around FreeBSD bug
5309         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5310         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5311         * modules/dirent (Makefile.am): Substitute it.
5312         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5313         declaration.
5314         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5315         fix.
5316         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5317
5318 2010-03-29  Bruno Haible  <bruno@clisp.org>
5319
5320         Emit #pragma system_header after the inclusion guard, not before.
5321         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5322         guard that spans the entire file, not before. This enables an
5323         optimization in GCC's preprocessor.
5324         * lib/ctype.in.h: Likewise.
5325         * lib/dirent.in.h: Likewise.
5326         * lib/errno.in.h: Likewise.
5327         * lib/float.in.h: Likewise.
5328         * lib/getopt.in.h: Likewise.
5329         * lib/iconv.in.h: Likewise.
5330         * lib/langinfo.in.h: Likewise.
5331         * lib/locale.in.h: Likewise.
5332         * lib/math.in.h: Likewise.
5333         * lib/netdb.in.h: Likewise.
5334         * lib/netinet_in.in.h: Likewise.
5335         * lib/pty.in.h: Likewise.
5336         * lib/sched.in.h: Likewise.
5337         * lib/se-selinux.in.h: Likewise.
5338         * lib/search.in.h: Likewise.
5339         * lib/spawn.in.h: Likewise.
5340         * lib/stdarg.in.h: Likewise.
5341         * lib/stdint.in.h: Likewise.
5342         * lib/string.in.h: Likewise.
5343         * lib/strings.in.h: Likewise.
5344         * lib/sys_file.in.h: Likewise.
5345         * lib/sys_ioctl.in.h: Likewise.
5346         * lib/sys_time.in.h: Likewise.
5347         * lib/sys_times.in.h: Likewise.
5348         * lib/sys_utsname.in.h: Likewise.
5349         * lib/sys_wait.in.h: Likewise.
5350         * lib/sysexits.in.h: Likewise.
5351         * lib/wctype.in.h: Likewise.
5352
5353 2010-03-28  James Youngman  <jay@gnu.org>
5354
5355         save-cwd: don't leak a file descriptor when the caller execs.
5356         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5357         saved file descriptor.
5358         * modules/save-cwd (Depends-on): Depend on cloexec.
5359
5360 2010-03-29  Bruno Haible  <bruno@clisp.org>
5361
5362         Remove vestiges of fts-lgpl module.
5363         * lib/fts_.h: Assume GNULIB_FTS is 1.
5364         * lib/fts.c: Likewise.
5365         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5366
5367 2010-03-28  Bruno Haible  <bruno@clisp.org>
5368
5369         Fix definition of tests witness macro.
5370         * gnulib-tool (func_import): Fix definition of witness macro.
5371
5372 2010-03-28  Bruno Haible  <bruno@clisp.org>
5373
5374         Fix ioctl's protoype on glibc systems.
5375         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5376         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5377         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5378         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5379         signature. If not, arrange to replace the ioctl function.
5380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5381         REPLACE_IOCTL.
5382         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5383         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5384         Reported by Ludovic Courtès <ludo@gnu.org>.
5385
5386 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5387
5388         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5389         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5390         made it so grep -r --include=GLOB* ... did not work.
5391
5392 2010-03-26  Jim Meyering  <meyering@redhat.com>
5393             Eric Blake  <eblake@redhat.com>
5394
5395         maint.mk: prohibit use of test's -o and -a operators
5396         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5397
5398 2010-03-28  Bruno Haible  <bruno@clisp.org>
5399
5400         Remove unused GNULIB_XYZ macro definitions.
5401         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5402         invocation.
5403
5404 2010-03-28  Bruno Haible  <bruno@clisp.org>
5405
5406         Mark privileged tests modules.
5407         * modules/idpriv-drop-tests (Status): New section.
5408         * modules/idpriv-droptemp-tests (Status): New section.
5409
5410 2010-03-28  Bruno Haible  <bruno@clisp.org>
5411
5412         Split C++ tests into separate tests modules.
5413         * modules/dirent-c++-tests: New file, extracted from
5414         modules/dirent-tests.
5415         * modules/dirent-tests: Depend on it.
5416         * modules/fcntl-h-c++-tests: New file, extracted from
5417         modules/fcntl-h-tests.
5418         * modules/fcntl-h-tests: Depend on it.
5419         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5420         * modules/glob-tests: Depend on it.
5421         * modules/iconv-h-c++-tests: New file, extracted from
5422         modules/iconv-h-tests.
5423         * modules/iconv-h-tests: Depend on it.
5424         * modules/langinfo-c++-tests: New file, extracted from
5425         modules/langinfo-tests.
5426         * modules/langinfo-tests: Depend on it.
5427         * modules/locale-c++-tests: New file, extracted from
5428         modules/locale-tests.
5429         * modules/locale-tests: Depend on it.
5430         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5431         * modules/math-tests: Depend on it.
5432         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5433         * modules/pty-tests: Depend on it.
5434         * modules/search-c++-tests: New file, extracted from
5435         modules/search-tests.
5436         * modules/search-tests: Depend on it.
5437         * modules/signal-c++-tests: New file, extracted from
5438         modules/signal-tests.
5439         * modules/signal-tests: Depend on it.
5440         * modules/spawn-c++-tests: New file, extracted from
5441         modules/spawn-tests.
5442         * modules/spawn-tests: Depend on it.
5443         * modules/stdio-c++-tests: New file, extracted from
5444         modules/stdio-tests.
5445         * modules/stdio-tests: Depend on it.
5446         * modules/stdlib-c++-tests: New file, extracted from
5447         modules/stdlib-tests.
5448         * modules/stdlib-tests: Depend on it.
5449         * modules/string-c++-tests: New file, extracted from
5450         modules/string-tests.
5451         * modules/string-tests: Depend on it.
5452         * modules/sys_ioctl-c++-tests: New file, extracted from
5453         modules/sys_ioctl-tests.
5454         * modules/sys_ioctl-tests: Depend on it.
5455         * modules/sys_select-c++-tests: New file, extracted from
5456         modules/sys_select-tests.
5457         * modules/sys_select-tests: Depend on it.
5458         * modules/sys_socket-c++-tests: New file, extracted from
5459         modules/sys_socket-tests.
5460         * modules/sys_socket-tests: Depend on it.
5461         * modules/sys_stat-c++-tests: New file, extracted from
5462         modules/sys_stat-tests.
5463         * modules/sys_stat-tests: Depend on it.
5464         * modules/sys_time-c++-tests: New file, extracted from
5465         modules/sys_time-tests.
5466         * modules/sys_time-tests: Depend on it.
5467         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5468         * modules/time-tests: Depend on it.
5469         * modules/unistd-c++-tests: New file, extracted from
5470         modules/unistd-tests.
5471         * modules/unistd-tests: Depend on it.
5472         * modules/wchar-c++-tests: New file, extracted from
5473         modules/wchar-tests.
5474         * modules/wchar-tests: Depend on it.
5475         * modules/wctype-c++-tests: New file, extracted from
5476         modules/wctype-tests.
5477         * modules/wctype-tests: Depend on it.
5478         Reported by Simon Josefsson.
5479
5480 2010-03-28  Bruno Haible  <bruno@clisp.org>
5481
5482         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5483         * gnulib-tool (func_exists_module): New function, extracted from
5484         func_verify_module.
5485         (func_verify_module): Use it.
5486         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5487         'foo' only if 'foo' exists.
5488         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5489         module.
5490
5491 2010-03-28  Bruno Haible  <bruno@clisp.org>
5492
5493         gnulib-tool: Add support for special categories of tests.
5494         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5495         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5496         (func_usage): Document them.
5497         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5498         inc_unportable_tests, inc_all_tests): New variables.
5499         (func_acceptable): Consider these variables.
5500         (func_modules_transitive_closure): Make it work when the 'Status' field
5501         consists of multiple words.
5502         (func_import): Store and restore the values of inc_cxx_tests,
5503         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5504         inc_all_tests in gnulib-comp.m4.
5505         (func_create_testdir): Set inc_all_tests to true.
5506         * doc/gnulib.texi (Extra tests modules): New section.
5507         Suggested by Jim Meyering.
5508
5509 2010-03-28  Bruno Haible  <bruno@clisp.org>
5510
5511         ansi-c++-opt: Allow turning off the C++ build by default.
5512         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5513         gl_CXX_CHOICE_DEFAULT_NO is defined.
5514         Requested by Eric Blake.
5515
5516 2010-03-28  Bruno Haible  <bruno@clisp.org>
5517
5518         unistd: Avoid #define replacements in C++ mode.
5519         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5520         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5521         setsockopt, shutdown, select): In C++, attach a warning to the function
5522         if possible, rather than #defining the symbol to a dysfunctional alias.
5523         Reported by John W. Eaton <jwe@gnu.org>.
5524
5525 2010-03-28  Bruno Haible  <bruno@clisp.org>
5526
5527         Fix link errors on mingw.
5528         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5529         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5530         $(LIBSOCKET).
5531         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5532         $(LIBSOCKET).
5533
5534 2010-03-28  Bruno Haible  <bruno@clisp.org>
5535             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5536
5537         lib-ignore: Determine different options for different compilers.
5538         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5539         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5540         Add comments.
5541         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5542         * NEWS: Mention the change.
5543
5544 2010-03-27  Bruno Haible  <bruno@clisp.org>
5545
5546         Remove unused GNULIB_XYZ macro definitions.
5547         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5548         * modules/fseek (configure.ac): Likewise.
5549         * modules/ioctl (configure.ac): Likewise.
5550         * modules/open (configure.ac): Likewise.
5551         * modules/stdlib-safer (configure.ac): Likewise.
5552
5553 2010-03-27  Bruno Haible  <bruno@clisp.org>
5554
5555         Add a remark about certain modules.
5556         * modules/malloc (Comment): New section.
5557         * modules/realloc (Comment): Likewise.
5558         * modules/sigpipe (Comment): Likewise.
5559
5560 2010-03-27  Bruno Haible  <bruno@clisp.org>
5561
5562         Resolve conflict between the two kinds of module indicators.
5563         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5564         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5565         * modules/canonicalize (configure.ac): Invoke
5566         gl_MODULE_INDICATOR_FOR_TESTS.
5567         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5568         GNULIB_XYZ.
5569         * tests/test-dirent-c++.cc: Likewise.
5570         * tests/test-dirent-safer.c: Likewise.
5571         * tests/test-dup2.c: Likewise.
5572         * tests/test-fchdir.c: Likewise.
5573         * tests/test-fcntl-h-c++.cc: Likewise.
5574         * tests/test-getopt.c: Likewise.
5575         * tests/test-getopt.h: Likewise.
5576         * tests/test-langinfo-c++.cc: Likewise.
5577         * tests/test-locale-c++.cc: Likewise.
5578         * tests/test-math-c++.cc: Likewise.
5579         * tests/test-pty-c++.cc: Likewise.
5580         * tests/test-search-c++.cc: Likewise.
5581         * tests/test-signal-c++.cc: Likewise.
5582         * tests/test-spawn-c++.cc: Likewise.
5583         * tests/test-stdio-c++.cc: Likewise.
5584         * tests/test-stdlib-c++.cc: Likewise.
5585         * tests/test-string-c++.cc: Likewise.
5586         * tests/test-sys_ioctl-c++.cc: Likewise.
5587         * tests/test-sys_select-c++.cc: Likewise.
5588         * tests/test-sys_socket-c++.cc: Likewise.
5589         * tests/test-sys_stat-c++.cc: Likewise.
5590         * tests/test-sys_time-c++.cc: Likewise.
5591         * tests/test-time-c++.cc: Likewise.
5592         * tests/test-unistd-c++.cc: Likewise.
5593         * tests/test-wchar-c++.cc: Likewise.
5594         * tests/uninorm/test-u8-nfc.c: Likewise.
5595         * tests/uninorm/test-u8-nfd.c: Likewise.
5596         * tests/uninorm/test-u8-nfkc.c: Likewise.
5597         * tests/uninorm/test-u8-nfkd.c: Likewise.
5598         * tests/uninorm/test-u16-nfc.c: Likewise.
5599         * tests/uninorm/test-u16-nfd.c: Likewise.
5600         * tests/uninorm/test-u16-nfkc.c: Likewise.
5601         * tests/uninorm/test-u16-nfkd.c: Likewise.
5602         * tests/uninorm/test-u32-nfc.c: Likewise.
5603         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5604         * tests/uninorm/test-u32-nfd.c: Likewise.
5605         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5606         * tests/uninorm/test-u32-nfkc.c: Likewise.
5607         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5608         * tests/uninorm/test-u32-nfkd.c: Likewise.
5609         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5610         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5611
5612 2010-03-27  Bruno Haible  <bruno@clisp.org>
5613
5614         Distinguish two kinds of module indicators.
5615         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5616         gl_MODULE_INDICATOR.
5617         (gl_MODULE_INDICATOR): New macro.
5618         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5619         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5621         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5622         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5623         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5624         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5625         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5626         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5627         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5628         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5629         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5631         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5632         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5633         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5634         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5635         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5636         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5637         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5638         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5639         * modules/cloexec (configure.ac): Likewise.
5640         * modules/getopt-gnu (configure.ac): Likewise.
5641         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5642         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5643         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5644         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5645
5646 2010-03-27  Bruno Haible  <bruno@clisp.org>
5647
5648         New module description field 'Comment'.
5649         * gnulib-tool: New option --extract-comment.
5650         (func_usage): Document it.
5651         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5652         (func_get_comment): New function.
5653         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5654
5655 2010-03-27  Bruno Haible  <bruno@clisp.org>
5656
5657         Addendum to 2010-02-07 commit.
5658         * gnulib-tool (func_usage): Document --extract-applicability option.
5659
5660 2010-03-27  Bruno Haible  <bruno@clisp.org>
5661
5662         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5663         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5664         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5665         rather than link errors.
5666
5667 2010-03-27  Bruno Haible  <bruno@clisp.org>
5668
5669         Avoid side effects from tests-related modules on the compilation of lib.
5670         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5671         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5672         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5673         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5674         macro.
5675         (func_import): Define a witness macro. Assign it a value that depends
5676         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5677         tests-related modules.
5678         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5679         Reported by Jim Meyering.
5680
5681 2010-03-27  Bruno Haible  <bruno@clisp.org>
5682
5683         Factorize common .m4 code.
5684         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5685         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5686         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5687         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5688         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5689         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5690         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5691         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5692         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5693         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5694         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5695         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5696         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5697         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5698         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5699         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5700         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5701         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5703         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5706         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5708         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5709         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5710         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5711         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5712         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5713         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5714         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5715         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5716
5717 2010-03-27  Bruno Haible  <bruno@clisp.org>
5718
5719         Fix a compilation error on Cygwin with g++ >= 4.3.
5720         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5721         if it is undefined or if we alias it to chmod.
5722         (lstat): Don't warn about the use of this function if it is undefined
5723         or if we alias it to stat.
5724         Reported by Simon Josefsson.
5725
5726 2010-03-27  Bruno Haible  <bruno@clisp.org>
5727
5728         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5729         * modules/getlogin (configure.ac): Update.
5730
5731         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5732         * modules/getlogin_r (configure.ac): Update.
5733
5734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5736         * modules/inet_ntop (configure.ac): Update.
5737
5738         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5739         * modules/inet_pton (configure.ac): Update.
5740
5741         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5742         * modules/mbslen (configure.ac): Update.
5743
5744         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5745         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5746         * modules/forkpty (configure.ac): Update.
5747         * modules/openpty (configure.ac): Update.
5748
5749 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5750
5751         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5752         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5753
5754 2010-03-25  Eric Blake  <eblake@redhat.com>
5755
5756         maint: use pragma consistently across replacement headers
5757         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5758         * lib/dirent.in.h (system_header): Likewise.
5759         * lib/errno.in.h (system_header): Likewise.
5760         * lib/float.in.h (system_header): Likewise.
5761         * lib/getopt.in.h (system_header): Likewise.
5762         * lib/iconv.in.h (system_header): Likewise.
5763         * lib/inttypes.in.h (system_header): Likewise.
5764         * lib/langinfo.in.h (system_header): Likewise.
5765         * lib/locale.in.h (system_header): Likewise.
5766         * lib/math.in.h (system_header): Likewise.
5767         * lib/netdb.in.h (system_header): Likewise.
5768         * lib/netinet_in.in.h (system_header): Likewise.
5769         * lib/pty.in.h (system_header): Likewise.
5770         * lib/sched.in.h (system_header): Likewise.
5771         * lib/se-selinux.in.h (system_header): Likewise.
5772         * lib/search.in.h (system_header): Likewise.
5773         * lib/spawn.in.h (system_header): Likewise.
5774         * lib/stdarg.in.h (system_header): Likewise.
5775         * lib/stdint.in.h (system_header): Likewise.
5776         * lib/string.in.h (system_header): Likewise.
5777         * lib/strings.in.h (system_header): Likewise.
5778         * lib/sys_file.in.h (system_header): Likewise.
5779         * lib/sys_ioctl.in.h (system_header): Likewise.
5780         * lib/sys_socket.in.h (system_header): Likewise.
5781         * lib/sys_times.in.h (system_header): Likewise.
5782         * lib/sys_utsname.in.h (system_header): Likewise.
5783         * lib/sys_wait.in.h (system_header): Likewise.
5784         * lib/sysexits.in.h (system_header): Likewise.
5785         * lib/unistd.in.h (system_header): Likewise.
5786         * lib/wctype.in.h (system_header): Likewise.
5787
5788         arpa/inet: fix mingw compilation warning
5789         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5790         Reported by Matthew Bolte.
5791
5792 2010-03-25  Bruno Haible  <bruno@clisp.org>
5793
5794         Avoid collision between gnulib wrapper and libintl wrapper.
5795         * lib/printf.c (printf): Don't define if a printf wrapper is already
5796         defined in intl/printf.c.
5797         Reported by Michel Boaventura <michel@michelboaventura.com>.
5798
5799 2010-03-25  Bruno Haible  <bruno@clisp.org>
5800
5801         Use ANSI C.
5802         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5803
5804 2010-03-25  Bruno Haible  <bruno@clisp.org>
5805
5806         Minor formatting changes.
5807         * lib/acosl.c: Insert space before function argument list.
5808         * lib/argz.c: Likewise.
5809         * lib/asinl.c: Likewise.
5810         * lib/expl.c: Likewise.
5811         * lib/gen-uni-tables.c: Likewise.
5812         * lib/gettext.h: Likewise.
5813         * lib/glthread/lock.h: Likewise.
5814         * lib/tanl.c: Likewise.
5815         * lib/uniname/uniname.c: Likewise.
5816         * tests/test-idpriv-drop.c: Likewise.
5817         * tests/test-idpriv-droptemp.c: Likewise.
5818         * tests/test-lock.c: Likewise.
5819         * tests/test-tls.c: Likewise.
5820         * lib/argp-help.c: Insert space before function-like macro argument
5821         list.
5822         * lib/memcmp.c: Likewise.
5823         * tests/test-base64.c: Likewise.
5824         * lib/localename.c: Insert space before sizeof's argument list.
5825         * lib/safe-alloc.h: Likewise.
5826         * lib/file-set.h: Insert space before macro argument list.
5827         * tests/test-argp.c: Likewise.
5828         * lib/argp-namefrob.h: Insert space before function parameter list.
5829         * lib/getaddrinfo.c: Likewise.
5830         * lib/netdb.in.h: Likewise.
5831         * lib/parse-duration.h: Likewise.
5832         * lib/parse-duration.c: Likewise.
5833         * lib/poll.c: Likewise.
5834         * lib/select.c: Likewise.
5835         * lib/trim.h: Likewise.
5836         * tests/test-usleep.c: Likewise.
5837         * lib/ldexpl.c: Insert space before function parameter list and before
5838         function argument list.
5839         * lib/logl.c: Likewise.
5840         * lib/sqrtl.c: Likewise.
5841         * lib/trim.c: Likewise.
5842         * lib/cosl.c: Use GNU style indentation. Insert space before function
5843         argument list.
5844         * lib/sinl.c: Likewise.
5845         * lib/tsearch.c: Insert space after 'for'.
5846         Reported by Jim Meyering.
5847
5848 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5849
5850         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5851         config header before grepping, as it's not present before
5852         autoreconf/configure are run.  Reported by Simon Josefsson.
5853
5854 2010-03-23  Bruno Haible  <bruno@clisp.org>
5855
5856         pt_chown: Make it work with automake < 1.11.
5857         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5858         Reported by Simon Josefsson.
5859
5860 2010-03-23  Bruno Haible  <bruno@clisp.org>
5861
5862         pt_chown: Don't depend on GPLed modules.
5863         * lib/pt_chown.c: Don't include idpriv.h.
5864         (main): Don't drop privileges.
5865         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5866         Reported by Simon Josefsson.
5867
5868 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5869
5870         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5871         suggestions from karl@freefriends.org (Karl Berry).
5872
5873 2010-03-22  Eric Blake  <eblake@redhat.com>
5874
5875         gethostname: further tweaks
5876         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5877         are overriding gethostname.
5878         Suggested by Bruno Haible.
5879
5880 2010-03-21  Bruno Haible  <bruno@clisp.org>
5881
5882         Fix comments.
5883         * lib/forkpty.c (rpl_forkpty): Fix comment.
5884         * lib/openpty.c (rpl_openpty): Likewise.
5885         Reported by Eric Blake.
5886
5887 2010-03-22  Eric Blake  <eblake@redhat.com>
5888
5889         gethostname: fix build on mingw
5890         * lib/unistd.in.h (includes): Work around fact that mingw
5891         <winsock2.h> re-includes <unistd.h>, by avoiding any
5892         redeclarations if we are being included by <winsock2.h>.
5893         Reported by Matthias Bolte.
5894
5895 2010-03-21  Bruno Haible  <bruno@clisp.org>
5896
5897         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5898         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5899         modifications.
5900         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5901         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5902         provide the replacement.
5903         * modules/forkpty (Depends-on): Add openpty, login_tty.
5904         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5905         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5906         * doc/glibc-functions/forkpty.texi: More supported platforms.
5907         * config/srclist.txt: Add forkpty.c (commented).
5908
5909 2010-03-21  Bruno Haible  <bruno@clisp.org>
5910
5911         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5912         (Makefile.am): Verify that PTY_LIB is defined.
5913
5914         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5915
5916 2010-03-21  Bruno Haible  <bruno@clisp.org>
5917
5918         Tests for module 'login_tty'.
5919         * modules/login_tty-tests: New file.
5920         * tests/test-login_tty.c: New file.
5921
5922         New module 'login_tty'.
5923         * lib/login_tty.c: New file.
5924         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5925         * modules/login_tty: New file.
5926         * doc/glibc-functions/login_tty.texi: Mention the new module.
5927
5928 2010-03-21  Bruno Haible  <bruno@clisp.org>
5929
5930         login_tty: Documentation.
5931         * doc/glibc-functions/login_tty.texi: New file.
5932         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5933
5934 2010-03-21  Bruno Haible  <bruno@clisp.org>
5935
5936         pty: Consistent macro naming.
5937         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5938         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5939         * modules/pty (configure.ac): Update.
5940
5941 2010-03-21  Bruno Haible  <bruno@clisp.org>
5942
5943         Tests for openpty: Make stricter.
5944         * tests/test-openpty.c (main): Add test of canonical processing and
5945         erase.
5946         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5947
5948         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5949         * lib/openpty.c (openpty): New replacement function.
5950         * lib/pty.in.h: Include <termios.h>.
5951         (openpty): Update declaration. Add comments.
5952         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5953         is not declared, arrange to provide the replacement. Check for _getpty
5954         and posix_openpt.
5955         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5956         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5957         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5958         * modules/pty-tests (test_pty_c___LDADD): New variable.
5959         * doc/glibc-functions/openpty.texi: More supported platforms.
5960
5961 2010-03-21  Bruno Haible  <bruno@clisp.org>
5962
5963         setenv: Tweaks.
5964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5965         the test program.
5966         * doc/posix-functions/setenv.texi: Update platforms list.
5967
5968 2010-03-21  Bruno Haible  <bruno@clisp.org>
5969
5970         New module 'unlockpt'.
5971         * lib/unlockpt.c: New file, from glibc with modifications.
5972         * m4/unlockpt.m4: New file.
5973         * modules/unlockpt: New file.
5974         * lib/stdlib.in.h (unlockpt): New declaration.
5975         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5976         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5977         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5978         HAVE_UNLOCKPT.
5979         * doc/posix-functions/unlockpt.texi: Mention the new module.
5980         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5981         * config/srclist.txt: Add unlockpt.c (commented).
5982
5983 2010-03-21  Jim Meyering  <meyering@redhat.com>
5984
5985         maint.mk: prohibit inclusion of "intprops.h" without use
5986         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5987
5988 2010-03-21  Bruno Haible  <bruno@clisp.org>
5989
5990         New module 'grantpt'.
5991         * lib/grantpt.c: New file, from glibc with modifications.
5992         * m4/grantpt.m4: New file.
5993         * modules/grantpt: New file.
5994         * lib/stdlib.in.h (grantpt): New declaration.
5995         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5996         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5997         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5998         HAVE_GRANTPT.
5999         * doc/posix-functions/grantpt.texi: Mention the new module.
6000         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6001         * config/srclist.txt: Add grantpt.c (commented).
6002
6003 2010-03-21  Bruno Haible  <bruno@clisp.org>
6004
6005         New module 'pt_chown'.
6006         * lib/pt_chown.c: New file, from glibc with modifications.
6007         * lib/pty-private.h: New file, from glibc with modifications.
6008         * modules/pt_chown: New file.
6009         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6010
6011 2010-03-21  Bruno Haible  <bruno@clisp.org>
6012
6013         Tests for module 'ptsname'.
6014         * modules/ptsname-tests: New file.
6015         * tests/test-ptsname.c: New file.
6016
6017         New module 'ptsname'.
6018         * lib/ptsname.c: New file, from glibc with modifications.
6019         * m4/ptsname.m4: New file.
6020         * modules/ptsname: New file.
6021         * lib/stdlib.in.h (ptsname): New declaration.
6022         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6023         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6024         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6025         HAVE_PTSNAME.
6026         * doc/posix-functions/ptsname.texi: Mention the new module.
6027         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6028         * config/srclist.txt: Add ptsname.c (commented).
6029
6030 2010-03-21  Bruno Haible  <bruno@clisp.org>
6031
6032         Tests for module 'ttyname_r'.
6033         * modules/ttyname_r-tests: New file.
6034         * tests/test-ttyname_r.c: New file.
6035
6036         New module 'ttyname_r'.
6037         * lib/ttyname_r.c: New file.
6038         * m4/ttyname_r.m4: New file.
6039         * modules/ttyname_r: New file.
6040         * lib/unistd.in.h (ttyname_r): New declaration.
6041         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6042         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6043         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6044         HAVE_TTYNAME_R.
6045         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6046         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6047
6048 2010-03-20  Bruno Haible  <bruno@clisp.org>
6049
6050         signal: Undefine macro definitions in C++ mode.
6051         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6052         sigfillset): Undefine macro definitions from the system header in C++
6053         mode.
6054         Reported by John W. Eaton <jwe@gnu.org>.
6055
6056 2010-03-20  Bruno Haible  <bruno@clisp.org>
6057
6058         Ensure no #include statements inside extern "C" { ... }.
6059         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6060         contain #include statements.
6061         * lib/time.in.h: Likewise.
6062
6063 2010-03-20  Bruno Haible  <bruno@clisp.org>
6064
6065         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6066         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6067         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6068         Reported by John W. Eaton <jwe@gnu.org>.
6069
6070 2010-03-20  Bruno Haible  <bruno@clisp.org>
6071
6072         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6073         Reported by Jim Meyering.
6074
6075 2010-03-20  Bruno Haible  <bruno@clisp.org>
6076
6077         pipe: Set errno upon failure.
6078         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6079         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6080         errno value in error message.
6081
6082 2010-03-20  Bruno Haible  <bruno@clisp.org>
6083             Jim Meyering  <meyering@redhat.com>
6084
6085         lchown: Avoid "unused variable" warning.
6086         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6087
6088 2010-03-20  Bruno Haible  <bruno@clisp.org>
6089
6090         Work around unlink() bug on MacOS X 10.5.6.
6091         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6092         attempting to unlink a parent directory.
6093         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6094         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6095         activate for the replacement function.
6096         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6097
6098 2010-03-20  Bruno Haible  <bruno@clisp.org>
6099
6100         Fix link errors on Solaris 8.
6101         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6102         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6103
6104 2010-03-19  Jim Meyering  <meyering@redhat.com>
6105
6106         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6107         The _LIBC implementation of build_range_exp correctly honors the
6108         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6109         However, the non-_LIBC implementation would ignore that syntax-bit
6110         flag and return REG_ERANGE unconditionally.
6111         This change makes it honor that flag.
6112         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6113         Make two pointer parameters "const".
6114         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6115         (parse_bracket_exp): Update caller.
6116
6117         regex.m4: correct the reversed range endpoint ([b-a]) test
6118         * m4/regex.m4: When requiring that [b-a] evoke failure,
6119         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6120         test pass once again for x86-based systems.
6121
6122 2010-03-19  Bruno Haible  <bruno@clisp.org>
6123
6124         scandir: Fix link error on Solaris 8.
6125         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6126         macros.
6127
6128 2010-03-19  Bruno Haible  <bruno@clisp.org>
6129
6130         getusershell: Fix documentation.
6131         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6132         module.
6133         * doc/glibc-functions/setusershell.texi: Likewise.
6134
6135         getusershell: Provide declaration, missing on Solaris 9.
6136         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6137         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6138         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6139         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6141         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6142         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6143         HAVE_GETUSERSHELL.
6144         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6145
6146 2010-03-19  Bruno Haible  <bruno@clisp.org>
6147
6148         wctype: Provide iswblank function.
6149         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6150         exists and is fine.
6151         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6152         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6153         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6154         * doc/posix-functions/iswblank.texi: Update.
6155
6156 2010-03-19  Bruno Haible  <bruno@clisp.org>
6157
6158         Tests of module 'pty' in C++ mode.
6159         * modules/pty-tests: New file.
6160         * tests/test-pty-c++.cc: New file.
6161         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6162
6163 2010-03-19  Eric Blake  <eblake@redhat.com>
6164
6165         logb: fix documentation
6166         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6167         1.5 declaration bug.
6168
6169         forkpty, openpty: prefer glibc's const-safe prototype
6170         * lib/forkpty.c (rpl_forkpty): New file.
6171         * lib/openpty.c (rpl_openpty): Likewise.
6172         * modules/forkpty (Files): Distribute it.
6173         * modules/openpty (Files): Likewise.
6174         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6175         check...
6176         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6177         replacement for for non-const BSD signature.
6178         * modules/pty (Makefile.am): Substitute witnesses.
6179         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6180         * tests/test-forkpty.c: Update signature check.
6181         * tests/test-openpty.c: Likewise.
6182         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6183         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6184
6185         forkpty, openpty: split functions into new modules
6186         * modules/pty (Makefile.am): Substitute new witnesses.
6187         (Libraries): Move library detection...
6188         * modules/forkpty: ...into new module.
6189         * modules/openpty: Another new module.
6190         * modules/pty-tests: Rename and split...
6191         * modules/forkpty-tests: ...to this...
6192         * modules/openpty-tests: ...and this.
6193         * tests/test-pty.c: Rename and split...
6194         * tests/test-forkpty.c: ...to this...
6195         * tests/test-openpty.c: ...and this.
6196         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6197         (gl_PTY): Split library searching...
6198         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6199         (gl_FORKPTY, gl_OPENPTY): New macros.
6200         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6201         * NEWS: Mention the split.
6202         * MODULES.html.sh (Misc): Document the modules.
6203         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6204         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6205
6206         pty: improve replacement header
6207         * lib/pty.in.h: New file.
6208         * modules/pty (Files): Ship it.
6209         (Makefile.am): Always build replacement.
6210         * m4/pty.m4: Rename...
6211         * m4/pty_h.m4: ...to this.
6212         (gl_PTY): Modernize setting of witness macros; update check of
6213         forkpty to take proper advantage of cache.
6214         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6215
6216         getopt: avoid compiler warning
6217         * lib/getopt.c (attribute_hidden): Remove unused macro.
6218
6219 2010-03-18  Bruno Haible  <bruno@clisp.org>
6220
6221         Fix link errors on Solaris 8.
6222         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6223         * modules/search-tests (test_search_c___LDADD): Likewise.
6224         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6225         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6226         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6227         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6228         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6229         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6230         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6231
6232 2010-03-18  Bruno Haible  <bruno@clisp.org>
6233
6234         Fix bug introduced on 2010-03-14.
6235         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6236         (gl_SPAWN_H): Require it.
6237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6238         Reported by Simon Josefsson.
6239
6240 2010-03-18  Bruno Haible  <bruno@clisp.org>
6241
6242         Fix typo introduced on 2009-12-31.
6243         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6244         posix_spawn_file_actions_adddup2.
6245
6246 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6247         and Eric Blake  <eblake@redhat.com>
6248
6249         test-vc-list-files-git: make more robust
6250         * tests/test-vc-list-files-git.sh: Unset problematic environment
6251         variables.  Chain commands together.
6252
6253 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6254
6255         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6256         `AC_CHECK_DECL' invocation.
6257
6258 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6259
6260         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6261         appears before executable statements. Suggested by Petr Sumbera
6262         <Petr.Sumbera@Sun.COM>.
6263
6264 2010-03-14  Bruno Haible  <bruno@clisp.org>
6265
6266         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6267         portability problems. Instead use a simpler test.
6268         (main): Check that invalid arguments are rejected only on Linux.
6269
6270 2010-03-14  Bruno Haible  <bruno@clisp.org>
6271
6272         Fix bug introduced on 2009-12-31.
6273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6274         gl_PREREQ_SYS_H_WINSOCK2 always.
6275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6276         SYS_SOCKET_H variable.
6277         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6278         Update comments.
6279         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6280         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6283         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6284
6285 2010-03-14  Bruno Haible  <bruno@clisp.org>
6286
6287         Fix values returned by sinl, cosl.
6288         * lib/trigl.h: Add specification comments.
6289         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6290         that combines the values from the precomputed table with the values of
6291         the Chebyshev polynomials.
6292
6293 2010-03-14  Bruno Haible  <bruno@clisp.org>
6294
6295         Fix compilation error when modules 'posix_spawn[p]' are not used.
6296         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6298
6299 2010-03-14  Bruno Haible  <bruno@clisp.org>
6300
6301         Fix compilation error on mingw when module 'time_r' is not used.
6302         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6303         is 1.
6304         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6305         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6306         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6307         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6308
6309 2010-03-14  Bruno Haible  <bruno@clisp.org>
6310
6311         Fix compilation error with Sun C.
6312         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6313         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6314         instead of GCC specific ULONG_LONG_MAX.
6315         * lib/xstrtoll.c: Likewise.
6316         * lib/xstrtoull.c: Likewise.
6317
6318 2010-03-13  Bruno Haible  <bruno@clisp.org>
6319
6320         Allow the user to disable C++ code and tests.
6321         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6322         (gl_PROG_ANSI_CXX): Require it.
6323
6324 2010-03-13  Bruno Haible  <bruno@clisp.org>
6325
6326         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6327         cases.
6328
6329 2010-03-13  Bruno Haible  <bruno@clisp.org>
6330
6331         Test that gnulib does not break the standard C++ headers.
6332         * tests/test-locale-c++2.cc: New file.
6333         * modules/locale-tests (Files): Add it.
6334         (Makefile.am): Compile it for test-locale-c++.
6335         * tests/test-math-c++2.cc: New file.
6336         * modules/math-tests (Files): Add it.
6337         (Makefile.am): Compile it for test-math-c++.
6338         * tests/test-signal-c++2.cc: New file.
6339         * modules/signal-tests (Files): Add it.
6340         (Makefile.am): Compile it for test-signal-c++.
6341         * tests/test-stdio-c++2.cc: New file.
6342         * modules/stdio-tests (Files): Add it.
6343         (Makefile.am): Compile it for test-stdio-c++.
6344         * tests/test-stdlib-c++2.cc: New file.
6345         * modules/stdlib-tests (Files): Add it.
6346         (Makefile.am): Compile it for test-stdlib-c++.
6347         * tests/test-string-c++2.cc: New file.
6348         * modules/string-tests (Files): Add it.
6349         (Makefile.am): Compile it for test-string-c++.
6350         * tests/test-time-c++2.cc: New file.
6351         * modules/time-tests (Files): Add it.
6352         (Makefile.am): Compile it for test-time-c++.
6353         Reported by John W. Eaton <jwe@gnu.org>.
6354
6355 2010-03-13  Bruno Haible  <bruno@clisp.org>
6356
6357         * gnulib-tool (func_usage): Clarify which options are available for
6358         --create-testdir and --create-megatestdir.
6359
6360 2010-03-13  Bruno Haible  <bruno@clisp.org>
6361
6362         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6363         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6364         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6365         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6366         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6367         when appropriate.
6368         Reported by Jim Meyering.
6369
6370 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6371
6372         * gnulib-tool (func_import): Explain origin of code.
6373
6374 2010-03-12  Bruno Haible  <bruno@clisp.org>
6375
6376         Fix problem with automake's definition of CXXLINK.
6377         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6378         Reported by Simon Josefsson and Ludovic Courtès.
6379
6380 2010-03-12  Bruno Haible  <bruno@clisp.org>
6381
6382         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6383         stable releases.
6384
6385 2010-03-11  Bruno Haible  <bruno@clisp.org>
6386
6387         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6388         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6389         whether the system provides one variant or multiple variants of the
6390         function.
6391         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6392         C++ compilers.
6393         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6394         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6395         Reported by Jim Meyering.
6396
6397 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6398
6399         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6400
6401 2010-03-08  Bruno Haible  <bruno@clisp.org>
6402
6403         gnulib-tool: Add support for --libtool in --create-testdir.
6404         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6405         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6406
6407 2010-03-08  Eric Blake  <eblake@redhat.com>
6408
6409         gnulib-tool.texi: mention possibility of git submodule
6410         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6411         submodules.
6412         * doc/.gitignore: Ignore another generated file.
6413
6414 2010-03-08  Karl Berry  <karl@gnu.org>
6415
6416         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6417         of committing gnulib files while skipping others.
6418
6419 2010-03-07  Bruno Haible  <bruno@clisp.org>
6420
6421         Tests of module 'wctype' in C++ mode.
6422         * tests/test-wctype-c++.cc: New file.
6423         * modules/wctype-tests (Files): Add it and tests/signature.h.
6424         (Depends-on): Add ansi-c++-opt.
6425         (Makefile.am): Arrange to compile and run test-wctype-c++.
6426
6427         Tests of module 'wchar' in C++ mode.
6428         * tests/test-wchar-c++.cc: New file.
6429         * modules/wchar-tests (Files): Add it and tests/signature.h.
6430         (Depends-on): Add ansi-c++-opt.
6431         (Makefile.am): Arrange to compile and run test-wchar-c++.
6432         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6433         gl_MODULE_INDICATOR.
6434
6435         Tests of module 'unistd' in C++ mode.
6436         * tests/test-unistd-c++.cc: New file.
6437         * modules/unistd-tests (Files): Add it and tests/signature.h.
6438         (Depends-on): Add ansi-c++-opt.
6439         (Makefile.am): Arrange to compile and run test-unistd-c++.
6440         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6441         gl_MODULE_INDICATOR.
6442
6443         Tests of module 'time' in C++ mode.
6444         * tests/test-time-c++.cc: New file.
6445         * modules/time-tests (Files): Add it and tests/signature.h.
6446         (Depends-on): Add ansi-c++-opt.
6447         (Makefile.am): Arrange to compile and run test-time-c++.
6448         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6449
6450         Tests of module 'sys_time' in C++ mode.
6451         * tests/test-sys_time-c++.cc: New file.
6452         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6453         (Depends-on): Add ansi-c++-opt.
6454         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6455         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6456         gl_MODULE_INDICATOR.
6457
6458         Tests of module 'sys_stat' in C++ mode.
6459         * tests/test-sys_stat-c++.cc: New file.
6460         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6461         (Depends-on): Add ansi-c++-opt.
6462         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6463         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6464         gl_MODULE_INDICATOR.
6465
6466         Tests of module 'sys_socket' in C++ mode.
6467         * tests/test-sys_socket-c++.cc: New file.
6468         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6469         (Depends-on): Add ansi-c++-opt.
6470         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6472         gl_MODULE_INDICATOR.
6473
6474         Tests of module 'sys_select' in C++ mode.
6475         * tests/test-sys_select-c++.cc: New file.
6476         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6477         (Depends-on): Add ansi-c++-opt.
6478         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6479         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6480         gl_MODULE_INDICATOR.
6481
6482         Tests of module 'sys_ioctl' in C++ mode.
6483         * tests/test-sys_ioctl-c++.cc: New file.
6484         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6485         (Depends-on): Add ansi-c++-opt.
6486         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6487         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6488         gl_MODULE_INDICATOR.
6489
6490         Tests of module 'string' in C++ mode.
6491         * tests/test-string-c++.cc: New file.
6492         * modules/string-tests (Files): Add it and tests/signature.h.
6493         (Depends-on): Add ansi-c++-opt.
6494         (Makefile.am): Arrange to compile and run test-string-c++.
6495         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6496         gl_MODULE_INDICATOR.
6497
6498         Tests of module 'stdlib' in C++ mode.
6499         * tests/test-stdlib-c++.cc: New file.
6500         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6501         (Depends-on): Add ansi-c++-opt.
6502         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6503         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6504         gl_MODULE_INDICATOR.
6505
6506         Tests of module 'stdio' in C++ mode.
6507         * tests/test-stdio-c++.cc: New file.
6508         * modules/stdio-tests (Files): Add it and tests/signature.h.
6509         (Depends-on): Add ansi-c++-opt.
6510         (Makefile.am): Arrange to compile and run test-stdio-c++.
6511         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6512         gl_MODULE_INDICATOR.
6513
6514         Tests of module 'spawn' in C++ mode.
6515         * tests/test-spawn-c++.cc: New file.
6516         * modules/spawn-tests (Files): Add it and tests/signature.h.
6517         (Depends-on): Add ansi-c++-opt.
6518         (Makefile.am): Arrange to compile and run test-spawn-c++.
6519         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6520         gl_MODULE_INDICATOR.
6521
6522         Tests of module 'signal' in C++ mode.
6523         * tests/test-signal-c++.cc: New file.
6524         * modules/signal-tests (Files): Add it and tests/signature.h.
6525         (Depends-on): Add ansi-c++-opt.
6526         (Makefile.am): Arrange to compile and run test-signal-c++.
6527         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6528         gl_MODULE_INDICATOR.
6529
6530         Tests of module 'search' in C++ mode.
6531         * tests/test-search-c++.cc: New file.
6532         * modules/search-tests (Files): Add it and tests/signature.h.
6533         (Depends-on): Add ansi-c++-opt.
6534         (Makefile.am): Arrange to compile and run test-search-c++.
6535         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6536         gl_MODULE_INDICATOR.
6537
6538         Tests of module 'math' in C++ mode.
6539         * tests/test-math-c++.cc: New file.
6540         * modules/math-tests (Files): Add it and tests/signature.h.
6541         (Depends-on): Add ansi-c++-opt.
6542         (Makefile.am): Arrange to compile and run test-math-c++.
6543         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6544
6545         Tests of module 'locale' in C++ mode.
6546         * tests/test-locale-c++.cc: New file.
6547         * modules/locale-tests (Files): Add it and tests/signature.h.
6548         (Depends-on): Add ansi-c++-opt.
6549         (Makefile.am): Arrange to compile and run test-locale-c++.
6550         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6551         gl_MODULE_INDICATOR.
6552
6553         Tests of module 'langinfo' in C++ mode.
6554         * tests/test-langinfo-c++.cc: New file.
6555         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6556         (Depends-on): Add ansi-c++-opt.
6557         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6558         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6559         gl_MODULE_INDICATOR.
6560
6561         Tests of module 'iconv-h' in C++ mode.
6562         * tests/test-iconv-h-c++.cc: New file.
6563         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6564         (Depends-on): Add ansi-c++-opt.
6565         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6566
6567         Tests of module 'glob' in C++ mode.
6568         * tests/test-glob-c++.cc: New file.
6569         * modules/glob-tests (Files): Add it.
6570         (Depends-on): Add ansi-c++-opt.
6571         (Makefile.am): Arrange to compile and run test-glob-c++.
6572
6573         Tests of module 'fcntl-h' in C++ mode.
6574         * tests/test-fcntl-h-c++.cc: New file.
6575         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6576         (Depends-on): Add ansi-c++-opt.
6577         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6578         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6579         gl_MODULE_INDICATOR.
6580
6581         Tests of module 'dirent' in C++ mode.
6582         * tests/test-dirent-c++.cc: New file.
6583         * modules/dirent-tests (Files): Add it and tests/signature.h.
6584         (Depends-on): Add ansi-c++-opt.
6585         (Makefile.am): Arrange to compile and run test-dirent-c++.
6586         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6587         gl_MODULE_INDICATOR.
6588
6589         New module 'ansi-c++-opt'.
6590         * modules/ansi-c++-opt: New file.
6591         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6592
6593         Document C++ namespace mode.
6594         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6595
6596         wctype: Avoid #define replacements in C++ mode.
6597         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6598         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6599         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6600         In C++, define a namespaced alias symbol.
6601         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6602         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6603         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6604         rule.
6605
6606         wchar: Avoid #define replacements in C++ mode.
6607         * lib/wchar.in.h: Include c++defs.h.
6608         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6609         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6610         symbol.
6611         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6612         * modules/wchar (Depends-on): Add c++defs.
6613         (Makefile.am): Update wchar.h rule.
6614
6615         unistd: Avoid #define replacements in C++ mode.
6616         * lib/unistd.in.h: Include c++defs.h.
6617         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6618         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6619         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6620         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6621         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6622         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6623         symbol.
6624         (environ): Update.
6625         * modules/unistd (Depends-on): Add c++defs.
6626         (Makefile.am): Update unistd.h rule.
6627
6628         time: Avoid #define replacements in C++ mode.
6629         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6630         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6631         define a namespaced alias symbol.
6632         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6633         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6634         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6635         * modules/time (Depends-on): Add c++defs, warn-on-use.
6636         (Makefile.am): Update time.h rule.
6637         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6638         * modules/nanosleep (configure.ac): Likewise.
6639         * modules/strptime (configure.ac): Likewise.
6640         * modules/timegm (configure.ac): Likewise.
6641
6642         sys_time: Avoid #define replacements in C++ mode.
6643         * lib/sys_time.in.h: Include c++defs.h.
6644         (gettimeofday): In C++, define a namespaced alias symbol.
6645         * modules/sys_time (Depends-on): Add c++defs.
6646         (Makefile.am): Update sys/time.h rule.
6647
6648         sys_stat: Avoid #define replacements in C++ mode.
6649         * lib/sys_stat.in.h: Include c++defs.h.
6650         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6651         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6652         namespaced alias symbol.
6653         In C++, define a namespaced alias symbol.
6654         * modules/sys_stat (Depends-on): Add c++defs.
6655         (Makefile.am): Update sys/stat.h rule.
6656
6657         sys_socket: Avoid #define replacements in C++ mode.
6658         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6659         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6660         definitions also when the system has a <sys/socket.h>.
6661         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6662         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6663         In C++, define a namespaced alias symbol.
6664         * modules/sys_socket (Depends-on): Add c++defs.
6665         (Makefile.am): Update sys/socket.h rule.
6666
6667         sys_select: Avoid #define replacements in C++ mode.
6668         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6669         definitions also when the system has a <sys/select.h>.
6670         (select): In C++, define a namespaced alias symbol.
6671         * modules/sys_select (Depends-on): Add c++defs.
6672         (Makefile.am): Update sys/select.h rule.
6673
6674         sys_ioctl: Avoid #define replacements in C++ mode.
6675         * lib/sys_ioctl.in.h: Include c++defs.h.
6676         (ioctl): In C++, define a namespaced alias symbol.
6677         * modules/sys_ioctl (Depends-on): Add c++defs.
6678         (Makefile.am): Update sys/ioctl.h rule.
6679
6680         string: Avoid #define replacements in C++ mode.
6681         * lib/string.in.h: Include c++defs.h.
6682         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6683         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6684         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6685         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6686         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6687         * modules/string (Depends-on): Add c++defs.
6688         (Makefile.am): Update string.h rule.
6689
6690         stdlib: Avoid #define replacements in C++ mode.
6691         * lib/stdlib.in.h: Include c++defs.h.
6692         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6693         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6694         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6695         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6696         symbol.
6697         * modules/stdlib (Depends-on): Add c++defs.
6698         (Makefile.am): Update stdlib.h rule.
6699
6700         stdio: Avoid #define replacements in C++ mode.
6701         * lib/stdio.in.h: Include c++defs.h.
6702         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6703         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6704         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6705         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6706         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6707         namespaced alias symbol.
6708         * modules/stdio (Depends-on): Add c++defs.
6709         (Makefile.am): Update stdio.h rule.
6710
6711         spawn: Avoid #define replacements in C++ mode.
6712         * lib/spawn.in.h: Include c++defs.h.
6713         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6714         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6715         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6716         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6717         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6718         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6719         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6720         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6721         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6722         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6723         In C++, define a namespaced alias symbol.
6724         * modules/spawn (Depends-on): Add c++defs.
6725         (Makefile.am): Update spawn.h rule.
6726
6727         signal: Avoid #define replacements in C++ mode.
6728         * lib/signal.in.h: Include c++defs.h.
6729         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6730         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6731         namespaced alias symbol.
6732         * modules/signal (Depends-on): Add c++defs.
6733         (Makefile.am): Update signal.h rule.
6734
6735         search: Avoid #define replacements in C++ mode.
6736         * lib/search.in.h: Include c++defs.h.
6737         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6738         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6739         symbol.
6740         * modules/search (Depends-on): Add c++defs.
6741         (Makefile.am): Update search.h rule.
6742
6743         math: Avoid #define replacements in C++ mode.
6744         * lib/math.in.h: Include c++defs.h.
6745         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6746         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6747         trunc, truncl): In C++, define a namespaced alias symbol.
6748         * modules/math (Depends-on): Add c++defs.
6749         (Makefile.am): Update math.h rule.
6750
6751         locale: Avoid #define replacements in C++ mode.
6752         * lib/locale.in.h: Include c++defs.h.
6753         (duplocale): In C++, define a namespaced alias symbol.
6754         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6755         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6756         * modules/locale (Depends-on): Add c++defs.
6757         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6758
6759         langinfo: Avoid #define replacements in C++ mode.
6760         * lib/langinfo.in.h: Include c++defs.h.
6761         (nl_langinfo): In C++, define a namespaced alias symbol.
6762         * modules/langinfo (Depends-on): Add c++defs.
6763         (Makefile.am): Update langinfo.h rule.
6764
6765         iconv-h: Avoid #define replacements in C++ mode.
6766         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6767         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6768         symbol.
6769         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6770         whenever iconv is present.
6771         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6772         (Makefile.am): Update iconv.h rule.
6773
6774         glob: Avoid #define replacements in C++ mode.
6775         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6776         (_gl_glob_errfunc_fn): New type.
6777         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6778         symbol.
6779         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6780         (Makefile.am): Update glob.h rule.
6781
6782         fcntl-h: Avoid #define replacements in C++ mode.
6783         * lib/fcntl.in.h: Include c++defs.h.
6784         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6785         * modules/fcntl-h (Depends-on): Add c++defs.
6786         (Makefile.am): Update fcntl.h rule.
6787
6788         dirent: Avoid #define replacements in C++ mode.
6789         * lib/dirent.in.h: Include c++defs.h.
6790         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6791         namespaced alias symbol.
6792         (dirfd): Update declaration.
6793         * modules/dirent (Depends-on): Add c++defs.
6794         (Makefile.am): Update dirent.h rule.
6795
6796         ctype: Make it usable in C++ code.
6797         * lib/ctype.in.h: Include c++defs.h.
6798         (isblank): Declare as extern "C".
6799         * modules/ctype (Depends-on): Add c++defs.
6800         (Makefile.am): Update ctype.h rule.
6801
6802         New module 'c++defs'.
6803         * modules/c++defs: New file.
6804         * build-aux/c++defs.h: New file.
6805         Reported by John W. Eaton <jwe@gnu.org>.
6806
6807 2010-03-07  Bruno Haible  <bruno@clisp.org>
6808
6809         logb: Provide missing declaration for Cygwin.
6810         * lib/math.in.h (logb): New declaration.
6811         * m4/logb.m4: New file.
6812         * modules/logb (Files): Add m4/logb.m4.
6813         (Depends-on): Add math.
6814         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6815         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6817         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6818         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6819
6820 2010-03-07  Bruno Haible  <bruno@clisp.org>
6821
6822         Fix test-cond link error.
6823         * tests/test-cond.c: Include <stdio.h>.
6824
6825 2010-03-07  Bruno Haible  <bruno@clisp.org>
6826
6827         Fix test-dirent-safer link error.
6828         * modules/dirent-safer-tests (Makefile.am): Define
6829         test_dirent_safer_LDADD.
6830
6831 2010-03-07  Bruno Haible  <bruno@clisp.org>
6832
6833         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6834         among default module list.
6835
6836 2010-03-07  Bruno Haible  <bruno@clisp.org>
6837
6838         Fix link error on platforms with GNU libiconv.
6839         * modules/unistr/u8-strcoll-tests (Makefile): Define
6840         test_u8_strcoll_LDADD.
6841         * modules/unistr/u16-strcoll-tests (Makefile): Define
6842         test_u16_strcoll_LDADD.
6843         * modules/unistr/u32-strcoll-tests (Makefile): Define
6844         test_u32_strcoll_LDADD.
6845
6846 2010-03-07  Bruno Haible  <bruno@clisp.org>
6847
6848         Use POSIX declarations for socket functions.
6849         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6850         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6851         rpl_sendto): Change declaration to match POSIX.
6852         * lib/connect.c (rpl_connect): Likewise.
6853         * lib/accept.c (rpl_accept): Likewise.
6854         * lib/bind.c (rpl_bind): Likewise.
6855         * lib/getpeername.c (rpl_getpeername): Likewise.
6856         * lib/getsockname.c (rpl_getsockname): Likewise.
6857         * lib/recv.c (rpl_recv): Likewise.
6858         * lib/send.c (rpl_send): Likewise.
6859         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6860         * lib/sendto.c (rpl_sendto): Likewise.
6861
6862 2010-03-06  Bruno Haible  <bruno@clisp.org>
6863
6864         Clarify access, euidaccess, faccessat.
6865         * doc/posix-functions/faccessat.texi: Mention security problem under
6866         "Other problems", not "Portability problems".
6867         * doc/posix-functions/access.texi: Likewise. Mention a related security
6868         problem.
6869         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6870         * lib/euidaccess.c: Add comments about platforms.
6871         * lib/unistd.in.h (access, euidaccess): Add warnings.
6872
6873 2010-03-07  Bruno Haible  <bruno@clisp.org>
6874
6875         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6876         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6877         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6878         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6879         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6880         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6881         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6882         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6883         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6885         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6886         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6887         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6888         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6889         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6890         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6891         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6892         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6893         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6894         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6895         Likewise.
6896         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6897         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6898         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6899         Likewise.
6900         * tests/test-spawn.c (main): Make it work when
6901         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6902
6903 2010-03-07  Bruno Haible  <bruno@clisp.org>
6904
6905         Fix incorrect Makefile.am generation in German locale.
6906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6907         Execute sed command with character range in C locale.
6908
6909 2010-03-06  Bruno Haible  <bruno@clisp.org>
6910
6911         Tests for module 'iconv-h'.
6912         * modules/iconv-h-tests: New file.
6913         * tests/test-iconv-h.c: New file.
6914
6915         New module 'iconv-h'.
6916         * modules/iconv-h: New file.
6917         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6918         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6919         (configure.ac): Remove gl_ICONV_H.
6920         (Makefile.am): Remove rule for iconv.h.
6921
6922 2010-03-06  Bruno Haible  <bruno@clisp.org>
6923
6924         More consistent naming of *.m4 files.
6925         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6926         * modules/wctype (Files): Update.
6927
6928         More consistent naming of *.m4 files.
6929         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6930         * modules/wchar (Files): Update.
6931
6932 2010-03-06  Jim Meyering  <meyering@redhat.com>
6933
6934         euidaccess: relax license to LGPLv2+
6935         * modules/euidaccess (License): Relax to LGPLv2+.
6936
6937 2010-03-06  Bruno Haible  <bruno@clisp.org>
6938
6939         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6940         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6941         (Makefile.am): Augment lib_SOURCES instead.
6942
6943 2010-03-04  Jim Meyering  <meyering@redhat.com>
6944
6945         utime: remove obsolete module
6946         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6947         unnecessary for years, and has been marked as obsolete for 10 months.
6948         * modules/utime: Remove file.
6949         * lib/utime.c: Remove file.
6950         * m4/utime.m4: Remove file.
6951         * m4/utimes-null.m4: Remove file.
6952         * doc/posix-functions/utime.texi (utime): Remove reference to
6953         the module.  Move the sole "fixed by gnulib" item into the
6954         "problems not fixed by Gnulib" list.
6955         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6956
6957 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6958
6959         * modules/exit (License): Relax license to LGPLv2+.
6960         (Status): Mark as obsolete.
6961         * NEWS: Mention deprecated 'exit' module.
6962         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6963         of now obsolete 'exit'.
6964
6965 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6966
6967         fts-lgpl: remove unused module
6968         * modules/fts-lgpl: Remove.
6969         * MODULES.html.sh (func_all_modules): Adjust.
6970         * check-module (find_included_lib_files): Adjust.
6971         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6972
6973 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6974
6975         copy-acl: enhance Solaris ACL error handling
6976         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6977         * lib/set-mode-acl.c (qset_acl): Likewise.
6978
6979 2010-03-02  Bruno Haible  <bruno@clisp.org>
6980
6981         spawn: Don't override the system defined values on FreeBSD 8.
6982         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6983         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6984         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6985         if HAVE_POSIX_SPAWN is 1.
6986         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6987
6988 2010-03-01  Bruno Haible  <bruno@clisp.org>
6989
6990         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6991         regarding Automake.
6992
6993 2010-02-25  Bruno Haible  <bruno@clisp.org>
6994
6995         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6996         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6997         setting, not afterwards.
6998         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6999
7000 2010-02-24  Eric Blake  <eblake@redhat.com>
7001
7002         bootstrap, git-version-gen: use timestamp
7003         * build-aux/git-version-gen (scriptversion): Force UTC.
7004         * build-aux/bootstrap (scriptversion): New variable.
7005
7006         bootstrap: allow older git
7007         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7008         older than 1.6.4.  Requested by the libvirt project.
7009
7010 2010-02-23  Eric Blake  <eblake@redhat.com>
7011
7012         warn-on-use: work with old autoconf
7013         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7014         AS_VAR semantics of autoconf 2.60.
7015         Reported by Bruno Haible.
7016
7017         bootstrap: improve some comments
7018         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7019         clarification comments.
7020
7021         gettimeofday: provide correct function
7022         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7023         when replacement is declared, otherwise provide gettimeofday.
7024         Reported by Michael Goffioul.
7025
7026 2010-02-23  Jim Meyering  <meyering@redhat.com>
7027
7028         lib-ignore: relax license to "unlimited", not LGPLv2+
7029         * modules/lib-ignore (License): Relax to "unlimited".
7030
7031 2010-02-23  Jim Meyering  <meyering@redhat.com>
7032
7033         lib-ignore: relax license to LGPLv2+
7034         * modules/lib-ignore (License): Relax to LGPLv2+.
7035
7036 2010-02-22  Eric Blake  <eblake@redhat.com>
7037
7038         lseek: avoid bash 3.2 broken pipe bug
7039         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7040         warning from bash 3.2.
7041         Reported by Ben Pfaff, with analysis from Bruno Haible.
7042
7043         bootstrap: support non-FSF copyright holder
7044         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7045         bootstrap.conf override of COPYRIGHT_HOLDER.
7046         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7047
7048         bootstrap: interoperate with gettext 0.14.1
7049         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7050
7051         bootstrap: allow for alternate submodule location
7052         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7053         hardcoding submodule location.
7054         (gnulib_mk): Allow direct use of Makefile.am.
7055
7056         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7057         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7058         rather than reconfiguring where the submodule points.
7059
7060         gettimeofday: restore support for platforms that lack function
7061         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7062         replacement if function is missing.
7063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7064         * modules/sys_time (Makefile.am): Substitute it.
7065         * lib/sys_time.in.h (gettimeofday): Check it.
7066         Reported by Michael Goffioul.
7067
7068 2010-02-21  Bruno Haible  <bruno@clisp.org>
7069
7070         * lib/stdio.in.h (obstack_printf): Fix typo.
7071
7072 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7073
7074         vc-list-files: use bzr ls's -R option
7075         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7076         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7077
7078 2010-02-21  Jim Meyering  <meyering@redhat.com>
7079
7080         init.sh: fix EXEEXT shims to work also for names like test-prog
7081         * tests/init.sh: Re-exec a better shell, when needed.
7082         If the current shell lacks support for posix $(...), an init.sh-using
7083         test will now try to find a shell that supports that.  If EXEEXT is
7084         nonempty, we also require support for hyphen-in-alias-name and shell
7085         substitutions like ${var#glob}.  Failure to find such a shell results
7086         in a skipped test.
7087
7088 2010-02-21  Bruno Haible  <bruno@clisp.org>
7089
7090         Really work around around "broken pipe" error message from bash 3.2.
7091         * gnulib-tool (func_reset_sigpipe): Remove function.
7092         (echo): In bash 3.2, define to a function that uses printf.
7093         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7094
7095 2010-02-20  Bruno Haible  <bruno@clisp.org>
7096
7097         Restore support for automake 1.9.6 with autoconf 2.61.
7098         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7099         Reported by James Youngman <jay@gnu.org>.
7100
7101 2010-02-20  Bruno Haible  <bruno@clisp.org>
7102
7103         Improve *printf warning condition.
7104         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7105         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7106         and the function is overridden due to SIGPIPE emulation.
7107
7108 2010-02-20  Bruno Haible  <bruno@clisp.org>
7109
7110         * lib/stdio.in.h: Tweak comments.
7111
7112 2010-02-19  Bruno Haible  <bruno@clisp.org>
7113
7114         Make it easier to find modules. New gnulib-tool option '--find'.
7115         * gnulib-tool: New option --find.
7116         (func_usage): Document it.
7117         (func_sanitize_modulelist): New function, extracted from
7118         func_all_modules.
7119         (func_all_modules): Invoke it.
7120         * doc/gnulib-tool.texi (Which modules?): New node.
7121
7122 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7123
7124         * lib/sys_select.in.h: Provide select replacement even if
7125         sys/select.h exists on a system, for Interix.
7126
7127 2010-02-18  Jim Meyering  <meyering@redhat.com>
7128
7129         init.sh: don't use $(...) just yet
7130         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7131         to accommodate e.g., Solaris' /bin/sh.
7132
7133 2010-02-17  Bruno Haible  <bruno@clisp.org>
7134
7135         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7136         Reported by Ludovic Courtès <ludo@gnu.org>.
7137
7138 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7139
7140         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7141         linking with -lintl.
7142
7143 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7144
7145         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7146         if not provided by the system's netdb.h.  Reported by
7147         ludo@gnu.org (Ludovic Courtès).
7148
7149 2010-02-15  Jim Meyering  <meyering@redhat.com>
7150
7151         init.sh: improve portability and efficiency
7152         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7153         "dummy" in a for loop.
7154         Use '!', not '^' to select the complement of a character set used
7155         in a "case" statement.
7156         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7157         Suggestions from Eric Blake.
7158
7159         init.sh: automatically accommodate programs with the .exe suffix
7160         Automatically arrange for an invocation of "prog" to execute the
7161         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7162         may use the simpler "prog", yet still work when built on a system
7163         that requires specifying the added suffix.
7164         Do this by constructing a function named "prog" that invokes
7165         "prog.exe" for each .exe file in selected directories.
7166         * tests/init.sh (find_exe_basenames_): New function.
7167         (create_exe_shim_functions_): New function.
7168         (path_prepend_): Use it.
7169
7170         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7171         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7172         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7173
7174 2010-02-14  Jim Meyering  <meyering@redhat.com>
7175
7176         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7177         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7178         (sc_prohibit_hash_pjw_without_use): New rule.
7179
7180         maint.mk: allow the default upload destination dir to be overridden
7181         * top/maint.mk (upload_dest_dir_): Define with a default that
7182         preserves the status quo.
7183         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7184         Reported by Peter Simons.
7185
7186         maint.mk: prohibit inclusion of "hash.h" without_use
7187         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7188
7189 2010-02-10  Jim Meyering  <meyering@redhat.com>
7190
7191         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7192         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7193
7194 2010-02-09  Eric Blake  <ebb9@byu.net>
7195         and Bruno Haible  <bruno@clisp.org>
7196
7197         obstack-printf-posix: ensure declaration
7198         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7199         extracted from gl_FUNC_OBSTACK_PRINTF.
7200         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7201         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7202         Likewise.
7203         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7204         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7205         0.
7206
7207 2010-02-08  Bruno Haible  <bruno@clisp.org>
7208
7209         gnulib-tool: Fix typo in 2010-02-07 commit.
7210         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7211         Reported by Eric Blake.
7212
7213 2010-02-07  Bruno Haible  <bruno@clisp.org>
7214
7215         gnulib-tool: Fix up caching patches.
7216         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7217         option --no-cache. Use associative arrays when supported by the shell.
7218         (sed_comments): New variable.
7219         (modcache): Renamed from do_cache.
7220         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7221         abbreviate unnecessarily.
7222         (have_associative): New variable.
7223         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7224         way also for ksh and zsh.
7225         (func_init_sed_convert_to_cache_statements): New function, extracted
7226         from func_cache_lookup_module. Add support for associative arrays.
7227         Don't set the c_MODULE_cached variable here. Ignore all lines before
7228         the first field header. Remove only the final newline, not all trailing
7229         newlines. Support empty fields correctly. Limit the use of 'eval' to
7230         assignments.
7231         (func_get_description, func_get_status, func_get_notice,
7232         func_get_applicability, func_get_filelist, func_get_dependencies,
7233         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7234         func_get_automake_snippet, func_get_include_directive,
7235         func_get_link_directive, func_get_license, func_get_maintainer):
7236         Update documentation. List the unoptimized code first. Add support for
7237         associative arrays. Limit the use of 'eval' to assignments.
7238         (func_get_applicability): Undo stylistic pessimisations.
7239         (func_get_automake_snippet, func_get_include_directive): Reduce code
7240         duplication.
7241         (func_modules_transitive_closure, func_modules_add_dummy,
7242         func_modules_notice, func_modules_to_filelist, func_add_file,
7243         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7244         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7245         func_create_testdir, func_create_megatestdir): Update documentation.
7246
7247 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7248
7249         * gnulib-tool (func_cache_lookup_module): Store the module name
7250         belonging to the cache variable; error out if two different
7251         module names map to the same cache variable name.
7252
7253 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7254
7255         gnulib-tool: Make caching optional.
7256         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7257         Update matching short versions of --no-changelog.
7258         (func_usage): Update.
7259         (sed_extract_cache_prog): Renamed from ...
7260         (sed_extract_prog): ... this; revert to old extraction script.
7261         (func_get_description, func_get_status)
7262         (func_get_notice, func_get_applicability, func_get_filelist)
7263         (func_get_dependencies, func_get_autoconf_early_snippet)
7264         (func_get_autoconf_snippet, func_get_automake_snippet)
7265         (func_get_include_directive, func_get_link_directive)
7266         (func_get_license, func_get_maintainer): If $do_cache is false,
7267         use old, non-caching extraction scripts.
7268         Suggestion by Bruno Haible.
7269
7270 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7271
7272         gnulib-tool: cache module metainformation.
7273         * gnulib-tool (sed_extract_prog): Match newline before each
7274         header, and rewrite header to a shell variable suffix.
7275         (func_cache_var, func_cache_lookup_module): New functions,
7276         to turn a module name into a cache variable prefix, and to
7277         look up and cache module metainformation.
7278         (func_get_description, func_get_status)
7279         (func_get_notice, func_get_applicability, func_get_filelist)
7280         (func_get_dependencies, func_get_autoconf_early_snippet)
7281         (func_get_autoconf_snippet, func_get_automake_snippet)
7282         (func_get_include_directive, func_get_link_directive)
7283         (func_get_license, func_get_maintainer): Use
7284         func_cache_lookup_module.
7285
7286 2010-02-07  Bruno Haible  <bruno@clisp.org>
7287
7288         fnctl: Fix missing dependency.
7289         * modules/fcntl (Depends-on): Add getdtablesize.
7290         Reported by John W. Eaton <jwe@gnu.org>.
7291
7292 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7293
7294         Argp: fix recognition of short alias options.
7295
7296         * lib/argp-parse.c (convert_options): Fix improper use of
7297         `|' between character values.
7298         * tests/test-argp.c (group1_option): New alias option
7299         --read (-r).
7300         (group1_parser): Special handling for 'r'.
7301         (test15): New test case.
7302         (test_fun): Add test15.
7303         * tests/test-argp-2.sh: Update expected --help and --usage
7304         outputs.
7305
7306 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7307
7308         * tests/test-argp.c: Fix indentation.
7309
7310 2010-02-04  Eric Blake  <ebb9@byu.net>
7311
7312         gettimeofday: expose type of second argument
7313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7314         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7315         * tests/test-gettimeofday.c: Use it to silence warning.
7316         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7317         the issue.
7318
7319 2010-02-03  Jim Meyering  <meyering@redhat.com>
7320
7321         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7322         * lib/regcomp.c (TYPE_SIGNED): Define.
7323         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7324
7325         regcomp.c: avoid a new -Wshadow warning
7326         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7327
7328 2010-02-01  Jim Meyering  <meyering@redhat.com>
7329
7330         removing useless parentheses in cpp #define directives
7331         For motivation, see commit c0221df4, "define STREQ(a,b)
7332         consistently, removing useless parentheses"
7333         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7334         * lib/mountlist.c (MNT_IGNORE): Likewise.
7335         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7336
7337 2010-02-01  Eric Blake  <ebb9@byu.net>
7338
7339         sys_time: use link-warning
7340         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7341         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7342         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7343         * modules/sys_time (Depends-on): Add warn-on-use.
7344         (Makefile.am): Always build replacement.
7345         (configure.ac): Update substitutions.
7346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7347         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7348         bother with SYS_TIME_H.
7349         * modules/gettimeofday (configure.ac): Declare indicator.
7350         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7351         in use.
7352
7353         closein-tests: silence compiler warning
7354         * tests/test-closein.c (main): Ignore fread result.
7355         * modules/closein-tests (Depends-on): Add ignore-value.
7356
7357         tests: silence warning about system return
7358         * tests/test-areadlink-with-size.c (main): Ignore system result.
7359         * tests/test-areadlink.c (main): Likewise.
7360         * tests/test-areadlinkat-with-size.c (main): Likewise.
7361         * tests/test-areadlinkat.c (main): Likewise.
7362         * tests/test-canonicalize-lgpl.c (main): Likewise.
7363         * tests/test-canonicalize.c (main): Likewise.
7364         * tests/test-chown.c (main): Likewise.
7365         * tests/test-fchownat.c (main): Likewise.
7366         * tests/test-fdutimensat.c (main): Likewise.
7367         * tests/test-fstatat.c (main): Likewise.
7368         * tests/test-futimens.c (main): Likewise.
7369         * tests/test-lchown.c (main): Likewise.
7370         * tests/test-link.c (main): Likewise.
7371         * tests/test-linkat.c (main): Likewise.
7372         * tests/test-lstat.c (main): Likewise.
7373         * tests/test-mkdir.c (main): Likewise.
7374         * tests/test-mkdirat.c (main): Likewise.
7375         * tests/test-mkfifo.c (main): Likewise.
7376         * tests/test-mkfifoat.c (main): Likewise.
7377         * tests/test-mknod.c (main): Likewise.
7378         * tests/test-readlink.c (main): Likewise.
7379         * tests/test-remove.c (main): Likewise.
7380         * tests/test-rename.c (main): Likewise.
7381         * tests/test-renameat.c (main): Likewise.
7382         * tests/test-rmdir.c (main): Likewise.
7383         * tests/test-symlink.c (main): Likewise.
7384         * tests/test-symlinkat.c (main): Likewise.
7385         * tests/test-unlink.c (main): Likewise.
7386         * tests/test-unlinkat.c (main): Likewise.
7387         * tests/test-utimens.c (main): Likewise.
7388         * tests/test-utimensat.c (main): Likewise.
7389         * modules/areadlink-tests (Depends-on): Add ignore-value.
7390         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7391         * modules/areadlinkat-tests (Depends-on): Likewise.
7392         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7393         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7394         * modules/canonicalize-tests (Depends-on): Likewise.
7395         * modules/chown-tests (Depends-on): Likewise.
7396         * modules/fdutimensat-tests (Depends-on): Likewise.
7397         * modules/futimens-tests (Depends-on): Likewise.
7398         * modules/lchown-tests (Depends-on): Likewise.
7399         * modules/link-tests (Depends-on): Likewise.
7400         * modules/linkat-tests (Depends-on): Likewise.
7401         * modules/lstat-tests (Depends-on): Likewise.
7402         * modules/mkdir-tests (Depends-on): Likewise.
7403         * modules/mkfifo-tests (Depends-on): Likewise.
7404         * modules/mkfifoat-tests (Depends-on): Likewise.
7405         * modules/mknod-tests (Depends-on): Likewise.
7406         * modules/openat-tests (Depends-on): Likewise.
7407         * modules/readlink-tests (Depends-on): Likewise.
7408         * modules/remove-tests (Depends-on): Likewise.
7409         * modules/rename-tests (Depends-on): Likewise.
7410         * modules/renameat-tests (Depends-on): Likewise.
7411         * modules/rmdir-tests (Depends-on): Likewise.
7412         * modules/symlink-tests (Depends-on): Likewise.
7413         * modules/symlinkat-tests (Depends-on): Likewise.
7414         * modules/unlink-tests (Depends-on): Likewise.
7415         * modules/utimens-tests (Depends-on): Likewise.
7416         * modules/utimensat-tests (Depends-on): Likewise.
7417
7418 2010-01-31  Bruno Haible  <bruno@clisp.org>
7419
7420         Perform the same test for many <math.h> functions.
7421         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7422         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7423         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7424         of gl_MATHFUNC.
7425         * modules/acos (configure.ac): Likewise.
7426         * modules/asin (configure.ac): Likewise.
7427         * modules/atan (configure.ac): Likewise.
7428         * modules/atan2 (configure.ac): Likewise.
7429         * modules/cbrt (configure.ac): Likewise.
7430         * modules/copysign (configure.ac): Likewise.
7431         * modules/cos (configure.ac): Likewise.
7432         * modules/cosh (configure.ac): Likewise.
7433         * modules/erf (configure.ac): Likewise.
7434         * modules/erfc (configure.ac): Likewise.
7435         * modules/exp (configure.ac): Likewise.
7436         * modules/fmod (configure.ac): Likewise.
7437         * modules/hypot (configure.ac): Likewise.
7438         * modules/j0 (configure.ac): Likewise.
7439         * modules/j1 (configure.ac): Likewise.
7440         * modules/jn (configure.ac): Likewise.
7441         * modules/lgamma (configure.ac): Likewise.
7442         * modules/log (configure.ac): Likewise.
7443         * modules/log10 (configure.ac): Likewise.
7444         * modules/log1p (configure.ac): Likewise.
7445         * modules/pow (configure.ac): Likewise.
7446         * modules/remainder (configure.ac): Likewise.
7447         * modules/sin (configure.ac): Likewise.
7448         * modules/sinh (configure.ac): Likewise.
7449         * modules/tan (configure.ac): Likewise.
7450         * modules/tanh (configure.ac): Likewise.
7451         * modules/y0 (configure.ac): Likewise.
7452         * modules/y1 (configure.ac): Likewise.
7453         * modules/yn (configure.ac): Likewise.
7454         Suggested by Paolo Bonzini.
7455
7456 2010-01-31  Bruno Haible  <bruno@clisp.org>
7457
7458         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7459
7460 2010-01-31  Bruno Haible  <bruno@clisp.org>
7461
7462         Work around getdelim() bug on FreeBSD 8.0.
7463         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7464         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7465         not work.
7466         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7467         is 1.
7468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7469         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7470         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7471         a non-zero size.
7472         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7473
7474 2010-01-31  Bruno Haible  <bruno@clisp.org>
7475
7476         Work around getline() bug on FreeBSD 8.0.
7477         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7478         and a non-zero size.
7479         * tests/test-getline.c (main): Likewise.
7480         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7481         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7482
7483 2010-01-28  Eric Blake  <ebb9@byu.net>
7484
7485         regex: fix build failure
7486         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7487         platforms.
7488
7489 2010-01-28  Jim Meyering  <meyering@redhat.com>
7490
7491         regex: do not ignore memory allocation failure
7492         * lib/regex_internal.c (create_cd_newstate): Detect
7493         re_node_set_init_copy failure.   Extracted from glibc commit
7494         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7495
7496         regex: sync more white-space changes from libc
7497         * lib/regex_internal.c: White-space only changes.
7498         * lib/regexec.c: Likewise.
7499
7500         regex: add many uses of __attribute_warn_unused_result__
7501         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7502         * lib/regexec.c: Likewise.
7503         Extracted from a messy glibc commit.
7504
7505         regcomp.c: spelling and merge-artifact from glibc
7506         * lib/regcomp.c: Merge remainder of glibc's
7507         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7508
7509         regcomp.c: sync white-space changes from glibc
7510         * lib/regcomp.c: Merge to accommodate white space
7511         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7512
7513         regcomp.c: do not ignore internal return values
7514         * lib/regcomp.c: Do not ignore internal return values.
7515         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7516         but without its white-space changes and spelling fixes.
7517
7518         regex_internal.h: define __attribute_warn_unused_result__
7519         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7520
7521         maint: add a syntax-check rule to check for vulnerable Makefile.in
7522         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7523
7524 2010-01-27  Jim Meyering  <meyering@redhat.com>
7525
7526         ncftpput-ftp: clean up spaces
7527         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7528         Remove trailing blanks.
7529
7530 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7531
7532         * build-aux/git-version-gen: Fix copyright statement.
7533         * build-aux/gnupload: Likewise.
7534         * tests/test-arcfour.c: Likewise.
7535         * tests/test-arctwo.c: Likewise.
7536         * tests/test-count-one-bits.c: Likewise.
7537         * tests/test-crc.c: Likewise.
7538         * tests/test-des.c: Likewise.
7539         * tests/test-gc-arcfour.c: Likewise.
7540         * tests/test-gc-arctwo.c: Likewise.
7541         * tests/test-gc-des.c: Likewise.
7542         * tests/test-gc-hmac-md5.c: Likewise.
7543         * tests/test-gc-hmac-sha1.c: Likewise.
7544         * tests/test-gc-md2.c: Likewise.
7545         * tests/test-gc-md4.c: Likewise.
7546         * tests/test-gc-md5.c: Likewise.
7547         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7548         * tests/test-gc-rijndael.c: Likewise.
7549         * tests/test-gc-sha1.c: Likewise.
7550         * tests/test-gc.c: Likewise.
7551         * tests/test-gethostname.c: Likewise.
7552         * tests/test-gettimeofday.c: Likewise.
7553         * tests/test-hash.c: Likewise.
7554         * tests/test-hmac-md5.c: Likewise.
7555         * tests/test-hmac-sha1.c: Likewise.
7556         * tests/test-md2.c: Likewise.
7557         * tests/test-md4.c: Likewise.
7558         * tests/test-md5.c: Likewise.
7559         * tests/test-memchr.c: Likewise.
7560         * tests/test-memchr2.c: Likewise.
7561         * tests/test-memcmp.c: Likewise.
7562         * tests/test-memmem.c: Likewise.
7563         * tests/test-memrchr.c: Likewise.
7564         * tests/test-rawmemchr.c: Likewise.
7565         * tests/test-read-file.c: Likewise.
7566         * tests/test-rijndael.c: Likewise.
7567         * tests/test-sockets.c: Likewise.
7568         * tests/test-strchrnul.c: Likewise.
7569         * tests/test-strstr.c: Likewise.
7570         * tests/test-strtod.c: Likewise.
7571         * build-aux/ncftpput-ftp: Likewise.
7572
7573 2010-01-26  Eric Blake  <ebb9@byu.net>
7574
7575         ignore-value: update recommended header name
7576         * modules/ignore-value (Include): Only use <> for headers that
7577         exist in glibc.
7578
7579 2010-01-26  Jim Meyering  <meyering@redhat.com>
7580
7581         test-userspec.c: avoid compiler warnings
7582         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7583         and "initialization discards qualifiers..." warnings.
7584         Put the first "uid" in its own scope, and make char* members "const".
7585
7586 2010-01-25  Bruno Haible  <bruno@clisp.org>
7587
7588         gnulib-tool: Make warning diagnostics consistent.
7589         * gnulib-tool (func_warning): New function.
7590         Use it everywhere where gnulib-tool produces output to stderr and it is
7591         not a fatal error.
7592
7593 2010-01-25  Bruno Haible  <bruno@clisp.org>
7594
7595         Fix test dependencies.
7596         * modules/xstrtol-tests (Depends-on): Add inttypes.
7597         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7598
7599 2010-01-25 Pádraig Brady <P@draigBrady.com>
7600
7601         syntax-check: detect incorrect boolean macro values in config.h
7602         * modules/maintainer-makefile (configure.ac): Parameterize the location
7603         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7604         The logic is from Eric Blake and the location indicated by Jim Meyering.
7605         Note the more natural CONFIG_HEADER name is prohibited by automake
7606         for backwards compatibility reasons.
7607         * top/maint.mk (sc_Wundef_boolean): New rule.
7608
7609 2010-01-25  Jim Meyering  <meyering@redhat.com>
7610
7611         bootstrap: detect MacOS 10.6's shasum, too
7612         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7613         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7614
7615 2010-01-23  Jim Meyering  <meyering@redhat.com>
7616
7617         xstrtoll: new module
7618         * modules/xstrtoll: New file.
7619         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7620         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7621         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7622         ./configure fails if you use this module and lack "long long".
7623         * modules/xstrtoll-tests: New module.
7624         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7625         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7626         new init.sh-based test framework.
7627
7628 2010-01-24  Bruno Haible  <bruno@clisp.org>
7629
7630         Tests for module 'yn'.
7631         * modules/yn-tests: New file.
7632         * tests/test-yn.c: New file.
7633
7634         Tests for module 'y1'.
7635         * modules/y1-tests: New file.
7636         * tests/test-y1.c: New file.
7637
7638         Tests for module 'y0'.
7639         * modules/y0-tests: New file.
7640         * tests/test-y0.c: New file.
7641
7642         Tests for module 'tanh'.
7643         * modules/tanh-tests: New file.
7644         * tests/test-tanh.c: New file.
7645
7646         Tests for module 'tan'.
7647         * modules/tan-tests: New file.
7648         * tests/test-tan.c: New file.
7649
7650         Tests for module 'sqrt'.
7651         * modules/sqrt-tests: New file.
7652         * tests/test-sqrt.c: New file.
7653
7654         Tests for module 'sinh'.
7655         * modules/sinh-tests: New file.
7656         * tests/test-sinh.c: New file.
7657
7658         Tests for module 'sin'.
7659         * modules/sin-tests: New file.
7660         * tests/test-sin.c: New file.
7661
7662         Tests for module 'rint'.
7663         * modules/rint-tests: New file.
7664         * tests/test-rint.c: New file.
7665
7666         Tests for module 'remainder'.
7667         * modules/remainder-tests: New file.
7668         * tests/test-remainder.c: New file.
7669
7670         Tests for module 'pow'.
7671         * modules/pow-tests: New file.
7672         * tests/test-pow.c: New file.
7673
7674         Tests for module 'nextafter'.
7675         * modules/nextafter-tests: New file.
7676         * tests/test-nextafter.c: New file.
7677
7678         Tests for module 'modf'.
7679         * modules/modf-tests: New file.
7680         * tests/test-modf.c: New file.
7681
7682         Tests for module 'logb'.
7683         * modules/logb-tests: New file.
7684         * tests/test-logb.c: New file.
7685
7686         Tests for module 'log1p'.
7687         * modules/log1p-tests: New file.
7688         * tests/test-log1p.c: New file.
7689
7690         Tests for module 'log10'.
7691         * modules/log10-tests: New file.
7692         * tests/test-log10.c: New file.
7693
7694         Tests for module 'log'.
7695         * modules/log-tests: New file.
7696         * tests/test-log.c: New file.
7697
7698         Tests for module 'lgamma'.
7699         * modules/lgamma-tests: New file.
7700         * tests/test-lgamma.c: New file.
7701
7702         Tests for module 'ldexp'.
7703         * modules/ldexp-tests: New file.
7704         * tests/test-ldexp.c: New file.
7705
7706         Tests for module 'jn'.
7707         * modules/jn-tests: New file.
7708         * tests/test-jn.c: New file.
7709
7710         Tests for module 'j1'.
7711         * modules/j1-tests: New file.
7712         * tests/test-j1.c: New file.
7713
7714         Tests for module 'j0'.
7715         * modules/j0-tests: New file.
7716         * tests/test-j0.c: New file.
7717
7718         Tests for module 'hypot'.
7719         * modules/hypot-tests: New file.
7720         * tests/test-hypot.c: New file.
7721
7722         Tests for module 'fmod'.
7723         * modules/fmod-tests: New file.
7724         * tests/test-fmod.c: New file.
7725
7726         Tests for module 'fabs'.
7727         * modules/fabs-tests: New file.
7728         * tests/test-fabs.c: New file.
7729
7730         Tests for module 'exp'.
7731         * modules/exp-tests: New file.
7732         * tests/test-exp.c: New file.
7733
7734         Tests for module 'erfc'.
7735         * modules/erfc-tests: New file.
7736         * tests/test-erfc.c: New file.
7737
7738         Tests for module 'erf'.
7739         * modules/erf-tests: New file.
7740         * tests/test-erf.c: New file.
7741
7742         Tests for module 'cosh'.
7743         * modules/cosh-tests: New file.
7744         * tests/test-cosh.c: New file.
7745
7746         Tests for module 'cos'.
7747         * modules/cos-tests: New file.
7748         * tests/test-cos.c: New file.
7749
7750         Tests for module 'copysign'.
7751         * modules/copysign-tests: New file.
7752         * tests/test-copysign.c: New file.
7753
7754         Tests for module 'cbrt'.
7755         * modules/cbrt-tests: New file.
7756         * tests/test-cbrt.c: New file.
7757
7758         Tests for module 'atan2'.
7759         * modules/atan2-tests: New file.
7760         * tests/test-atan2.c: New file.
7761
7762         Tests for module 'atan'.
7763         * modules/atan-tests: New file.
7764         * tests/test-atan.c: New file.
7765
7766         Tests for module 'asin'.
7767         * modules/asin-tests: New file.
7768         * tests/test-asin.c: New file.
7769
7770         Tests for module 'acos'.
7771         * modules/acos-tests: New file.
7772         * tests/test-acos.c: New file.
7773
7774 2010-01-24  Bruno Haible  <bruno@clisp.org>
7775
7776         Fix tests for common <math.h> functions.
7777         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7778         code snippet that references the function pointer, rather than merely
7779         calling the function. Substitute the FUNC_LIBM variable.
7780         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7781         * modules/acos (configure.ac): Likewise.
7782         * modules/asin (configure.ac): Likewise.
7783         * modules/atan (configure.ac): Likewise.
7784         * modules/atan2 (configure.ac): Likewise.
7785         * modules/cbrt (configure.ac): Likewise.
7786         * modules/copysign (configure.ac): Likewise.
7787         * modules/cos (configure.ac): Likewise.
7788         * modules/cosh (configure.ac): Likewise.
7789         * modules/erf (configure.ac): Likewise.
7790         * modules/erfc (configure.ac): Likewise.
7791         * modules/exp (configure.ac): Likewise.
7792         * modules/fabs (configure.ac): Likewise.
7793         * modules/fmod (configure.ac): Likewise.
7794         * modules/hypot (configure.ac): Likewise.
7795         * modules/j0 (configure.ac): Likewise.
7796         * modules/j1 (configure.ac): Likewise.
7797         * modules/jn (configure.ac): Likewise.
7798         * modules/ldexp (configure.ac): Likewise.
7799         * modules/lgamma (configure.ac): Likewise.
7800         * modules/log (configure.ac): Likewise.
7801         * modules/log10 (configure.ac): Likewise.
7802         * modules/log1p (configure.ac): Likewise.
7803         * modules/logb (configure.ac): Likewise.
7804         * modules/modf (configure.ac): Likewise.
7805         * modules/nextafter (configure.ac): Likewise.
7806         * modules/pow (configure.ac): Likewise.
7807         * modules/remainder (configure.ac): Likewise.
7808         * modules/rint (configure.ac): Likewise.
7809         * modules/sin (configure.ac): Likewise.
7810         * modules/sinh (configure.ac): Likewise.
7811         * modules/tan (configure.ac): Likewise.
7812         * modules/tanh (configure.ac): Likewise.
7813         * modules/y0 (configure.ac): Likewise.
7814         * modules/y1 (configure.ac): Likewise.
7815         * modules/yn (configure.ac): Likewise.
7816
7817 2010-01-24  Bruno Haible  <bruno@clisp.org>
7818
7819         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7820         * tests/test-acosl.c (x): New variable.
7821         (main): Store argument in x and fetch it from x.
7822         * tests/test-asinl.c (x): New variable.
7823         (main): Store argument in x and fetch it from x.
7824         * tests/test-atanl.c (x): New variable.
7825         (main): Store argument in x and fetch it from x.
7826         * tests/test-cosl.c (x): New variable.
7827         (main): Store argument in x and fetch it from x.
7828         * tests/test-expl.c (x): New variable.
7829         (main): Store argument in x and fetch it from x.
7830         * tests/test-logl.c (x): New variable.
7831         (main): Store argument in x and fetch it from x.
7832         * tests/test-sinl.c (x): New variable.
7833         (main): Store argument in x and fetch it from x.
7834         * tests/test-sqrtl.c (x): New variable.
7835         (main): Store argument in x and fetch it from x.
7836         * tests/test-tanl.c (x): New variable.
7837         (main): Store argument in x and fetch it from x.
7838
7839 2010-01-24  Bruno Haible  <bruno@clisp.org>
7840
7841         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7842         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7843         assignments to the initial TESTS_ENVIRONMENT.
7844         * doc/gnulib.texi (Unit test modules): Document it.
7845         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7846         TESTS_ENVIRONMENT.
7847         * modules/btowc-tests (Makefile.am): Likewise.
7848         * modules/c-stack-tests (Makefile.am): Likewise.
7849         * modules/c-strcase-tests (Makefile.am): Likewise.
7850         * modules/copy-file-tests (Makefile.am): Likewise.
7851         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7852         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7853         * modules/mbrtowc-tests (Makefile.am): Likewise.
7854         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7855         * modules/mbscasestr-tests (Makefile.am): Likewise.
7856         * modules/mbschr-tests (Makefile.am): Likewise.
7857         * modules/mbscspn-tests (Makefile.am): Likewise.
7858         * modules/mbsinit-tests (Makefile.am): Likewise.
7859         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7860         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7861         * modules/mbspbrk-tests (Makefile.am): Likewise.
7862         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7863         * modules/mbsrchr-tests (Makefile.am): Likewise.
7864         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7865         * modules/mbsspn-tests (Makefile.am): Likewise.
7866         * modules/mbsstr-tests (Makefile.am): Likewise.
7867         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7868         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7869         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7870         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7871         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7872         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7873         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7874         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7875         * modules/wcrtomb-tests (Makefile.am): Likewise.
7876         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7877         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7878         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7879         assignments from TESTS_ENVIRONMENT.
7880         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7881         augmentation.
7882         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7883         * modules/atexit-tests (Makefile.am): Likewise.
7884         * modules/binary-io-tests (Makefile.am): Likewise.
7885         * modules/closein-tests (Makefile.am): Likewise.
7886         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7887         * modules/exclude-tests (Makefile.am): Likewise.
7888         * modules/fflush-tests (Makefile.am): Likewise.
7889         * modules/fpending-tests (Makefile.am): Likewise.
7890         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7891         * modules/freadahead-tests (Makefile.am): Likewise.
7892         * modules/freadptr-tests (Makefile.am): Likewise.
7893         * modules/freadseek-tests (Makefile.am): Likewise.
7894         * modules/fseek-tests (Makefile.am): Likewise.
7895         * modules/fseeko-tests (Makefile.am): Likewise.
7896         * modules/ftell-tests (Makefile.am): Likewise.
7897         * modules/ftello-tests (Makefile.am): Likewise.
7898         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7899         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7900         * modules/lseek-tests (Makefile.am): Likewise.
7901         * modules/parse-duration-tests (Makefile.am): Likewise.
7902         * modules/perror-tests (Makefile.am): Likewise.
7903         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7904         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7905         * modules/pipe-tests (Makefile.am): Likewise.
7906         * modules/pread-tests (Makefile.am): Likewise.
7907         * modules/printf-posix-tests (Makefile.am): Likewise.
7908         * modules/select-tests (Makefile.am): Likewise.
7909         * modules/sigpipe-tests (Makefile.am): Likewise.
7910         * modules/tsearch-tests (Makefile.am): Likewise.
7911         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7912         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7913         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7914         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7915         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7916         * modules/version-etc-tests (Makefile.am): Likewise.
7917         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7918         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7919         * modules/xalloc-die-tests (Makefile.am): Likewise.
7920         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7921         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7922         * modules/xstrtol-tests (Makefile.am): Likewise.
7923         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7924         * modules/yesno-tests (Makefile.am): Likewise.
7925         Suggested by Jim Meyering.
7926
7927 2010-01-24  Bruno Haible  <bruno@clisp.org>
7928
7929         More documentation.
7930         * doc/gnulib.texi (Writing modules): New chapter.
7931         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7932         the new chapter.
7933
7934 2010-01-24  Jim Meyering  <meyering@redhat.com>
7935
7936         maint.mk: do not prepend "./" after filtering
7937         * top/maint.mk (_prepend_srcdir_prefix): New variable
7938         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7939         "./" when $(srcdir) is ".".
7940
7941         define STREQ(a,b) consistently, removing useless parentheses
7942         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7943         since the only risk is that "a" or "b" contains an unparenthesized
7944         comma, but if either did that, STREQ would have 3 or more arguments.
7945         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7946         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7947         * lib/hash-triple.c (STREQ): Likewise.
7948         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7949         * lib/getugroups.c (STREQ): Likewise.
7950
7951 2010-01-23  Jim Meyering  <meyering@redhat.com>
7952
7953         maint.mk: fix syntax-check in a non-srcdir build directory
7954         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7955         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7956
7957 2010-01-22  Jim Meyering  <meyering@redhat.com>
7958
7959         userspec: add unit tests
7960         * tests/test-userspec.c: New file.
7961         * modules/userspec-tests: Likewise.
7962
7963 2010-01-21  Jim Meyering  <meyering@redhat.com>
7964
7965         maint.mk: handle source file names containing "." robustly
7966         * top/maint.mk (_dot_escaped_srcdir): Define.
7967         (VC_LIST): Use it in LHS of sed substitution.
7968
7969 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7970
7971         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7972         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7973         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7974         from a non-srcdir build.
7975
7976 2010-01-20  Eric Blake  <ebb9@byu.net>
7977
7978         warn-on-use: use instead of link-warning
7979         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7980         * modules/unistd (Depends-on, Makefile.am): Likewise.
7981         * modules/arpa_inet (Depends-on): Replace link-warning with
7982         warn-on-use.
7983         (Makefile.am): Update rules accordingly.
7984         * modules/ctype (Depends-on, Makefile.am): Likewise.
7985         * modules/dirent (Depends-on, Makefile.am): Likewise.
7986         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7987         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7988         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7989         * modules/locale (Depends-on, Makefile.am): Likewise.
7990         * modules/math (Depends-on, Makefile.am): Likewise.
7991         * modules/search (Depends-on, Makefile.am): Likewise.
7992         * modules/signal (Depends-on, Makefile.am): Likewise.
7993         * modules/spawn (Depends-on, Makefile.am): Likewise.
7994         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7995         * modules/string (Depends-on, Makefile.am): Likewise.
7996         * modules/strings (Depends-on, Makefile.am): Likewise.
7997         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7998         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7999         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8000         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8001         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8002         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8003         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8004         * modules/wchar (Depends-on, Makefile.am): Likewise.
8005         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8006         should be poisoned.
8007         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8008         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8009         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8012         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8013         * m4/math_h.m4 (gl_MATH_H): Likewise.
8014         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8015         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8016         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8017         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8018         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8019         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8020         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8021         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8026         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8027         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8028         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8029         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8030         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8031         GL_LINK_WARNING.
8032         * lib/ctype.in.h: Likewise.
8033         * lib/dirent.in.h: Likewise.
8034         * lib/fcntl.in.h: Likewise.
8035         * lib/inttypes.in.h: Likewise.
8036         * lib/langinfo.in.h: Likewise.
8037         * lib/locale.in.h: Likewise.
8038         * lib/math.in.h: Likewise.
8039         * lib/search.in.h: Likewise.
8040         * lib/signal.in.h: Likewise.
8041         * lib/spawn.in.h: Likewise.
8042         * lib/stdio.in.h: Likewise.
8043         * lib/stdlib.in.h: Likewise.
8044         * lib/string.in.h: Likewise.
8045         * lib/strings.in.h: Likewise.
8046         * lib/sys_file.in.h: Likewise.
8047         * lib/sys_ioctl.in.h: Likewise.
8048         * lib/sys_select.in.h: Likewise.
8049         * lib/sys_socket.in.h: Likewise.
8050         * lib/sys_stat.in.h: Likewise.
8051         * lib/sys_times.in.h: Likewise.
8052         * lib/sys_utsname.in.h: Likewise.
8053         * lib/unistd.in.h: Likewise.
8054         * lib/wchar.in.h: Likewise.
8055
8056 2010-01-20  Bruno Haible  <bruno@clisp.org>
8057
8058         Avoid duplicate -lm.
8059         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8060         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8062         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8063         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8064         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8065         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8066         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8067         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8068         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8069         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8070         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8071         Reported by Paolo Bonzini.
8072
8073 2010-01-19  Bruno Haible  <bruno@clisp.org>
8074
8075         langinfo, nl_langinfo: Relicense under LGPLv2+.
8076         * modules/langinfo (License): Change to LGPLv2+.
8077         * modules/nl_langinfo (License): Likewise.
8078         Patch by David Lutterkort <lutter@redhat.com>.
8079
8080 2010-01-19  Bruno Haible  <bruno@clisp.org>
8081
8082         Avoid compilation error with cc on OSF/1 5.1.
8083         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8084         statement, not before.
8085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8086
8087 2010-01-18  Bruno Haible  <bruno@clisp.org>
8088
8089         Avoid a link error due to the __printf__ symbol.
8090         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8091         and 2.6.x.
8092         (__format__, __printf__): Remove definitions.
8093         * lib/argp-fmtstream.h: Likewise.
8094         * lib/argp.h: Likewise.
8095         * lib/error.h: Likewise.
8096         * lib/vasnprintf.h: Likewise.
8097         * lib/xprintf.h: Likewise.
8098         * lib/xvasprintf.h: Likewise.
8099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8100
8101 2010-01-18  Bruno Haible  <bruno@clisp.org>
8102
8103         Tests for module 'tanl'.
8104         * modules/tanl-tests: New file.
8105         * tests/test-tanl.c: New file.
8106
8107         Tests for module 'sqrtl'.
8108         * modules/sqrtl-tests: New file.
8109         * tests/test-sqrtl.c: New file.
8110
8111         Tests for module 'sinl'.
8112         * modules/sinl-tests: New file.
8113         * tests/test-sinl.c: New file.
8114
8115         Tests for module 'logl'.
8116         * modules/logl-tests: New file.
8117         * tests/test-logl.c: New file.
8118
8119         Tests for module 'expl'.
8120         * modules/expl-tests: New file.
8121         * tests/test-expl.c: New file.
8122
8123         Tests for module 'cosl'.
8124         * modules/cosl-tests: New file.
8125         * tests/test-cosl.c: New file.
8126
8127         Tests for module 'atanl'.
8128         * modules/atanl-tests: New file.
8129         * tests/test-atanl.c: New file.
8130
8131         Tests for module 'asinl'.
8132         * modules/asinl-tests: New file.
8133         * tests/test-asinl.c: New file.
8134
8135         Tests for module 'acosl'.
8136         * modules/acosl-tests: New file.
8137         * tests/test-acosl.c: New file.
8138
8139         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8140         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8141         tanl): Use the standard gnulib idiom.
8142         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8143         * lib/sinl.c: Likewise.
8144         * lib/tanl.c: Don't include trigl.c.
8145         (kernel_tanl): Make static.
8146         * lib/sincosl.c: Include trigl.h first.
8147         * lib/trigl.c: Likewise.
8148         * m4/acosl.m4: New file.
8149         * m4/asinl.m4: New file.
8150         * m4/atanl.m4: New file.
8151         * m4/cosl.m4: New file.
8152         * m4/expl.m4: New file.
8153         * m4/logl.m4: New file.
8154         * m4/sinl.m4: New file.
8155         * m4/sqrtl.m4: New file.
8156         * m4/tanl.m4: New file.
8157         * m4/mathl.m4: Remove file.
8158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8159         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8160         Don't initialize GNULIB_MATHL.
8161         * modules/acosl: New file.
8162         * modules/asinl: New file.
8163         * modules/atanl: New file.
8164         * modules/cosl: New file.
8165         * modules/expl: New file.
8166         * modules/logl: New file.
8167         * modules/sinl: New file.
8168         * modules/sqrtl: New file.
8169         * modules/tanl: New file.
8170         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8171         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8172         substitute GNULIB_MATHL.
8173         * modules/mathl: Rewritten.
8174         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8175         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8176         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8177         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8178         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8179         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8180         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8181         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8182         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8183
8184 2010-01-18  Bruno Haible  <bruno@clisp.org>
8185
8186         sqrt: Make gl_FUNC_SQRT requirable.
8187         * m4/sqrt.m4: New file.
8188         * modules/sqrt (Files): Add it.
8189         (configure.ac): Invoke gl_FUNC_SQRT.
8190
8191 2010-01-18  Bruno Haible  <bruno@clisp.org>
8192
8193         New modules for common <math.h> functions.
8194         * m4/mathfunc.m4: New file.
8195         * modules/acos: New file.
8196         * modules/asin: New file.
8197         * modules/atan: New file.
8198         * modules/atan2: New file.
8199         * modules/cbrt: New file.
8200         * modules/copysign: New file.
8201         * modules/cos: New file.
8202         * modules/cosh: New file.
8203         * modules/erf: New file.
8204         * modules/erfc: New file.
8205         * modules/exp: New file.
8206         * modules/fabs: New file.
8207         * modules/fmod: New file.
8208         * modules/hypot: New file.
8209         * modules/j0: New file.
8210         * modules/j1: New file.
8211         * modules/jn: New file.
8212         * modules/ldexp: New file.
8213         * modules/lgamma: New file.
8214         * modules/log: New file.
8215         * modules/log10: New file.
8216         * modules/log1p: New file.
8217         * modules/logb: New file.
8218         * modules/modf: New file.
8219         * modules/nextafter: New file.
8220         * modules/pow: New file.
8221         * modules/remainder: New file.
8222         * modules/rint: New file.
8223         * modules/sin: New file.
8224         * modules/sinh: New file.
8225         * modules/sqrt: New file.
8226         * modules/tan: New file.
8227         * modules/tanh: New file.
8228         * modules/y0: New file.
8229         * modules/y1: New file.
8230         * modules/yn: New file.
8231         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8232         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8233         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8234         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8235         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8236         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8237         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8238         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8239         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8240         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8241         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8242         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8243         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8244         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8245         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8246         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8247         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8248         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8249         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8250         * doc/posix-functions/log.texi: Mention the 'log' module.
8251         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8252         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8253         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8254         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8255         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8256         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8257         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8258         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8259         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8260         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8261         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8262         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8263         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8264         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8265         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8266         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8267
8268 2010-01-18  Jim Meyering  <meyering@redhat.com>
8269
8270         ignore-value: relax license to LGPLv2+
8271         * modules/ignore-value (License): Relax to LGPLv2+.
8272
8273         getdate: don't leak when TZ contains two or more '"'s
8274         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8275         double quote in TZ after the first one.
8276
8277         readtokens: do not leak internal token_lengths buffer
8278         * lib/readtokens.c (readtokens): Free the local, lengths,
8279         when the supplied "token_lengths" parameter is NULL.
8280
8281 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8282
8283         Fix a couple of missing LIBTHREAD link failures on AIX.
8284         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8285         $(LIBTHREAD).
8286         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8287
8288         Link test-poll against INET_PTON_LIB.
8289         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8290         for inet_pton on Solaris 10.
8291
8292 2010-01-17  Bruno Haible  <bruno@clisp.org>
8293
8294         unistdio/*-sprintf: Fix typo in module description.
8295         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8296         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8297         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8298         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8299         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8300         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8301         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8303
8304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8305
8306         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8307         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8308         variables in shell case patterns, for AIX and HP-UX ksh.
8309
8310         Split large sed scripts, for HP-UX sed.
8311         * modules/stdio: Split sed scripts around 50 sed commands,
8312         to avoid HP-UX limit of 99 commands, in the near future.
8313         * modules/string: Likewise.
8314         * modules/unistd: Likewise.
8315
8316         gnulib-tool: avoid writing in the current directory.
8317         * gnulib-tool (func_emit_lib_Makefile_am)
8318         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8319         not in the current directory, so concurrent gnulib-tool
8320         instances do not interfere.
8321
8322 2010-01-16  Jim Meyering  <meyering@redhat.com>
8323
8324         doc: update users.txt
8325         * users.txt: Add grep.
8326         (diffutils, gzip): Update URLs.
8327
8328 2010-01-12  Bruno Haible  <bruno@clisp.org>
8329
8330         posix_spawn: Avoid test failure on Cygwin.
8331         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8332         characters.
8333         Reported by Simon Josefsson.
8334
8335 2010-01-12  Bruno Haible  <bruno@clisp.org>
8336
8337         * tests/test-cond.c (main): When skipping the test, show the reason.
8338
8339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8340
8341         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8342
8343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8344
8345         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8346         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8347
8348 2010-01-12  Eric Blake  <ebb9@byu.net>
8349
8350         build: guarantee AS_VAR_IF
8351         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8352         (gl_AS_VAR_IF): Move...
8353         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8354         Reported by Simon Josefsson.
8355
8356 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8357
8358         * lib/stdio.in.h: Fix typo.
8359
8360 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8361
8362         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8363         libgpg-error.
8364
8365 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8366
8367         * tests/test-xalloc-die.sh: Use $EXEEXT.
8368
8369 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8370             Bruno Haible  <bruno@clisp.org>
8371
8372         getlogin, getlogin_r: Avoid test failure.
8373         * tests/test-getlogin.c: Include <stdio.h>.
8374         (main): Skip the test when the function fails because stdin is not a
8375         tty.
8376         * tests/test-getlogin_r.c: Include <stdio.h>.
8377         (main): Skip the test when the function fails because stdin is not a
8378         tty.
8379
8380 2010-01-11  Eric Blake  <ebb9@byu.net>
8381
8382         tests: avoid more large file warnings
8383         * tests/test-fflush.c: Avoid warning about ftell use.
8384         * tests/test-fseek.c: Avoid warning about fseek use.
8385
8386 2010-01-10  Bruno Haible  <bruno@clisp.org>
8387
8388         nproc: Work better on Linux when /proc and /sys are not mounted.
8389         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8390         as lower bound when, on glibc/Linux systems,
8391         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8392         Suggested by Pádraig Brady <P@draigbrady.com>.
8393         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8394
8395         nproc: Refactor.
8396         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8397         extracted from num_processors.
8398         (num_processors): Call it.
8399
8400 2010-01-11  Jim Meyering  <meyering@redhat.com>
8401
8402         utimecmp: avoid new warning from upcoming gcc-4.5.0
8403         * lib/utimecmp.c (BILLION): Define using #define rather than an
8404         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8405
8406 2010-01-11  Eric Blake  <ebb9@byu.net>
8407
8408         math: add portability warnings for classification macros
8409         * modules/math (Depends-on): Add warn-on-use.
8410         (Makefile.am): Provide new substitutions.
8411         * m4/math_h.m4 (gl_MATH_H): Require inline.
8412         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8413         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8414         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8415         implement warnings.
8416
8417         unistd: warn on use of environ without module
8418         * modules/unistd (Depends-on): Add warn-on-use.
8419         (Makefile.am): Provide new substitutions.
8420         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8421         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8422
8423         stdio: warn on suspicious uses
8424         * modules/stdio (Depends-on): Add warn-on-use.
8425         (Makefile.am): Provide new substitutions.
8426         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8427         fseeko.
8428         * lib/stdio.in.h (gets): Always warn on use.
8429         (fseek, ftell): Adjust when warnings are issued, and honor
8430         _GL_NO_LARGE_FILES as a way to silence the warning.
8431         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8432         any warning about large file offsets.
8433         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8434         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8435         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8436         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8437         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8438         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8439         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8440         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8441
8442         warn-on-use: new module
8443         * modules/warn-on-use: New file.
8444         * build-aux/warn-on-use.h: Likewise.
8445         * m4/warn-on-use.m4: Likewise.
8446         * MODULES.html.sh (Support for building): Mention it.
8447
8448 2010-01-10  Bruno Haible  <bruno@clisp.org>
8449
8450         Tests for module 'unistr/u32-strdup'.
8451         * modules/unistr/u32-strdup-tests: New file.
8452         * tests/unistr/test-u32-strdup.c: New file.
8453
8454         Tests for module 'unistr/u16-strdup'.
8455         * modules/unistr/u16-strdup-tests: New file.
8456         * tests/unistr/test-u16-strdup.c: New file.
8457
8458         Tests for module 'unistr/u8-strdup'.
8459         * modules/unistr/u8-strdup-tests: New file.
8460         * tests/unistr/test-u8-strdup.c: New file.
8461         * tests/unistr/test-strdup.h: New file.
8462
8463         Tests for module 'unistr/u32-strncmp'.
8464         * modules/unistr/u32-strncmp-tests: New file.
8465         * tests/unistr/test-u32-strncmp.c: New file.
8466
8467         Tests for module 'unistr/u16-strncmp'.
8468         * modules/unistr/u16-strncmp-tests: New file.
8469         * tests/unistr/test-u16-strncmp.c: New file.
8470
8471         Tests for module 'unistr/u8-strncmp'.
8472         * modules/unistr/u8-strncmp-tests: New file.
8473         * tests/unistr/test-u8-strncmp.c: New file.
8474         * tests/unistr/test-strncmp.h: New file.
8475
8476         Tests for module 'unistr/u32-strcoll'.
8477         * modules/unistr/u32-strcoll-tests: New file.
8478         * tests/unistr/test-u32-strcoll.c: New file.
8479
8480         Tests for module 'unistr/u16-strcoll'.
8481         * modules/unistr/u16-strcoll-tests: New file.
8482         * tests/unistr/test-u16-strcoll.c: New file.
8483
8484         Tests for module 'unistr/u8-strcoll'.
8485         * modules/unistr/u8-strcoll-tests: New file.
8486         * tests/unistr/test-u8-strcoll.c: New file.
8487
8488         Tests for module 'unistr/u32-strcmp'.
8489         * modules/unistr/u32-strcmp-tests: New file.
8490         * tests/unistr/test-u32-strcmp.c: New file.
8491         * tests/unistr/test-u32-strcmp.h: New file.
8492
8493         Tests for module 'unistr/u16-strcmp'.
8494         * modules/unistr/u16-strcmp-tests: New file.
8495         * tests/unistr/test-u16-strcmp.c: New file.
8496         * tests/unistr/test-u16-strcmp.h: New file.
8497
8498         Tests for module 'unistr/u8-strcmp'.
8499         * modules/unistr/u8-strcmp-tests: New file.
8500         * tests/unistr/test-u8-strcmp.c: New file.
8501         * tests/unistr/test-u8-strcmp.h: New file.
8502         * tests/unistr/test-strcmp.h: New file.
8503
8504         Tests for module 'unistr/u32-strncat'.
8505         * modules/unistr/u32-strncat-tests: New file.
8506         * tests/unistr/test-u32-strncat.c: New file.
8507
8508         Tests for module 'unistr/u16-strncat'.
8509         * modules/unistr/u16-strncat-tests: New file.
8510         * tests/unistr/test-u16-strncat.c: New file.
8511
8512         Tests for module 'unistr/u8-strncat'.
8513         * modules/unistr/u8-strncat-tests: New file.
8514         * tests/unistr/test-u8-strncat.c: New file.
8515         * tests/unistr/test-strncat.h: New file.
8516
8517         Tests for module 'unistr/u32-strcat'.
8518         * modules/unistr/u32-strcat-tests: New file.
8519         * tests/unistr/test-u32-strcat.c: New file.
8520
8521         Tests for module 'unistr/u16-strcat'.
8522         * modules/unistr/u16-strcat-tests: New file.
8523         * tests/unistr/test-u16-strcat.c: New file.
8524
8525         Tests for module 'unistr/u8-strcat'.
8526         * modules/unistr/u8-strcat-tests: New file.
8527         * tests/unistr/test-u8-strcat.c: New file.
8528         * tests/unistr/test-strcat.h: New file.
8529
8530         Tests for module 'unistr/u32-stpncpy'.
8531         * modules/unistr/u32-stpncpy-tests: New file.
8532         * tests/unistr/test-u32-stpncpy.c: New file.
8533
8534         Tests for module 'unistr/u16-stpncpy'.
8535         * modules/unistr/u16-stpncpy-tests: New file.
8536         * tests/unistr/test-u16-stpncpy.c: New file.
8537
8538         Tests for module 'unistr/u8-stpncpy'.
8539         * modules/unistr/u8-stpncpy-tests: New file.
8540         * tests/unistr/test-u8-stpncpy.c: New file.
8541         * tests/unistr/test-stpncpy.h: New file.
8542
8543         Tests for module 'unistr/u32-strncpy'.
8544         * modules/unistr/u32-strncpy-tests: New file.
8545         * tests/unistr/test-u32-strncpy.c: New file.
8546
8547         Tests for module 'unistr/u16-strncpy'.
8548         * modules/unistr/u16-strncpy-tests: New file.
8549         * tests/unistr/test-u16-strncpy.c: New file.
8550
8551         Tests for module 'unistr/u8-strncpy'.
8552         * modules/unistr/u8-strncpy-tests: New file.
8553         * tests/unistr/test-u8-strncpy.c: New file.
8554         * tests/unistr/test-strncpy.h: New file.
8555
8556         Tests for module 'unistr/u32-stpcpy'.
8557         * modules/unistr/u32-stpcpy-tests: New file.
8558         * tests/unistr/test-u32-stpcpy.c: New file.
8559
8560         Tests for module 'unistr/u16-stpcpy'.
8561         * modules/unistr/u16-stpcpy-tests: New file.
8562         * tests/unistr/test-u16-stpcpy.c: New file.
8563
8564         Tests for module 'unistr/u8-stpcpy'.
8565         * modules/unistr/u8-stpcpy-tests: New file.
8566         * tests/unistr/test-u8-stpcpy.c: New file.
8567         * tests/unistr/test-stpcpy.h: New file.
8568
8569         Tests for module 'unistr/u32-strcpy'.
8570         * modules/unistr/u32-strcpy-tests: New file.
8571         * tests/unistr/test-u32-strcpy.c: New file.
8572
8573         Tests for module 'unistr/u16-strcpy'.
8574         * modules/unistr/u16-strcpy-tests: New file.
8575         * tests/unistr/test-u16-strcpy.c: New file.
8576
8577         Tests for module 'unistr/u8-strcpy'.
8578         * modules/unistr/u8-strcpy-tests: New file.
8579         * tests/unistr/test-u8-strcpy.c: New file.
8580         * tests/unistr/test-strcpy.h: New file.
8581
8582         Tests for module 'unistr/u32-strnlen'.
8583         * modules/unistr/u32-strnlen-tests: New file.
8584         * tests/unistr/test-u32-strnlen.c: New file.
8585
8586         Tests for module 'unistr/u16-strnlen'.
8587         * modules/unistr/u16-strnlen-tests: New file.
8588         * tests/unistr/test-u16-strnlen.c: New file.
8589
8590         Tests for module 'unistr/u8-strnlen'.
8591         * modules/unistr/u8-strnlen-tests: New file.
8592         * tests/unistr/test-u8-strnlen.c: New file.
8593         * tests/unistr/test-strnlen.h: New file.
8594
8595         Tests for module 'unistr/u32-strlen'.
8596         * modules/unistr/u32-strlen-tests: New file.
8597         * tests/unistr/test-u32-strlen.c: New file.
8598
8599         Tests for module 'unistr/u16-strlen'.
8600         * modules/unistr/u16-strlen-tests: New file.
8601         * tests/unistr/test-u16-strlen.c: New file.
8602
8603         Tests for module 'unistr/u8-strlen'.
8604         * modules/unistr/u8-strlen-tests: New file.
8605         * tests/unistr/test-u8-strlen.c: New file.
8606
8607         Tests for module 'unistr/u32-prev'.
8608         * modules/unistr/u32-prev-tests: New file.
8609         * tests/unistr/test-u32-prev.c: New file.
8610
8611         Tests for module 'unistr/u16-prev'.
8612         * modules/unistr/u16-prev-tests: New file.
8613         * tests/unistr/test-u16-prev.c: New file.
8614
8615         Tests for module 'unistr/u8-prev'.
8616         * modules/unistr/u8-prev-tests: New file.
8617         * tests/unistr/test-u8-prev.c: New file.
8618
8619         Tests for module 'unistr/u32-next'.
8620         * modules/unistr/u32-next-tests: New file.
8621         * tests/unistr/test-u32-next.c: New file.
8622
8623         Tests for module 'unistr/u16-next'.
8624         * modules/unistr/u16-next-tests: New file.
8625         * tests/unistr/test-u16-next.c: New file.
8626
8627         Tests for module 'unistr/u8-next'.
8628         * modules/unistr/u8-next-tests: New file.
8629         * tests/unistr/test-u8-next.c: New file.
8630
8631         Tests for module 'unistr/u32-strmbtouc'.
8632         * modules/unistr/u32-strmbtouc-tests: New file.
8633         * tests/unistr/test-u32-strmbtouc.c: New file.
8634
8635         Tests for module 'unistr/u16-strmbtouc'.
8636         * modules/unistr/u16-strmbtouc-tests: New file.
8637         * tests/unistr/test-u16-strmbtouc.c: New file.
8638
8639         Tests for module 'unistr/u8-strmbtouc'.
8640         * modules/unistr/u8-strmbtouc-tests: New file.
8641         * tests/unistr/test-u8-strmbtouc.c: New file.
8642
8643         Tests for module 'unistr/u32-strmblen'.
8644         * modules/unistr/u32-strmblen-tests: New file.
8645         * tests/unistr/test-u32-strmblen.c: New file.
8646
8647         Tests for module 'unistr/u16-strmblen'.
8648         * modules/unistr/u16-strmblen-tests: New file.
8649         * tests/unistr/test-u16-strmblen.c: New file.
8650
8651         Tests for module 'unistr/u8-strmblen'.
8652         * modules/unistr/u8-strmblen-tests: New file.
8653         * tests/unistr/test-u8-strmblen.c: New file.
8654
8655         Tests for module 'unistr/u32-cpy-alloc'.
8656         * modules/unistr/u32-cpy-alloc-tests: New file.
8657         * tests/unistr/test-u32-cpy-alloc.c: New file.
8658
8659         Tests for module 'unistr/u16-cpy-alloc'.
8660         * modules/unistr/u16-cpy-alloc-tests: New file.
8661         * tests/unistr/test-u16-cpy-alloc.c: New file.
8662
8663         Tests for module 'unistr/u8-cpy-alloc'.
8664         * modules/unistr/u8-cpy-alloc-tests: New file.
8665         * tests/unistr/test-u8-cpy-alloc.c: New file.
8666         * tests/unistr/test-cpy-alloc.h: New file.
8667
8668         Tests for module 'unistr/u32-mbsnlen'.
8669         * modules/unistr/u32-mbsnlen-tests: New file.
8670         * tests/unistr/test-u32-mbsnlen.c: New file.
8671
8672         Tests for module 'unistr/u16-mbsnlen'.
8673         * modules/unistr/u16-mbsnlen-tests: New file.
8674         * tests/unistr/test-u16-mbsnlen.c: New file.
8675
8676         Tests for module 'unistr/u8-mbsnlen'.
8677         * modules/unistr/u8-mbsnlen-tests: New file.
8678         * tests/unistr/test-u8-mbsnlen.c: New file.
8679
8680         Tests for module 'unistr/u32-chr'.
8681         * modules/unistr/u32-chr-tests: New file.
8682         * tests/unistr/test-u32-chr.c: New file.
8683
8684         Tests for module 'unistr/u16-chr'.
8685         * modules/unistr/u16-chr-tests: New file.
8686         * tests/unistr/test-u16-chr.c: New file.
8687
8688         Tests for module 'unistr/u8-chr'.
8689         * modules/unistr/u8-chr-tests: New file.
8690         * tests/unistr/test-u8-chr.c: New file.
8691         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8692
8693         Tests for module 'unistr/u32-cmp2'.
8694         * modules/unistr/u32-cmp2-tests: New file.
8695         * tests/unistr/test-u32-cmp2.c: New file.
8696
8697         Tests for module 'unistr/u16-cmp2'.
8698         * modules/unistr/u16-cmp2-tests: New file.
8699         * tests/unistr/test-u16-cmp2.c: New file.
8700
8701         Tests for module 'unistr/u8-cmp2'.
8702         * modules/unistr/u8-cmp2-tests: New file.
8703         * tests/unistr/test-u8-cmp2.c: New file.
8704         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8705
8706         Tests for module 'unistr/u32-cmp'.
8707         * modules/unistr/u32-cmp-tests: New file.
8708         * tests/unistr/test-u32-cmp.c: New file.
8709
8710         Tests for module 'unistr/u16-cmp'.
8711         * modules/unistr/u16-cmp-tests: New file.
8712         * tests/unistr/test-u16-cmp.c: New file.
8713
8714         Tests for module 'unistr/u8-cmp'.
8715         * modules/unistr/u8-cmp-tests: New file.
8716         * tests/unistr/test-u8-cmp.c: New file.
8717         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8718
8719         Tests for module 'unistr/u32-set'.
8720         * modules/unistr/u32-set-tests: New file.
8721         * tests/unistr/test-u32-set.c: New file.
8722
8723         Tests for module 'unistr/u16-set'.
8724         * modules/unistr/u16-set-tests: New file.
8725         * tests/unistr/test-u16-set.c: New file.
8726
8727         Tests for module 'unistr/u8-set'.
8728         * modules/unistr/u8-set-tests: New file.
8729         * tests/unistr/test-u8-set.c: New file.
8730         * tests/unistr/test-set.h: New file.
8731
8732         Tests for module 'unistr/u32-move'.
8733         * modules/unistr/u32-move-tests: New file.
8734         * tests/unistr/test-u32-move.c: New file.
8735
8736         Tests for module 'unistr/u16-move'.
8737         * modules/unistr/u16-move-tests: New file.
8738         * tests/unistr/test-u16-move.c: New file.
8739
8740         Tests for module 'unistr/u8-move'.
8741         * modules/unistr/u8-move-tests: New file.
8742         * tests/unistr/test-u8-move.c: New file.
8743         * tests/unistr/test-move.h: New file.
8744
8745         Tests for module 'unistr/u32-cpy'.
8746         * modules/unistr/u32-cpy-tests: New file.
8747         * tests/unistr/test-u32-cpy.c: New file.
8748
8749         Tests for module 'unistr/u16-cpy'.
8750         * modules/unistr/u16-cpy-tests: New file.
8751         * tests/unistr/test-u16-cpy.c: New file.
8752
8753         Tests for module 'unistr/u8-cpy'.
8754         * modules/unistr/u8-cpy-tests: New file.
8755         * tests/unistr/test-u8-cpy.c: New file.
8756         * tests/unistr/test-cpy.h: New file.
8757
8758 2010-01-09  Bruno Haible  <bruno@clisp.org>
8759
8760         Tests for module 'unistr/u32-uctomb'.
8761         * modules/unistr/u32-uctomb-tests: New file.
8762         * tests/unistr/test-u32-uctomb.c: New file.
8763
8764         Tests for module 'unistr/u16-uctomb'.
8765         * modules/unistr/u16-uctomb-tests: New file.
8766         * tests/unistr/test-u16-uctomb.c: New file.
8767
8768         Tests for module 'unistr/u8-uctomb'.
8769         * modules/unistr/u8-uctomb-tests: New file.
8770         * tests/unistr/test-u8-uctomb.c: New file.
8771
8772         Tests for module 'unistr/u32-mbtoucr'.
8773         * modules/unistr/u32-mbtoucr-tests: New file.
8774         * tests/unistr/test-u32-mbtoucr.c: New file.
8775
8776         Tests for module 'unistr/u16-mbtoucr'.
8777         * modules/unistr/u16-mbtoucr-tests: New file.
8778         * tests/unistr/test-u16-mbtoucr.c: New file.
8779
8780         Tests for module 'unistr/u8-mbtoucr'.
8781         * modules/unistr/u8-mbtoucr-tests: New file.
8782         * tests/unistr/test-u8-mbtoucr.c: New file.
8783
8784         Tests for module 'unistr/u32-mbtouc'.
8785         * modules/unistr/u32-mbtouc-tests: New file.
8786         * tests/unistr/test-u32-mbtouc.c: New file.
8787
8788         Tests for module 'unistr/u16-mbtouc'.
8789         * modules/unistr/u16-mbtouc-tests: New file.
8790         * tests/unistr/test-u16-mbtouc.c: New file.
8791
8792         Tests for module 'unistr/u8-mbtouc'.
8793         * modules/unistr/u8-mbtouc-tests: New file.
8794         * tests/unistr/test-u8-mbtouc.c: New file.
8795
8796         Tests for module 'unistr/u32-mbtouc-unsafe'.
8797         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8798         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8799         * tests/unistr/test-u32-mbtouc.h: New file.
8800
8801         Tests for module 'unistr/u16-mbtouc-unsafe'.
8802         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8803         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8804         * tests/unistr/test-u16-mbtouc.h: New file.
8805
8806         Tests for module 'unistr/u8-mbtouc-unsafe'.
8807         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8808         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8809         * tests/unistr/test-u8-mbtouc.h: New file.
8810
8811         Tests for module 'unistr/u32-mblen'.
8812         * modules/unistr/u32-mblen-tests: New file.
8813         * tests/unistr/test-u32-mblen.c: New file.
8814
8815         Tests for module 'unistr/u16-mblen'.
8816         * modules/unistr/u16-mblen-tests: New file.
8817         * tests/unistr/test-u16-mblen.c: New file.
8818
8819         Tests for module 'unistr/u8-mblen'.
8820         * modules/unistr/u8-mblen-tests: New file.
8821         * tests/unistr/test-u8-mblen.c: New file.
8822
8823         Tests for module 'unistr/u32-to-u16'.
8824         * modules/unistr/u32-to-u16-tests: New file.
8825         * tests/unistr/test-u32-to-u16.c: New file.
8826
8827         Tests for module 'unistr/u32-to-u8'.
8828         * modules/unistr/u32-to-u8-tests: New file.
8829         * tests/unistr/test-u32-to-u8.c: New file.
8830
8831         Tests for module 'unistr/u16-to-u32'.
8832         * modules/unistr/u16-to-u32-tests: New file.
8833         * tests/unistr/test-u16-to-u32.c: New file.
8834
8835         Tests for module 'unistr/u16-to-u8'.
8836         * modules/unistr/u16-to-u8-tests: New file.
8837         * tests/unistr/test-u16-to-u8.c: New file.
8838
8839         Tests for module 'unistr/u8-to-u32'.
8840         * modules/unistr/u8-to-u32-tests: New file.
8841         * tests/unistr/test-u8-to-u32.c: New file.
8842
8843         Tests for module 'unistr/u8-to-u16'.
8844         * modules/unistr/u8-to-u16-tests: New file.
8845         * tests/unistr/test-u8-to-u16.c: New file.
8846
8847         Tests for module 'unistr/u32-check'.
8848         * modules/unistr/u32-check-tests: New file.
8849         * tests/unistr/test-u32-check.c: New file.
8850
8851         Tests for module 'unistr/u16-check'.
8852         * modules/unistr/u16-check-tests: New file.
8853         * tests/unistr/test-u16-check.c: New file.
8854
8855         Tests for module 'unistr/u8-check'.
8856         * modules/unistr/u8-check-tests: New file.
8857         * tests/unistr/test-u8-check.c: New file.
8858
8859         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8860         (category_equals): New function.
8861         (main): Add more tests.
8862         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8863
8864         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8865
8866 2010-01-10  Bruno Haible  <bruno@clisp.org>
8867
8868         unistr/u*-strcoll: Try harder to distinguish different strings.
8869         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8870         compare s1 and s2 to see if they are different.
8871
8872 2010-01-10  Bruno Haible  <bruno@clisp.org>
8873
8874         unistr/u*-stpncpy: Fix the return value.
8875         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8876         description of the return value consistent with stpncpy in glibc.
8877         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8878         written non-NUL unit.
8879
8880 2010-01-10  Bruno Haible  <bruno@clisp.org>
8881
8882         unistr/u*-next: Add missing dependencies.
8883         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8884         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8885         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8886
8887 2010-01-10  Bruno Haible  <bruno@clisp.org>
8888
8889         unistr/u8-mbsnlen: Fix return value for incomplete character.
8890         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8891         u8_mblen.
8892         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8893         Remove unistr/u8-mblen.
8894         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8895         u16_mblen.
8896         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8897         Remove unistr/u16-mblen.
8898
8899 2010-01-10  Bruno Haible  <bruno@clisp.org>
8900
8901         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8902         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8903         Reported by Brian Gough <bjg@gnu.org> and
8904         Chris Clayton <chris2553@googlemail.com> via
8905         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8906
8907 2010-01-09  Bruno Haible  <bruno@clisp.org>
8908
8909         unistr/u16-to-u32: Reject invalid input.
8910         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8911         u16_mbtouc.
8912         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8913         Remove unistr/u16-mbtouc.
8914
8915         unistr/u16-to-u8: Reject invalid input.
8916         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8917         u16_mbtouc.
8918         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8919         Remove unistr/u16-mbtouc.
8920
8921         unistr/u8-to-u32: Reject invalid input.
8922         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8923         u8_mbtouc.
8924         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8925         Remove unistr/u8-mbtouc.
8926
8927         unistr/u8-to-u16: Reject invalid input.
8928         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8929         u8_mbtouc.
8930         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8931         Remove unistr/u8-mbtouc.
8932
8933 2010-01-09  Bruno Haible  <bruno@clisp.org>
8934
8935         Tests for module 'getlogin'.
8936         * modules/getlogin-tests: New file.
8937         * tests/test-getlogin.c: New file.
8938
8939         New module 'getlogin'.
8940         * lib/unistd.in.h (getlogin): New declaration.
8941         * lib/getlogin.c: New file.
8942         * m4/getlogin.m4: New file.
8943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8944         HAVE_GETLOGIN.
8945         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8946         HAVE_GETLOGIN.
8947         * modules/getlogin: New file.
8948         * doc/posix-functions/getlogin.texi: Mention the new module.
8949         Reported by John W. Eaton <jwe@gnu.org>.
8950
8951 2010-01-09  Bruno Haible  <bruno@clisp.org>
8952
8953         getlogin_r: Support for native Windows.
8954         * lib/getlogin_r.c: Include <windows.h>
8955         (getlogin_r): Implement for native Windows.
8956         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8957         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8958         via John W. Eaton <jwe@gnu.org>.
8959
8960 2010-01-09  Bruno Haible  <bruno@clisp.org>
8961
8962         getlogin_r: Small fixes.
8963         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8964         succeeds.
8965         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8966         before testing whether getlogin_r is declared. No need to set
8967         HAVE_DECL_GETLOGIN_R to 1.
8968         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8969
8970 2010-01-09  Bruno Haible  <bruno@clisp.org>
8971
8972         * lib/unistd.in.h (getlogin_r): Add comment.
8973
8974 2010-01-09  Bruno Haible  <bruno@clisp.org>
8975
8976         Tests for module 'getlogin_r'.
8977         * modules/getlogin_r-tests: New file.
8978         * tests/test-getlogin_r.c: New file.
8979
8980 2010-01-09  Jim Meyering  <meyering@redhat.com>
8981
8982         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8983         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8984         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8985
8986 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8987
8988         * lib/dup2.c (rpl_dup2): Improve comment.
8989
8990 2010-01-08  Eric Blake  <ebb9@byu.net>
8991
8992         maint.mk: allow packages to add makefile @@ exceptions
8993         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8994         (sc_makefile_check): Rename...
8995         (sc_makefile_at_at_check): ...to this, and use hook.
8996
8997         dup2: work around mingw bug
8998         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8999         Reported by Simon Josefsson.
9000
9001 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9002
9003         glob: Fix C++ compilation.
9004         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9005         C++.
9006
9007 2010-01-07  Bruno Haible  <bruno@clisp.org>
9008
9009         Fix indentation of wctype.in.h, broken since 2007-01-06.
9010         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9011
9012 2010-01-07  Bruno Haible  <bruno@clisp.org>
9013
9014         mbslen: Avoid collision with system function.
9015         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9016         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9017         * m4/mbslen.m4: New file.
9018         * modules/mbslen (Files): Add it.
9019         (configure.ac): Invoke gl_MBSLEN.
9020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9021         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9022         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9023         via Ian Beckwith <ianb@erislabs.net>.
9024
9025 2010-01-07  Bruno Haible  <bruno@clisp.org>
9026
9027         dirent: Document the last fix.
9028         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9029
9030 2010-01-07  Bruno Haible  <bruno@clisp.org>
9031
9032         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9033         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9034         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9035         va_list are defined.
9036         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9037         Reported by Eric Blake.
9038
9039 2010-01-07  Bruno Haible  <bruno@clisp.org>
9040
9041         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9042         * modules/xlist (Depends-on): Add 'list',
9043         * modules/xoset (Depends-on): Add 'oset'.
9044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9045
9046 2010-01-07  Bruno Haible  <bruno@clisp.org>
9047
9048         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9049         * doc/posix-functions/strncasecmp.texi: Likewise.
9050
9051 2010-01-07  Bruno Haible  <bruno@clisp.org>
9052
9053         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9054
9055 2010-01-07  John W. Eaton  <jwe@octave.org>
9056
9057         wctype: allow C++ use
9058         * lib/wctype.in.h: Add extern "C" block for C++.
9059
9060 2010-01-06  Eric Blake  <ebb9@byu.net>
9061
9062         maint.mk: detect incorrect GFDL usage
9063         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9064
9065 2010-01-06  Jim Meyering  <meyering@redhat.com>
9066         and Eric Blake  <ebb9@byu.net>
9067
9068         maint.mk: ignore multi-line copyright in NEWS
9069         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9070
9071 2010-01-06  Eric Blake  <ebb9@byu.net>
9072
9073         select: add missing dependency
9074         * modules/select-tests (Depends-on): Move sockets dependency...
9075         * modules/select (Depends-on): ...here.
9076         Reported by Ian Beckwith.
9077
9078         doc: regenerate INSTALL
9079         * doc/INSTALL: Reflect recent autoconf update.
9080         * doc/INSTALL.ISO: Likewise.
9081         * doc/INSTALL.UTF-8: Likewise.
9082
9083         pread: fix compilation on glibc
9084         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9085         Reported by Ralf Wildenhues.
9086
9087         dirent: fix test failure
9088         * lib/dirent.in.h (includes): Guarantee ino_t.
9089         Reported by Ralf Wildenhues.
9090
9091 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9092
9093         linkat, renameat: avoid bad free
9094         * lib/at-func2.c (at_func2): Fix typo.
9095         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9096
9097 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9098
9099         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9100         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9101         to avoid failure of symlink test later.
9102
9103 2010-01-06  Eric Blake  <ebb9@byu.net>
9104
9105         stdio, unistd: guarantee ssize_t
9106         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9107         2008 are exposed when needed.
9108         * lib/stdio.in.h (includes): Likewise.
9109         Reported by Ralf Wildenhues.
9110
9111 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9112
9113         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9114         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9115         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9116
9117 2010-01-06  Jim Meyering  <meyering@redhat.com>
9118
9119         readtokens: this module *does* require xalloc.h
9120         It uses only functions that were omitted by the old syntax-check rule.
9121         * lib/readtokens.c: Include "xalloc.h" once again.
9122         * modules/readtokens (Depends-on): Add xalloc.
9123         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9124
9125 2010-01-05  Eric Blake  <ebb9@byu.net>
9126
9127         maint: support 'make announcement' from a VPATH build
9128         * top/maint.mk (announcement): Look for correct NEWS file.
9129
9130 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9131
9132         utimens (fdutimens): ignore a negative FD, per contract
9133         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9134         when we have a valid file descriptor.  Otherwise, using a brand
9135         new glibc (with just-patched futimens that now fails with EBADF)
9136         would cause this function to fail with ENOSYS.
9137         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9138         See also http://bugzilla.redhat.com/552320.
9139
9140 2010-01-05  Eric Blake  <ebb9@byu.net>
9141
9142         strcase: document what it provides
9143         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9144         gnulib module.
9145         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9146         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9147
9148 2010-01-05  Jim Meyering  <meyering@redhat.com>
9149
9150         maint: remove useless inclusions of "xalloc.h"
9151         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9152         * lib/readtokens.c: Likewise.
9153         * lib/same.c: Likewise.
9154         * modules/getloadavg (Depends-on): Remove xalloc.
9155         * modules/readtokens: Likewise.
9156         * modules/same: Likewise.
9157
9158         maint.mk: include 4 more function names in alloca.h-checking regexp
9159         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9160         regexp.  Before, we would give a false-positive (saying alloca.h
9161         is included unnecessarily) when the only uses involved omitted symbols.
9162
9163         xalloc.h: use consistent formatting
9164         * lib/xalloc.h: Move declarations to start in the first column.
9165
9166 2010-01-05  Eric Blake  <ebb9@byu.net>
9167
9168         mkdir: avoid xalloc
9169         * lib/mkdir.c (includes): Drop unused header.
9170         Reported by John W. Eaton.
9171
9172 2010-01-04  Jim Meyering  <meyering@redhat.com>
9173
9174         nl_langinfo: avoid configure-time syntax error
9175         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9176         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9177         the empty string.  Don't let that provoke a shell syntax error.
9178
9179         regcomp, regexec, fnmatch: avoid array bounds read error
9180         * lib/regcomp.c (build_equiv_class): From glibc:
9181         Use only the low 24 bits of a findidx return value as an index
9182         into the weights array.  Patch by Ulrich Drepper:
9183         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9184         * lib/regexec.c (check_node_accept_bytes): Likewise.
9185         * lib/fnmatch_loop.c (FCT): Likewise.
9186
9187         regcomp: skip collseq lookup when there are no rules
9188         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9189         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9190
9191         regcomp: recognize ill-formed { } expressions
9192         * lib/regcomp.c (parse_dup_op): From glibc:
9193         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9194
9195         regcomp: fix typo in comment
9196         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9197         s/satisfy/satisfies/.
9198
9199         regcomp: sync from glibc: remove dead store
9200         * lib/regcomp.c (duplicate_node_closure): Remove useless
9201         search_duplicated_node call and dead store.
9202
9203         regcomp: sync from glibc; always use nl_langinfo
9204         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9205         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9206         * modules/regex (Depends-on): Add nl_langinfo.
9207
9208 2010-01-04  Eric Blake  <ebb9@byu.net>
9209
9210         fdopendir: fix configure test
9211         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9212
9213 2010-01-01  Bruno Haible  <bruno@clisp.org>
9214
9215         wchar: Remove unused configure check.
9216         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9217
9218 2010-01-01  Eric Blake  <ebb9@byu.net>
9219
9220         headers: make check of system header explicit
9221         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9222         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9223         ourselves.
9224         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9227         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9228         internals.
9229         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9230         missing.
9231         Suggested by Bruno Haible.
9232
9233 2010-01-01  Jim Meyering  <meyering@redhat.com>
9234
9235         ChangeLog: tweak to eliminate unnecessary copyright line
9236         * ChangeLog: Remove a copyright line that was mistakenly updated
9237         by today's update-copyright run.  Reported by Eric Blake.
9238
9239         test-update-copyright: don't let envvar setting cause test failure
9240         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9241
9242 2010-01-01  Bruno Haible  <bruno@clisp.org>
9243
9244         localename: Avoid gcc warning.
9245         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9246         function if it is not used.
9247
9248 2010-01-01  Jim Meyering  <meyering@redhat.com>
9249
9250         update nearly all FSF copyright year lists to include 2010
9251         Use the same procedure as for 2009, outlined in
9252         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9253
9254         version-etc: set COPYRIGHT_YEAR to 2010
9255         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9256
9257 2009-12-31  Eric Blake  <ebb9@byu.net>
9258
9259         doc: correct availability of cygwin 1.5.x getopt
9260         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9261         variables.
9262         * doc/posix-functions/opterr.texi (opterr): Likewise.
9263         * doc/posix-functions/optind.texi (optind): Likewise.
9264         * doc/posix-functions/optopt.texi (optopt): Likewise.
9265         * doc/posix-functions/tzname.texi (tzname): Likewise.
9266
9267         openat: update maintainer
9268         * modules/openat (Maintainer): Add myself.
9269
9270         utimens: avoid shadowing warning
9271         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9272         buffers into one, to avoid shadowing, as well as avoiding a
9273         redundant stat.
9274         Reported by Jim Meyering.
9275
9276         test-dup2: avoid compiler warning
9277         * tests/test-dup2.c (is_inheritable): Only define if used.
9278
9279 2010-01-01  Bruno Haible  <bruno@clisp.org>
9280
9281         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9282         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9283         defined, use wctomb instead of wcrtomb.
9284
9285 2010-01-01  Bruno Haible  <bruno@clisp.org>
9286
9287         iconv: Reject native Solaris iconv.
9288         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9289         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9290
9291 2009-12-31  Bruno Haible  <bruno@clisp.org>
9292
9293         * tests/test-signal.c (main): Remove test of 'SIG'.
9294
9295 2009-12-31  Bruno Haible  <bruno@clisp.org>
9296
9297         spawn: Fix incomplete fix.
9298         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9299         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9300         warnings for GNULIB_POSIXCHECK again.
9301         Reported by Eric Blake.
9302
9303 2009-12-31  Bruno Haible  <bruno@clisp.org>
9304
9305         Avoid namespace pollution on glibc systems.
9306         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9307         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9308         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9309         glibc systems.
9310
9311 2009-12-31  Bruno Haible  <bruno@clisp.org>
9312
9313         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9314         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9315         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9316         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9317         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9318         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9319         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9320
9321 2009-12-31  Bruno Haible  <bruno@clisp.org>
9322
9323         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9324         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9325         afterwards.
9326
9327 2009-12-31  Bruno Haible  <bruno@clisp.org>
9328
9329         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9330         SYS_UTSNAME_H.
9331
9332 2009-12-31  Bruno Haible  <bruno@clisp.org>
9333
9334         spawn: Fix misapplied patch.
9335         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9336         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9337         warnings for GNULIB_POSIXCHECK.
9338
9339 2009-12-31  Bruno Haible  <bruno@clisp.org>
9340
9341         times: Update after sys_times changed.
9342         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9343         * modules/times (Files): Add it.
9344         (configure.ac): Invoke gl_FUNC_TIMES.
9345
9346 2009-12-31  Bruno Haible  <bruno@clisp.org>
9347
9348         Use AC_C_INLINE where necessary.
9349         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9351         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9352         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9353         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9354         * m4/mbiter.m4 (gl_MBITER): Likewise.
9355         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9356         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9357         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9358         * modules/u64 (configure.ac): Likewise.
9359
9360 2009-12-31  Bruno Haible  <bruno@clisp.org>
9361
9362         Use AC_C_INLINE instead of module 'inline' where possible.
9363         * modules/inline (Description): Clarify purpose.
9364         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9365         * modules/count-one-bits (Depends-on): Remove inline.
9366         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9367         * modules/openat (Depends-on): Remove inline.
9368         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9369         instead of depending on module 'inline'.
9370         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9371         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9372         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9373         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9374         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9375         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9376         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9377         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9378         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9379         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9380         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9381         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9382         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9383         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9384         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9385         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9386         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9387         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9388         Likewise.
9389         * modules/unictype/property-ascii-hex-digit (Depends-on,
9390         configure.ac): Likewise.
9391         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9392         configure.ac): Likewise.
9393         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9394         configure.ac): Likewise.
9395         * modules/unictype/property-bidi-block-separator (Depends-on,
9396         configure.ac): Likewise.
9397         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9398         configure.ac): Likewise.
9399         * modules/unictype/property-bidi-common-separator (Depends-on,
9400         configure.ac): Likewise.
9401         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9402         Likewise.
9403         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9404         configure.ac): Likewise.
9405         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9406         configure.ac): Likewise.
9407         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9408         configure.ac): Likewise.
9409         * modules/unictype/property-bidi-european-digit (Depends-on,
9410         configure.ac): Likewise.
9411         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9412         configure.ac): Likewise.
9413         * modules/unictype/property-bidi-left-to-right (Depends-on,
9414         configure.ac): Likewise.
9415         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9416         configure.ac): Likewise.
9417         * modules/unictype/property-bidi-other-neutral (Depends-on,
9418         configure.ac): Likewise.
9419         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9420         Likewise.
9421         * modules/unictype/property-bidi-segment-separator (Depends-on,
9422         configure.ac): Likewise.
9423         * modules/unictype/property-bidi-whitespace (Depends-on,
9424         configure.ac): Likewise.
9425         * modules/unictype/property-combining (Depends-on, configure.ac):
9426         Likewise.
9427         * modules/unictype/property-composite (Depends-on, configure.ac):
9428         Likewise.
9429         * modules/unictype/property-currency-symbol (Depends-on,
9430         configure.ac): Likewise.
9431         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9432         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9433         Likewise.
9434         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9435         configure.ac): Likewise.
9436         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9437         Likewise.
9438         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9439         Likewise.
9440         * modules/unictype/property-extender (Depends-on, configure.ac):
9441         Likewise.
9442         * modules/unictype/property-format-control (Depends-on, configure.ac):
9443         Likewise.
9444         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9445         Likewise.
9446         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9447         Likewise.
9448         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9449         Likewise.
9450         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9451         Likewise.
9452         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9453         Likewise.
9454         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9455         Likewise.
9456         * modules/unictype/property-id-start (Depends-on, configure.ac):
9457         Likewise.
9458         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9459         Likewise.
9460         * modules/unictype/property-ids-binary-operator (Depends-on,
9461         configure.ac): Likewise.
9462         * modules/unictype/property-ids-trinary-operator (Depends-on,
9463         configure.ac): Likewise.
9464         * modules/unictype/property-ignorable-control (Depends-on,
9465         configure.ac): Likewise.
9466         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9467         Likewise.
9468         * modules/unictype/property-join-control (Depends-on, configure.ac):
9469         Likewise.
9470         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9471         Likewise.
9472         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9473         Likewise.
9474         * modules/unictype/property-logical-order-exception (Depends-on,
9475         configure.ac): Likewise.
9476         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9477         Likewise.
9478         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9479         * modules/unictype/property-non-break (Depends-on, configure.ac):
9480         Likewise.
9481         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9482         Likewise.
9483         * modules/unictype/property-numeric (Depends-on, configure.ac):
9484         Likewise.
9485         * modules/unictype/property-other-alphabetic (Depends-on,
9486         configure.ac): Likewise.
9487         * modules/unictype/property-other-default-ignorable-code-point
9488         (Depends-on, configure.ac): Likewise.
9489         * modules/unictype/property-other-grapheme-extend (Depends-on,
9490         configure.ac): Likewise.
9491         * modules/unictype/property-other-id-continue (Depends-on,
9492         configure.ac): Likewise.
9493         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9494         Likewise.
9495         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9496         Likewise.
9497         * modules/unictype/property-other-math (Depends-on, configure.ac):
9498         Likewise.
9499         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9500         Likewise.
9501         * modules/unictype/property-paired-punctuation (Depends-on,
9502         configure.ac): Likewise.
9503         * modules/unictype/property-paragraph-separator (Depends-on,
9504         configure.ac): Likewise.
9505         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9506         Likewise.
9507         * modules/unictype/property-pattern-white-space (Depends-on,
9508         configure.ac): Likewise.
9509         * modules/unictype/property-private-use (Depends-on, configure.ac):
9510         Likewise.
9511         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9512         Likewise.
9513         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9514         Likewise.
9515         * modules/unictype/property-radical (Depends-on, configure.ac):
9516         Likewise.
9517         * modules/unictype/property-sentence-terminal (Depends-on,
9518         configure.ac): Likewise.
9519         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9520         Likewise.
9521         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9522         * modules/unictype/property-terminal-punctuation (Depends-on,
9523         configure.ac): Likewise.
9524         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9525         Likewise.
9526         * modules/unictype/property-unassigned-code-value (Depends-on,
9527         configure.ac): Likewise.
9528         * modules/unictype/property-unified-ideograph (Depends-on,
9529         configure.ac): Likewise.
9530         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9531         Likewise.
9532         * modules/unictype/property-variation-selector (Depends-on,
9533         configure.ac): Likewise.
9534         * modules/unictype/property-white-space (Depends-on, configure.ac):
9535         Likewise.
9536         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9537         Likewise.
9538         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9539         Likewise.
9540         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9541         Likewise.
9542         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9543         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9544         Likewise.
9545
9546 2009-12-31  Bruno Haible  <bruno@clisp.org>
9547
9548         Remove unnecessary AC_C_INLINE invocation.
9549         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9550         since 2009-08-21.
9551
9552 2009-12-31  Jim Meyering  <meyering@redhat.com>
9553
9554         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9555         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9556         With this change, we can all remove the gpg_key_ID = ... definition
9557         from our respective cfg.mk files.
9558
9559         maint.mk: create announcement template in ~/, not in /tmp
9560         * top/maint.mk (emit_upload_commands): Adjust.
9561         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9562         Remove temporary file, .ci-msg.
9563
9564 2009-12-31  Eric Blake  <ebb9@byu.net>
9565
9566         link-warning: always build headers with link warnings
9567         * modules/arpa_inet (Makefile.am): Always build replacement
9568         header.
9569         * modules/ctype (Makefile.am): Likewise.
9570         * modules/dirent (Makefile.am): Likewise.
9571         * modules/inttypes (Makefile.am): Likewise.
9572         * modules/langinfo (Makefile.am): Likewise.
9573         * modules/locale (Makefile.am): Likewise.
9574         * modules/spawn (Makefile.am): Likewise.
9575         * modules/sys_file (Makefile.am): Likewise.
9576         * modules/sys_ioctl (Makefile.am): Likewise.
9577         * modules/sys_select (Makefile.am): Likewise.
9578         * modules/sys_socket (Makefile.am): Likewise.
9579         * modules/sys_times (Makefile.am): Likewise.
9580         * modules/sys_utsname (Makefile.am): Likewise.
9581         * modules/sys_wait (Makefile.am): Likewise.
9582         * modules/wchar (Makefile.am): Likewise.
9583         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9584         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9585         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9586         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9587         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9588         Likewise.
9589         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9590         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9591         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9592         Likewise.
9593         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9594         Likewise.
9595         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9597         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9598         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9599         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9600         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9601         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9602         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9603         (gl_WCHAR_H_DEFAULTS): Likewise.
9604
9605 2009-12-31  Eric Blake  <ebb9@byu.net>
9606
9607         signal, spawn: use link warnings
9608         * lib/signal.in.h (sigset_t): Make unconditional.
9609         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9610         (sigpending, sigprocmask, sigaction): Add link warnings.
9611         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9612         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9613         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9614         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9615         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9616         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9617         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9618         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9619         (posix_spawn_file_actions_destroy)
9620         (posix_spawn_file_actions_addopen)
9621         (posix_spawn_file_actions_addclose)
9622         (posix_spawn_file_actions_adddup2): Likewise.
9623         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9624         * tests/test-signal.c (main): Enhance test.
9625
9626         spawn: improve wrapper support
9627         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9628         (gl_SPAWN_H_DEFAULTS): New defaults.
9629         * modules/spawn (Makefile.am): Substitute them.
9630         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9631         Only declare if missing or broken.
9632
9633         sys_times, sys_utsname: use include_next
9634         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9635         header.
9636         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9638         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9639         * modules/sys_times (Depends-on): Add include_next.
9640         (Makefile.am): Substitute additional values.
9641         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9642         * lib/sys_times.in.h (includes): Include native header, if
9643         available.
9644         * lib/sys_utsname.in.h (includes): Likewise.
9645         * tests/test-sys_times.c (main): Enhance test.
9646
9647         fdutimensat: revert prior patch
9648         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9649         utimens.h.
9650         Reported by Bruno Haible.
9651
9652 2009-12-30  Eric Blake  <ebb9@byu.net>
9653
9654         sys_wait: drop link-warning dependency
9655         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9656         link-warning efforts.
9657         * lib/sys_wait.in.h: Likewise.
9658
9659         fdutimensat: remove bogus dependency
9660         * modules/fdutimensat (Depends-on): Drop inline.
9661
9662         unistd: fix typo
9663         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9664
9665 2009-12-30  Bruno Haible  <bruno@clisp.org>
9666
9667         Fix compilation error with Solaris cc.
9668         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9669         * lib/unicase/u16-is-invariant.c: Likewise.
9670         * lib/unicase/u32-is-invariant.c: Likewise.
9671         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9672
9673 2009-12-30  Bruno Haible  <bruno@clisp.org>
9674
9675         Fix test crash.
9676         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9677         locales.
9678         Reported by Simon Josefsson <simon@josefsson.org>.
9679
9680 2009-12-30  Bruno Haible  <bruno@clisp.org>
9681
9682         Fix compilation error on most platforms.
9683         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9684         Reported by Simon Josefsson <simon@josefsson.org>
9685         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9686
9687 2009-12-30  Eric Blake  <ebb9@byu.net>
9688
9689         futimens, utimensat: work around ntfs-3g bug
9690         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9691         a ctime bug is present, and expand workaround to cover ntfs-3g.
9692         * lib/utimens.c (fdutimens, lutimens): Likewise.
9693         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9694         (validate_timespec): Adjust return value.
9695         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9696         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9697         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9698
9699 2009-12-29  Eric Blake  <ebb9@byu.net>
9700
9701         link-warning: make usage consistent
9702         * modules/ctype (Depends-on): Add link-warning.
9703         (Makefile.am): Update rules accordingly.
9704         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9705         * modules/locale (Depends-on, Makefile.am): Likewise.
9706         * modules/sys_file (Makefile.am): Likewise.
9707         * modules/getopt-posix (Makefile.am): Delete unused link warning
9708         efforts.
9709         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9710         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9711         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9712         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9713
9714         stdio: remove unused variables
9715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9717         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9718
9719         tests: test more substitute headers
9720         * modules/ctype-tests: New file.
9721         * modules/dirent-tests: Likewise.
9722         * modules/spawn-tests: Likewise.
9723         * modules/sys_file-tests: Likewise.
9724         * modules/sys_ioctl-tests: Likewise.
9725         * modules/sys_wait-tests: Likewise.
9726         * tests/test-ctype.c: Likewise.
9727         * tests/test-dirent.c: Likewise.
9728         * tests/test-spawn.c: Likewise.
9729         * tests/test-sys_file.c: Likewise.
9730         * tests/test-sys_ioctl.c: Likewise.
9731         * tests/test-sys_wait.c: Likewise.
9732         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9733         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9734         whether or not flock is in use.
9735
9736         tests: remove License section from module
9737         * modules/arpa_inet-tests: Remove unneeded section.
9738         * modules/byteswap-tests: Likewise.
9739         * modules/ceilf-tests: Likewise.
9740         * modules/ceill-tests: Likewise.
9741         * modules/crypto/des-tests: Likewise.
9742         * modules/crypto/gc-arcfour-tests: Likewise.
9743         * modules/crypto/gc-arctwo-tests: Likewise.
9744         * modules/crypto/gc-des-tests: Likewise.
9745         * modules/crypto/gc-hmac-md5-tests: Likewise.
9746         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9747         * modules/crypto/gc-md2-tests: Likewise.
9748         * modules/crypto/gc-md4-tests: Likewise.
9749         * modules/crypto/gc-md5-tests: Likewise.
9750         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9751         * modules/crypto/gc-rijndael-tests: Likewise.
9752         * modules/crypto/gc-sha1-tests: Likewise.
9753         * modules/crypto/gc-tests: Likewise.
9754         * modules/crypto/md2-tests: Likewise.
9755         * modules/crypto/md4-tests: Likewise.
9756         * modules/fcntl-h-tests: Likewise.
9757         * modules/floorf-tests: Likewise.
9758         * modules/floorl-tests: Likewise.
9759         * modules/frexp-nolibm-tests: Likewise.
9760         * modules/frexp-tests: Likewise.
9761         * modules/frexpl-nolibm-tests: Likewise.
9762         * modules/frexpl-tests: Likewise.
9763         * modules/getaddrinfo-tests: Likewise.
9764         * modules/inttypes-tests: Likewise.
9765         * modules/isfinite-tests: Likewise.
9766         * modules/isinf-tests: Likewise.
9767         * modules/ldexpl-tests: Likewise.
9768         * modules/locale-tests: Likewise.
9769         * modules/math-tests: Likewise.
9770         * modules/netdb-tests: Likewise.
9771         * modules/netinet_in-tests: Likewise.
9772         * modules/printf-frexp-tests: Likewise.
9773         * modules/printf-frexpl-tests: Likewise.
9774         * modules/priv-set-tests: Likewise.
9775         * modules/random_r-tests: Likewise.
9776         * modules/round-tests: Likewise.
9777         * modules/roundf-tests: Likewise.
9778         * modules/roundl-tests: Likewise.
9779         * modules/search-tests: Likewise.
9780         * modules/select-tests: Likewise.
9781         * modules/signal-tests: Likewise.
9782         * modules/stdbool-tests: Likewise.
9783         * modules/stddef-tests: Likewise.
9784         * modules/stdint-tests: Likewise.
9785         * modules/stdio-tests: Likewise.
9786         * modules/stdlib-tests: Likewise.
9787         * modules/string-tests: Likewise.
9788         * modules/strings-tests: Likewise.
9789         * modules/sys_select-tests: Likewise.
9790         * modules/sys_socket-tests: Likewise.
9791         * modules/sys_stat-tests: Likewise.
9792         * modules/sys_time-tests: Likewise.
9793         * modules/sys_utsname-tests: Likewise.
9794         * modules/sysexits-tests: Likewise.
9795         * modules/time-tests: Likewise.
9796         * modules/trunc-tests: Likewise.
9797         * modules/truncf-tests: Likewise.
9798         * modules/truncl-tests: Likewise.
9799         * modules/tsearch-tests: Likewise.
9800         * modules/unistd-tests: Likewise.
9801         * modules/wchar-tests: Likewise.
9802         * modules/wctype-tests: Likewise.
9803
9804         tests: fix license on several tests
9805         * tests/test-des.c: Update to GPLv3+.
9806         * tests/test-flock.c: Likewise.
9807         * tests/test-fsync.c: Likewise.
9808         * tests/test-futimens.h: Likewise.
9809         * tests/test-gc-arcfour.c: Likewise.
9810         * tests/test-gc-arctwo.c: Likewise.
9811         * tests/test-gc-des.c: Likewise.
9812         * tests/test-gc-hmac-md5.c: Likewise.
9813         * tests/test-gc-hmac-sha1.c: Likewise.
9814         * tests/test-gc-md2.c: Likewise.
9815         * tests/test-gc-md4.c: Likewise.
9816         * tests/test-gc-md5.c: Likewise.
9817         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9818         * tests/test-gc-rijndael.c: Likewise.
9819         * tests/test-gc-sha1.c: Likewise.
9820         * tests/test-gc.c: Likewise.
9821         * tests/test-getcwd.c: Likewise.
9822         * tests/test-link.c: Likewise.
9823         * tests/test-link.h: Likewise.
9824         * tests/test-lutimens.h: Likewise.
9825         * tests/test-md2.c: Likewise.
9826         * tests/test-md4.c: Likewise.
9827         * tests/test-mkdir.h: Likewise.
9828         * tests/test-rename.c: Likewise.
9829         * tests/test-rename.h: Likewise.
9830         * tests/test-safe-alloc.c: Likewise.
9831         * tests/test-utimens-common.h: Likewise.
9832         * tests/test-utimens.h: Likewise.
9833
9834         maint: sync license texts
9835         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9836         * doc/gpl-3.0.texi: Revert copyright year update.
9837         * doc/lgpl-3.0.texi: Likewise.
9838
9839 2009-12-29  Jim Meyering  <meyering@redhat.com>
9840
9841         update nearly all FSF copyright year lists to include 2009
9842         The files named by the following are exempted:
9843             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9844               test -f "$dst" && { echo "$dst"; continue; }
9845               test -d "$dst" || continue
9846               echo "$dst"/$(basename "$src")
9847             done > exempt
9848             git ls-files tests/unictype >> exempt
9849         In the remaining files, convert to all-interval notation if
9850         - there is already at least one year interval like 2000-2003
9851         - the file is maintained by me
9852         - the file is in lib/uni*/, where that style already prevails
9853         Otherwise, use update-copyright's default.
9854
9855 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9856         and Eric Blake  <ebb9@byu.net>
9857
9858         tests: don't require debug system() to pass
9859         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9860         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9861         * tests/test-unlink.h (test_unlink_func): Likewise.
9862         * tests/test-fstatat.c (main): ...into callers.
9863         * tests/test-lstat.c (main): Likewise.
9864         * tests/test-rmdir.c (main): Likewise.
9865         * tests/test-unlink.c (main): Likewise.
9866         * tests/test-unlinkat.c (main): Likewise.
9867         * tests/test-areadlink-with-size.c (main): Don't require a
9868         debug-only system call to pass, aiding cross-testing to mingw.
9869         * tests/test-areadlink.c (main): Likewise.
9870         * tests/test-areadlinkat-with-size.c (main): Likewise.
9871         * tests/test-areadlinkat.c (main): Likewise.
9872         * tests/test-canonicalize-lgpl.c (main): Likewise.
9873         * tests/test-canonicalize.c (main): Likewise.
9874         * tests/test-chown.c (main): Likewise.
9875         * tests/test-fchownat.c (main): Likewise.
9876         * tests/test-lchown.c (main): Likewise.
9877         * tests/test-fdutimensat.c (main): Likewise.
9878         * tests/test-futimens.c (main): Likewise.
9879         * tests/test-link.c (main): Likewise.
9880         * tests/test-linkat.c (main): Likewise.
9881         * tests/test-mkdir.c (main): Likewise.
9882         * tests/test-mkdirat.c (main): Likewise.
9883         * tests/test-mkfifo.c (main): Likewise.
9884         * tests/test-mkfifoat.c (main): Likewise.
9885         * tests/test-mknod.c (main): Likewise.
9886         * tests/test-readlink.c (main): Likewise.
9887         * tests/test-remove.c (main): Likewise.
9888         * tests/test-rename.c (main): Likewise.
9889         * tests/test-renameat.c (main): Likewise.
9890         * tests/test-symlink.c (main): Likewise.
9891         * tests/test-symlinkat.c (main): Likewise.
9892         * tests/test-utimens.c (main): Likewise.
9893         * tests/test-utimensat.c (main): Likewise.
9894
9895 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9896
9897         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9898         on $(UNUSED_PARAMETER_H) to avoid build failure.
9899
9900 2009-12-28  Jim Meyering  <meyering@redhat.com>
9901
9902         update-copyright: you may specify a max. line length other than 72
9903         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9904
9905         maint: use consistent FSF copyright line syntax
9906         * lib/posixtm.c: Add missing comma in FSF copyright line.
9907         * lib/posixtm.h: Likewise.
9908         * lib/getugroups.c: Add missing ", Inc.".
9909
9910         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9911         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9912         FSF copyright line.  Remove trailing blanks.
9913
9914 2009-12-28  Eric Blake  <ebb9@byu.net>
9915
9916         test-dup2: reduce dependencies
9917         * modules/cloexec (Configure.ac): Set witness.
9918         * modules/dup2-tests (Depends-on): Drop cloexec.
9919         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9920         not present.
9921         Suggested by Bruno Haible.
9922
9923 2009-12-26  Bruno Haible  <bruno@clisp.org>
9924
9925         Remove an unneeded dependency.
9926         * modules/fseterr (Depends-on): Remove dup2.
9927
9928 2009-12-26  Eric Blake  <ebb9@byu.net>
9929
9930         tests: use macros.h in more places
9931         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9932         (ASSERT_STREAM): Provide default of stderr.
9933         * tests/test-dirent-safer.c: Include macros.h, using alternate
9934         stream for assertions.
9935         * tests/test-dup-safer.c: Likewise.
9936         * tests/test-freopen-safer.c: Likewise.
9937         * tests/test-getopt.c: Likewise.
9938         * tests/test-openat-safer.c: Likewise.
9939         * tests/test-pipe.c: Likewise.
9940         * tests/test-popen-safer.c: Likewise.
9941         * modules/dirent-safer-tests (Files): Include macros.h.
9942         * modules/unistd-safer-tests (Files): Likewise.
9943         * modules/freopen-safer-tests (Files): Likewise.
9944         * modules/getopt-posix-tests (Files): Likewise.
9945         * modules/openat-safer-tests (Files): Likewise.
9946         * modules/pipe-tests (Files): Likewise.
9947
9948 2009-12-26  Bruno Haible  <bruno@clisp.org>
9949
9950         javacomp: Portability fix.
9951         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9952         that it also works on Solaris.
9953
9954 2009-12-26  Bruno Haible  <bruno@clisp.org>
9955
9956         localename: Fix storage allocation of gl_locale_name_thread's result.
9957         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9958         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9959         all platforms that have 'uselocale'.
9960         (gl_locale_name_thread_unsafe): New function, extracted from
9961         gl_locale_name_thread.
9962         (gl_locale_name_thread): Call struniq on all platforms that have
9963         'uselocale'.
9964         * tests/test-localename.c (test_locale_name_thread): Check that the
9965         resulting strings are permanently allocated.
9966         * modules/localename-tests (Depends-on): Add strdup.
9967
9968 2009-12-26  Bruno Haible  <bruno@clisp.org>
9969
9970         * tests/test-localename.c (categories): Fill in the strings.
9971
9972 2009-12-26  Jim Meyering  <meyering@redhat.com>
9973
9974         isdir: complete the removal of m4/isdir.m4
9975         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9976
9977         isdir: clean up, since at least grep still uses it
9978         * lib/isdir.c: Include "isdir.h".
9979         (S_ISDIR): Remove now-unneeded definition.
9980         * modules/isdir (Files): Add lib/isdir.h.
9981         * lib/isdir.h: New file, with declaration.
9982         * m4/isdir.m4: Remove file -- unneeded.
9983
9984 2009-12-25  Bruno Haible  <bruno@clisp.org>
9985
9986         selinux-h: Make generated .h files standalone.
9987         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9988         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9989         * lib/se-selinux.in.h: Likewise.
9990         * modules/selinux-h (Depends-on): Add unused-parameter.
9991         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9992         selinux/selinux.h and selinux/context.h.
9993         Suggested by Eric Blake.
9994
9995 2009-12-25  Bruno Haible  <bruno@clisp.org>
9996
9997         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9998         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9999         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10000         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10001         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10002
10003 2009-12-24  Bruno Haible  <bruno@clisp.org>
10004
10005         openat: Fix warning.
10006         * lib/openat-proc.c: Include <unistd.h>.
10007
10008 2009-12-24  Bruno Haible  <bruno@clisp.org>
10009
10010         New module 'unused-parameter'.
10011         * build-aux/unused-parameter.h: New file, extracted from earlier
10012         gnulib-common.m4.
10013         * modules/unused-parameter: New file.
10014         * lib/unistr.h: Include unused-parameter.h.
10015         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10016         _GL_UNUSED.
10017         * modules/unistr/base (Depends-on): Add unused-parameter.
10018
10019 2009-12-24  Bruno Haible  <bruno@clisp.org>
10020
10021         Add missing dependencies to 'extensions' module.
10022         * m4/extensions.m4: Add comment.
10023         * modules/accept4 (Depends-on): Add extensions.
10024         * modules/dup3 (Depends-on): Likewise.
10025         * modules/fcntl (Depends-on): Likewise.
10026         * modules/futimens (Depends-on): Likewise.
10027         * modules/mknod (Depends-on): Likewise.
10028         * modules/pipe2 (Depends-on): Likewise.
10029         * modules/stat-time (Depends-on): Likewise.
10030         * modules/strcasestr-simple (Depends-on): Likewise.
10031         * modules/strsignal (Depends-on): Likewise.
10032         * modules/utimensat (Depends-on): Likewise.
10033         * modules/localcharset (Depends-on): Likewise. Needed because of
10034         gl_FCNTL_O_FLAGS.
10035         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10036         AC_TYPE_MBSTATE_T.
10037         * modules/wcsnrtombs (Depends-on): Likewise.
10038         * modules/wcsrtombs (Depends-on): Likewise.
10039
10040 2009-12-24  Bruno Haible  <bruno@clisp.org>
10041
10042         binary-io: Avoid gcc warning due to SET_BINARY.
10043         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10044         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10045
10046 2009-12-24  Bruno Haible  <bruno@clisp.org>
10047
10048         Avoid future namespace pollution on glibc systems.
10049         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10050         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10051         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10052         glibc systems.
10053
10054 2009-12-24  Bruno Haible  <bruno@clisp.org>
10055
10056         Refactor common macros used in tests.
10057         * tests/macros.h: New file.
10058         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10059         and/or <stdlib.h>, if appropriate.
10060         (ASSERT, SIZEOF): Remove macros.
10061         * tests/test-areadlink-with-size.c: Likewise.
10062         * tests/test-areadlinkat.c: Likewise.
10063         * tests/test-areadlinkat-with-size.c: Likewise.
10064         * tests/test-argmatch.c: Likewise.
10065         * tests/test-argv-iter.c: Likewise.
10066         * tests/test-array-mergesort.c: Likewise.
10067         * tests/test-array_list.c: Likewise.
10068         * tests/test-array_oset.c: Likewise.
10069         * tests/test-avltree_list.c: Likewise.
10070         * tests/test-avltree_oset.c: Likewise.
10071         * tests/test-avltreehash_list.c: Likewise.
10072         * tests/test-base64.c: Likewise.
10073         * tests/test-binary-io.c: Likewise.
10074         * tests/test-bitrotate.c: Likewise.
10075         * tests/test-btowc.c: Likewise.
10076         * tests/test-byteswap.c: Likewise.
10077         * tests/test-c-ctype.c: Likewise.
10078         * tests/test-c-stack.c: Likewise.
10079         * tests/test-c-strcasecmp.c: Likewise.
10080         * tests/test-c-strcasestr.c: Likewise.
10081         * tests/test-c-strncasecmp.c: Likewise.
10082         * tests/test-c-strstr.c: Likewise.
10083         * tests/test-canonicalize-lgpl.c: Likewise.
10084         * tests/test-canonicalize.c: Likewise.
10085         * tests/test-carray_list.c: Likewise.
10086         * tests/test-ceilf1.c: Likewise.
10087         * tests/test-ceilf2.c: Likewise.
10088         * tests/test-ceill.c: Likewise.
10089         * tests/test-chown.c: Likewise.
10090         * tests/test-cloexec.c: Likewise.
10091         * tests/test-copy-acl.c: Likewise.
10092         * tests/test-copy-file.c: Likewise.
10093         * tests/test-count-one-bits.c: Likewise.
10094         * tests/test-dprintf-posix.c: Likewise.
10095         * tests/test-dup2.c: Likewise.
10096         * tests/test-dup3.c: Likewise.
10097         * tests/test-duplocale.c: Likewise.
10098         * tests/test-fbufmode.c: Likewise.
10099         * tests/test-fchdir.c: Likewise.
10100         * tests/test-fchownat.c: Likewise.
10101         * tests/test-fcntl-safer.c: Likewise.
10102         * tests/test-fcntl.c: Likewise.
10103         * tests/test-fdopendir.c: Likewise.
10104         * tests/test-fdutimensat.c: Likewise.
10105         * tests/test-fflush2.c: Likewise.
10106         * tests/test-file-has-acl.c: Likewise.
10107         * tests/test-filevercmp.c: Likewise.
10108         * tests/test-flock.c: Likewise.
10109         * tests/test-floorf1.c: Likewise.
10110         * tests/test-floorf2.c: Likewise.
10111         * tests/test-floorl.c: Likewise.
10112         * tests/test-fnmatch.c: Likewise.
10113         * tests/test-fopen.h: Likewise.
10114         * tests/test-fpending.c: Likewise.
10115         * tests/test-fprintf-posix.c: Likewise.
10116         * tests/test-fpurge.c: Likewise.
10117         * tests/test-freadable.c: Likewise.
10118         * tests/test-freadahead.c: Likewise.
10119         * tests/test-freading.c: Likewise.
10120         * tests/test-freadptr.c: Likewise.
10121         * tests/test-freadptr2.c: Likewise.
10122         * tests/test-freadseek.c: Likewise.
10123         * tests/test-freopen.c: Likewise.
10124         * tests/test-frexp.c: Likewise.
10125         * tests/test-frexpl.c: Likewise.
10126         * tests/test-fseek.c: Likewise.
10127         * tests/test-fseeko.c: Likewise.
10128         * tests/test-fstatat.c: Likewise.
10129         * tests/test-fstrcmp.c: Likewise.
10130         * tests/test-fsync.c: Likewise.
10131         * tests/test-ftell.c: Likewise.
10132         * tests/test-ftello.c: Likewise.
10133         * tests/test-func.c: Likewise.
10134         * tests/test-futimens.c: Likewise.
10135         * tests/test-fwritable.c: Likewise.
10136         * tests/test-fwriting.c: Likewise.
10137         * tests/test-getcwd.c: Likewise.
10138         * tests/test-getdate.c: Likewise.
10139         * tests/test-getdelim.c: Likewise.
10140         * tests/test-getdtablesize.c: Likewise.
10141         * tests/test-getgroups.c: Likewise.
10142         * tests/test-getline.c: Likewise.
10143         * tests/test-getndelim2.c: Likewise.
10144         * tests/test-glob.c: Likewise.
10145         * tests/test-hash.c: Likewise.
10146         * tests/test-i-ring.c: Likewise.
10147         * tests/test-iconv-utf.c: Likewise.
10148         * tests/test-iconv.c: Likewise.
10149         * tests/test-idpriv-drop.c: Likewise.
10150         * tests/test-idpriv-droptemp.c: Likewise.
10151         * tests/test-inet_ntop.c: Likewise.
10152         * tests/test-inet_pton.c: Likewise.
10153         * tests/test-isblank.c: Likewise.
10154         * tests/test-isfinite.c: Likewise.
10155         * tests/test-isinf.c: Likewise.
10156         * tests/test-isnan.c: Likewise.
10157         * tests/test-isnand.h: Likewise.
10158         * tests/test-isnanf.h: Likewise.
10159         * tests/test-isnanl.h: Likewise.
10160         * tests/test-lchown.c: Likewise.
10161         * tests/test-ldexpl.c: Likewise.
10162         * tests/test-link.c: Likewise.
10163         * tests/test-linkat.c: Likewise.
10164         * tests/test-linked_list.c: Likewise.
10165         * tests/test-linkedhash_list.c: Likewise.
10166         * tests/test-localename.c: Likewise.
10167         * tests/test-lseek.c: Likewise.
10168         * tests/test-lstat.c: Likewise.
10169         * tests/test-mbmemcasecmp.c: Likewise.
10170         * tests/test-mbmemcasecoll.c: Likewise.
10171         * tests/test-mbrtowc.c: Likewise.
10172         * tests/test-mbscasecmp.c: Likewise.
10173         * tests/test-mbscasestr1.c: Likewise.
10174         * tests/test-mbscasestr2.c: Likewise.
10175         * tests/test-mbscasestr3.c: Likewise.
10176         * tests/test-mbscasestr4.c: Likewise.
10177         * tests/test-mbschr.c: Likewise.
10178         * tests/test-mbscspn.c: Likewise.
10179         * tests/test-mbsinit.c: Likewise.
10180         * tests/test-mbsncasecmp.c: Likewise.
10181         * tests/test-mbsnrtowcs.c: Likewise.
10182         * tests/test-mbspbrk.c: Likewise.
10183         * tests/test-mbspcasecmp.c: Likewise.
10184         * tests/test-mbsrchr.c: Likewise.
10185         * tests/test-mbsrtowcs.c: Likewise.
10186         * tests/test-mbsspn.c: Likewise.
10187         * tests/test-mbsstr1.c: Likewise.
10188         * tests/test-mbsstr2.c: Likewise.
10189         * tests/test-mbsstr3.c: Likewise.
10190         * tests/test-memchr.c: Likewise.
10191         * tests/test-memchr2.c: Likewise.
10192         * tests/test-memcmp.c: Likewise.
10193         * tests/test-memmem.c: Likewise.
10194         * tests/test-memrchr.c: Likewise.
10195         * tests/test-mkdir.c: Likewise.
10196         * tests/test-mkdirat.c: Likewise.
10197         * tests/test-mkfifo.c: Likewise.
10198         * tests/test-mkfifoat.c: Likewise.
10199         * tests/test-mknod.c: Likewise.
10200         * tests/test-nanosleep.c: Likewise.
10201         * tests/test-nl_langinfo.c: Likewise.
10202         * tests/test-obstack-printf.c: Likewise.
10203         * tests/test-open.c: Likewise.
10204         * tests/test-openat.c: Likewise.
10205         * tests/test-pipe-filter-gi1.c: Likewise.
10206         * tests/test-pipe-filter-gi2-main.c: Likewise.
10207         * tests/test-pipe-filter-ii1.c: Likewise.
10208         * tests/test-pipe-filter-ii2-main.c: Likewise.
10209         * tests/test-pipe2.c: Likewise.
10210         * tests/test-popen.h: Likewise.
10211         * tests/test-posixtm.c: Likewise.
10212         * tests/test-pread.c: Likewise.
10213         * tests/test-printf-frexp.c: Likewise.
10214         * tests/test-printf-frexpl.c: Likewise.
10215         * tests/test-printf-posix.c: Likewise.
10216         * tests/test-priv-set.c: Likewise.
10217         * tests/test-quotearg.c: Likewise.
10218         * tests/test-random_r.c: Likewise.
10219         * tests/test-rawmemchr.c: Likewise.
10220         * tests/test-rbtree_list.c: Likewise.
10221         * tests/test-rbtree_oset.c: Likewise.
10222         * tests/test-rbtreehash_list.c: Likewise.
10223         * tests/test-readlink.c: Likewise.
10224         * tests/test-remove.c: Likewise.
10225         * tests/test-rename.c: Likewise.
10226         * tests/test-renameat.c: Likewise.
10227         * tests/test-rmdir.c: Likewise.
10228         * tests/test-round1.c: Likewise.
10229         * tests/test-roundf1.c: Likewise.
10230         * tests/test-roundl.c: Likewise.
10231         * tests/test-safe-alloc.c: Likewise.
10232         * tests/test-sameacls.c: Likewise.
10233         * tests/test-set-mode-acl.c: Likewise.
10234         * tests/test-setenv.c: Likewise.
10235         * tests/test-sigaction.c: Likewise.
10236         * tests/test-signbit.c: Likewise.
10237         * tests/test-sleep.c: Likewise.
10238         * tests/test-snprintf-posix.c: Likewise.
10239         * tests/test-snprintf.c: Likewise.
10240         * tests/test-sprintf-posix.c: Likewise.
10241         * tests/test-stat-time.c: Likewise.
10242         * tests/test-stat.c: Likewise.
10243         * tests/test-strcasestr.c: Likewise.
10244         * tests/test-strchrnul.c: Likewise.
10245         * tests/test-strerror.c: Likewise.
10246         * tests/test-striconv.c: Likewise.
10247         * tests/test-striconveh.c: Likewise.
10248         * tests/test-striconveha.c: Likewise.
10249         * tests/test-strsignal.c: Likewise.
10250         * tests/test-strstr.c: Likewise.
10251         * tests/test-strtod.c: Likewise.
10252         * tests/test-strverscmp.c: Likewise.
10253         * tests/test-symlink.c: Likewise.
10254         * tests/test-symlinkat.c: Likewise.
10255         * tests/test-trunc1.c: Likewise.
10256         * tests/test-trunc2.c: Likewise.
10257         * tests/test-truncf1.c: Likewise.
10258         * tests/test-truncf2.c: Likewise.
10259         * tests/test-truncl.c: Likewise.
10260         * tests/test-uname.c: Likewise.
10261         * tests/test-unlink.c: Likewise.
10262         * tests/test-unlinkat.c: Likewise.
10263         * tests/test-unsetenv.c: Likewise.
10264         * tests/test-usleep.c: Likewise.
10265         * tests/test-utimens.c: Likewise.
10266         * tests/test-utimensat.c: Likewise.
10267         * tests/test-vasnprintf-posix.c: Likewise.
10268         * tests/test-vasnprintf-posix2.c: Likewise.
10269         * tests/test-vasnprintf.c: Likewise.
10270         * tests/test-vasprintf-posix.c: Likewise.
10271         * tests/test-vasprintf.c: Likewise.
10272         * tests/test-vdprintf-posix.c: Likewise.
10273         * tests/test-vfprintf-posix.c: Likewise.
10274         * tests/test-vprintf-posix.c: Likewise.
10275         * tests/test-vsnprintf-posix.c: Likewise.
10276         * tests/test-vsnprintf.c: Likewise.
10277         * tests/test-vsprintf-posix.c: Likewise.
10278         * tests/test-wcrtomb.c: Likewise.
10279         * tests/test-wcsnrtombs.c: Likewise.
10280         * tests/test-wcsrtombs.c: Likewise.
10281         * tests/test-wctype.c: Likewise.
10282         * tests/test-wcwidth.c: Likewise.
10283         * tests/test-xfprintf-posix.c: Likewise.
10284         * tests/test-xmemdup0.c: Likewise.
10285         * tests/test-xprintf-posix.c: Likewise.
10286         * tests/test-xvasprintf.c: Likewise.
10287         * tests/unicase/test-locale-language.c: Likewise.
10288         * tests/unicase/test-mapping-part1.h: Likewise.
10289         * tests/unicase/test-predicate-part1.h: Likewise.
10290         * tests/unicase/test-u8-casecmp.c: Likewise.
10291         * tests/unicase/test-u8-casecoll.c: Likewise.
10292         * tests/unicase/test-u8-casefold.c: Likewise.
10293         * tests/unicase/test-u8-is-cased.c: Likewise.
10294         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10295         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10296         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10297         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10298         * tests/unicase/test-u8-tolower.c: Likewise.
10299         * tests/unicase/test-u8-totitle.c: Likewise.
10300         * tests/unicase/test-u8-toupper.c: Likewise.
10301         * tests/unicase/test-u16-casecmp.c: Likewise.
10302         * tests/unicase/test-u16-casecoll.c: Likewise.
10303         * tests/unicase/test-u16-casefold.c: Likewise.
10304         * tests/unicase/test-u16-is-cased.c: Likewise.
10305         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10306         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10307         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10308         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10309         * tests/unicase/test-u16-tolower.c: Likewise.
10310         * tests/unicase/test-u16-totitle.c: Likewise.
10311         * tests/unicase/test-u16-toupper.c: Likewise.
10312         * tests/unicase/test-u32-casecmp.c: Likewise.
10313         * tests/unicase/test-u32-casecoll.c: Likewise.
10314         * tests/unicase/test-u32-casefold.c: Likewise.
10315         * tests/unicase/test-u32-is-cased.c: Likewise.
10316         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10317         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10318         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10319         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10320         * tests/unicase/test-u32-tolower.c: Likewise.
10321         * tests/unicase/test-u32-totitle.c: Likewise.
10322         * tests/unicase/test-u32-toupper.c: Likewise.
10323         * tests/unicase/test-ulc-casecmp.c: Likewise.
10324         * tests/unicase/test-ulc-casecoll.c: Likewise.
10325         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10326         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10327         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10328         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10329         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10330         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10331         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10332         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10333         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10334         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10335         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10336         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10337         * tests/unictype/test-bidi_byname.c: Likewise.
10338         * tests/unictype/test-bidi_name.c: Likewise.
10339         * tests/unictype/test-bidi_of.c: Likewise.
10340         * tests/unictype/test-bidi_test.c: Likewise.
10341         * tests/unictype/test-block_list.c: Likewise.
10342         * tests/unictype/test-block_of.c: Likewise.
10343         * tests/unictype/test-block_test.c: Likewise.
10344         * tests/unictype/test-categ_and.c: Likewise.
10345         * tests/unictype/test-categ_and_not.c: Likewise.
10346         * tests/unictype/test-categ_byname.c: Likewise.
10347         * tests/unictype/test-categ_name.c: Likewise.
10348         * tests/unictype/test-categ_none.c: Likewise.
10349         * tests/unictype/test-categ_of.c: Likewise.
10350         * tests/unictype/test-categ_or.c: Likewise.
10351         * tests/unictype/test-categ_test_withtable.c: Likewise.
10352         * tests/unictype/test-combining.c: Likewise.
10353         * tests/unictype/test-decdigit.c: Likewise.
10354         * tests/unictype/test-digit.c: Likewise.
10355         * tests/unictype/test-mirror.c: Likewise.
10356         * tests/unictype/test-numeric.c: Likewise.
10357         * tests/unictype/test-pr_byname.c: Likewise.
10358         * tests/unictype/test-pr_test.c: Likewise.
10359         * tests/unictype/test-predicate-part1.h: Likewise.
10360         * tests/unictype/test-scripts.c: Likewise.
10361         * tests/unictype/test-sy_c_ident.c: Likewise.
10362         * tests/unictype/test-sy_java_ident.c: Likewise.
10363         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10364         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10365         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10366         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10367         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10368         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10369         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10370         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10371         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10372         * tests/uninorm/test-compat-decomposition.c: Likewise.
10373         * tests/uninorm/test-composition.c: Likewise.
10374         * tests/uninorm/test-decomposing-form.c: Likewise.
10375         * tests/uninorm/test-decomposition.c: Likewise.
10376         * tests/uninorm/test-u8-nfc.c: Likewise.
10377         * tests/uninorm/test-u8-nfd.c: Likewise.
10378         * tests/uninorm/test-u8-nfkc.c: Likewise.
10379         * tests/uninorm/test-u8-nfkd.c: Likewise.
10380         * tests/uninorm/test-u8-normcmp.c: Likewise.
10381         * tests/uninorm/test-u8-normcoll.c: Likewise.
10382         * tests/uninorm/test-u16-nfc.c: Likewise.
10383         * tests/uninorm/test-u16-nfd.c: Likewise.
10384         * tests/uninorm/test-u16-nfkc.c: Likewise.
10385         * tests/uninorm/test-u16-nfkd.c: Likewise.
10386         * tests/uninorm/test-u16-normcmp.c: Likewise.
10387         * tests/uninorm/test-u16-normcoll.c: Likewise.
10388         * tests/uninorm/test-u32-nfc.c: Likewise.
10389         * tests/uninorm/test-u32-nfd.c: Likewise.
10390         * tests/uninorm/test-u32-nfkc.c: Likewise.
10391         * tests/uninorm/test-u32-nfkd.c: Likewise.
10392         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10393         * tests/uninorm/test-u32-normcmp.c: Likewise.
10394         * tests/uninorm/test-u32-normcoll.c: Likewise.
10395         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10396         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10397         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10398         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10399         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10400         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10401         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10402         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10403         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10404         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10405         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10406         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10407         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10408         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10409         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10410         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10411         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10412         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10413         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10414         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10415         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10416         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10417         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10418         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10419         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10420         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10421         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10422         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10423         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10424         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10425         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10426         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10427         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10428         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10429         * tests/uniwidth/test-u8-width.c: Likewise.
10430         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10431         * tests/uniwidth/test-u16-width.c: Likewise.
10432         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10433         * tests/uniwidth/test-u32-width.c: Likewise.
10434         * tests/uniwidth/test-uc_width.c: Likewise.
10435         * tests/uniwidth/test-uc_width2.c: Likewise.
10436         * modules/acl-tests (Files): Add tests/macros.h.
10437         * modules/areadlink-tests (Files): Likewise.
10438         * modules/areadlink-with-size-tests (Files): Likewise.
10439         * modules/areadlinkat-tests (Files): Likewise.
10440         * modules/areadlinkat-with-size-tests (Files): Likewise.
10441         * modules/argmatch-tests (Files): Likewise.
10442         * modules/argv-iter-tests (Files): Likewise.
10443         * modules/array-list-tests (Files): Likewise.
10444         * modules/array-mergesort-tests (Files): Likewise.
10445         * modules/array-oset-tests (Files): Likewise.
10446         * modules/avltree-list-tests (Files): Likewise.
10447         * modules/avltree-oset-tests (Files): Likewise.
10448         * modules/avltreehash-list-tests (Files): Likewise.
10449         * modules/base64-tests (Files): Likewise.
10450         * modules/binary-io-tests (Files): Likewise.
10451         * modules/bitrotate-tests (Files): Likewise.
10452         * modules/btowc-tests (Files): Likewise.
10453         * modules/byteswap-tests (Files): Likewise.
10454         * modules/c-ctype-tests (Files): Likewise.
10455         * modules/c-stack-tests (Files): Likewise.
10456         * modules/c-strcase-tests (Files): Likewise.
10457         * modules/c-strcasestr-tests (Files): Likewise.
10458         * modules/c-strstr-tests (Files): Likewise.
10459         * modules/canonicalize-lgpl-tests (Files): Likewise.
10460         * modules/canonicalize-tests (Files): Likewise.
10461         * modules/carray-list-tests (Files): Likewise.
10462         * modules/ceilf-tests (Files): Likewise.
10463         * modules/ceill-tests (Files): Likewise.
10464         * modules/chown-tests (Files): Likewise.
10465         * modules/cloexec-tests (Files): Likewise.
10466         * modules/copy-file-tests (Files): Likewise.
10467         * modules/count-one-bits-tests (Files): Likewise.
10468         * modules/dprintf-posix-tests (Files): Likewise.
10469         * modules/dup2-tests (Files): Likewise.
10470         * modules/dup3-tests (Files): Likewise.
10471         * modules/duplocale-tests (Files): Likewise.
10472         * modules/fbufmode-tests (Files): Likewise.
10473         * modules/fchdir-tests (Files): Likewise.
10474         * modules/fcntl-safer-tests (Files): Likewise.
10475         * modules/fcntl-tests (Files): Likewise.
10476         * modules/fdopendir-tests (Files): Likewise.
10477         * modules/fdutimensat-tests (Files): Likewise.
10478         * modules/fflush-tests (Files): Likewise.
10479         * modules/filevercmp-tests (Files): Likewise.
10480         * modules/flock-tests (Files): Likewise.
10481         * modules/floorf-tests (Files): Likewise.
10482         * modules/floorl-tests (Files): Likewise.
10483         * modules/fnmatch-tests (Files): Likewise.
10484         * modules/fopen-safer-tests (Files): Likewise.
10485         * modules/fopen-tests (Files): Likewise.
10486         * modules/fpending-tests (Files): Likewise.
10487         * modules/fprintf-posix-tests (Files): Likewise.
10488         * modules/fpurge-tests (Files): Likewise.
10489         * modules/freadable-tests (Files): Likewise.
10490         * modules/freadahead-tests (Files): Likewise.
10491         * modules/freading-tests (Files): Likewise.
10492         * modules/freadptr-tests (Files): Likewise.
10493         * modules/freadseek-tests (Files): Likewise.
10494         * modules/freopen-tests (Files): Likewise.
10495         * modules/frexp-nolibm-tests (Files): Likewise.
10496         * modules/frexp-tests (Files): Likewise.
10497         * modules/frexpl-nolibm-tests (Files): Likewise.
10498         * modules/frexpl-tests (Files): Likewise.
10499         * modules/fseek-tests (Files): Likewise.
10500         * modules/fseeko-tests (Files): Likewise.
10501         * modules/fstrcmp-tests (Files): Likewise.
10502         * modules/fsync-tests (Files): Likewise.
10503         * modules/ftell-tests (Files): Likewise.
10504         * modules/ftello-tests (Files): Likewise.
10505         * modules/func-tests (Files): Likewise.
10506         * modules/futimens-tests (Files): Likewise.
10507         * modules/fwritable-tests (Files): Likewise.
10508         * modules/fwriting-tests (Files): Likewise.
10509         * modules/getcwd-tests (Files): Likewise.
10510         * modules/getdate-tests (Files): Likewise.
10511         * modules/getdelim-tests (Files): Likewise.
10512         * modules/getdtablesize-tests (Files): Likewise.
10513         * modules/getgroups-tests (Files): Likewise.
10514         * modules/getline-tests (Files): Likewise.
10515         * modules/getndelim2-tests (Files): Likewise.
10516         * modules/glob-tests (Files): Likewise.
10517         * modules/hash-tests (Files): Likewise.
10518         * modules/i-ring-tests (Files): Likewise.
10519         * modules/iconv-tests (Files): Likewise.
10520         * modules/iconv_open-utf-tests (Files): Likewise.
10521         * modules/idpriv-drop-tests (Files): Likewise.
10522         * modules/idpriv-droptemp-tests (Files): Likewise.
10523         * modules/inet_ntop-tests (Files): Likewise.
10524         * modules/inet_pton-tests (Files): Likewise.
10525         * modules/isblank-tests (Files): Likewise.
10526         * modules/isfinite-tests (Files): Likewise.
10527         * modules/isinf-tests (Files): Likewise.
10528         * modules/isnan-tests (Files): Likewise.
10529         * modules/isnand-nolibm-tests (Files): Likewise.
10530         * modules/isnand-tests (Files): Likewise.
10531         * modules/isnanf-nolibm-tests (Files): Likewise.
10532         * modules/isnanf-tests (Files): Likewise.
10533         * modules/isnanl-nolibm-tests (Files): Likewise.
10534         * modules/isnanl-tests (Files): Likewise.
10535         * modules/lchown-tests (Files): Likewise.
10536         * modules/ldexpl-tests (Files): Likewise.
10537         * modules/link-tests (Files): Likewise.
10538         * modules/linkat-tests (Files): Likewise.
10539         * modules/linked-list-tests (Files): Likewise.
10540         * modules/linkedhash-list-tests (Files): Likewise.
10541         * modules/localename-tests (Files): Likewise.
10542         * modules/lseek-tests (Files): Likewise.
10543         * modules/lstat-tests (Files): Likewise.
10544         * modules/mbmemcasecmp-tests (Files): Likewise.
10545         * modules/mbmemcasecoll-tests (Files): Likewise.
10546         * modules/mbrtowc-tests (Files): Likewise.
10547         * modules/mbscasecmp-tests (Files): Likewise.
10548         * modules/mbscasestr-tests (Files): Likewise.
10549         * modules/mbschr-tests (Files): Likewise.
10550         * modules/mbscspn-tests (Files): Likewise.
10551         * modules/mbsinit-tests (Files): Likewise.
10552         * modules/mbsncasecmp-tests (Files): Likewise.
10553         * modules/mbsnrtowcs-tests (Files): Likewise.
10554         * modules/mbspbrk-tests (Files): Likewise.
10555         * modules/mbspcasecmp-tests (Files): Likewise.
10556         * modules/mbsrchr-tests (Files): Likewise.
10557         * modules/mbsrtowcs-tests (Files): Likewise.
10558         * modules/mbsspn-tests (Files): Likewise.
10559         * modules/mbsstr-tests (Files): Likewise.
10560         * modules/memchr-tests (Files): Likewise.
10561         * modules/memchr2-tests (Files): Likewise.
10562         * modules/memcmp-tests (Files): Likewise.
10563         * modules/memmem-tests (Files): Likewise.
10564         * modules/memrchr-tests (Files): Likewise.
10565         * modules/mkdir-tests (Files): Likewise.
10566         * modules/mkfifo-tests (Files): Likewise.
10567         * modules/mkfifoat-tests (Files): Likewise.
10568         * modules/mknod-tests (Files): Likewise.
10569         * modules/nanosleep-tests (Files): Likewise.
10570         * modules/nl_langinfo-tests (Files): Likewise.
10571         * modules/obstack-printf-tests (Files): Likewise.
10572         * modules/open-tests (Files): Likewise.
10573         * modules/openat-tests (Files): Likewise.
10574         * modules/pipe-filter-gi-tests (Files): Likewise.
10575         * modules/pipe-filter-ii-tests (Files): Likewise.
10576         * modules/pipe2-tests (Files): Likewise.
10577         * modules/popen-safer-tests (Files): Likewise.
10578         * modules/popen-tests (Files): Likewise.
10579         * modules/posixtm-tests (Files): Likewise.
10580         * modules/pread-tests (Files): Likewise.
10581         * modules/printf-frexp-tests (Files): Likewise.
10582         * modules/printf-frexpl-tests (Files): Likewise.
10583         * modules/printf-posix-tests (Files): Likewise.
10584         * modules/priv-set-tests (Files): Likewise.
10585         * modules/quotearg-tests (Files): Likewise.
10586         * modules/random_r-tests (Files): Likewise.
10587         * modules/rawmemchr-tests (Files): Likewise.
10588         * modules/rbtree-list-tests (Files): Likewise.
10589         * modules/rbtree-oset-tests (Files): Likewise.
10590         * modules/rbtreehash-list-tests (Files): Likewise.
10591         * modules/readlink-tests (Files): Likewise.
10592         * modules/remove-tests (Files): Likewise.
10593         * modules/rename-tests (Files): Likewise.
10594         * modules/renameat-tests (Files): Likewise.
10595         * modules/rmdir-tests (Files): Likewise.
10596         * modules/round-tests (Files): Likewise.
10597         * modules/roundf-tests (Files): Likewise.
10598         * modules/roundl-tests (Files): Likewise.
10599         * modules/safe-alloc-tests (Files): Likewise.
10600         * modules/setenv-tests (Files): Likewise.
10601         * modules/sigaction-tests (Files): Likewise.
10602         * modules/signbit-tests (Files): Likewise.
10603         * modules/sleep-tests (Files): Likewise.
10604         * modules/snprintf-posix-tests (Files): Likewise.
10605         * modules/snprintf-tests (Files): Likewise.
10606         * modules/sprintf-posix-tests (Files): Likewise.
10607         * modules/stat-tests (Files): Likewise.
10608         * modules/stat-time-tests (Files): Likewise.
10609         * modules/strcasestr-tests (Files): Likewise.
10610         * modules/strchrnul-tests (Files): Likewise.
10611         * modules/strerror-tests (Files): Likewise.
10612         * modules/striconv-tests (Files): Likewise.
10613         * modules/striconveh-tests (Files): Likewise.
10614         * modules/striconveha-tests (Files): Likewise.
10615         * modules/strsignal-tests (Files): Likewise.
10616         * modules/strstr-tests (Files): Likewise.
10617         * modules/strtod-tests (Files): Likewise.
10618         * modules/strverscmp-tests (Files): Likewise.
10619         * modules/symlink-tests (Files): Likewise.
10620         * modules/symlinkat-tests (Files): Likewise.
10621         * modules/trunc-tests (Files): Likewise.
10622         * modules/truncf-tests (Files): Likewise.
10623         * modules/truncl-tests (Files): Likewise.
10624         * modules/uname-tests (Files): Likewise.
10625         * modules/unicase/cased-tests (Files): Likewise.
10626         * modules/unicase/ignorable-tests (Files): Likewise.
10627         * modules/unicase/locale-language-tests (Files): Likewise.
10628         * modules/unicase/tolower-tests (Files): Likewise.
10629         * modules/unicase/totitle-tests (Files): Likewise.
10630         * modules/unicase/toupper-tests (Files): Likewise.
10631         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10632         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10633         * modules/unicase/u8-casefold-tests (Files): Likewise.
10634         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10635         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10636         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10637         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10638         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10639         * modules/unicase/u8-tolower-tests (Files): Likewise.
10640         * modules/unicase/u8-totitle-tests (Files): Likewise.
10641         * modules/unicase/u8-toupper-tests (Files): Likewise.
10642         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10643         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10644         * modules/unicase/u16-casefold-tests (Files): Likewise.
10645         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10646         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10647         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10648         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10649         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10650         * modules/unicase/u16-tolower-tests (Files): Likewise.
10651         * modules/unicase/u16-totitle-tests (Files): Likewise.
10652         * modules/unicase/u16-toupper-tests (Files): Likewise.
10653         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10654         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10655         * modules/unicase/u32-casefold-tests (Files): Likewise.
10656         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10657         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10658         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10659         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10660         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10661         * modules/unicase/u32-tolower-tests (Files): Likewise.
10662         * modules/unicase/u32-totitle-tests (Files): Likewise.
10663         * modules/unicase/u32-toupper-tests (Files): Likewise.
10664         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10665         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10666         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10667         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10668         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10669         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10670         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10671         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10672         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10673         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10674         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10675         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10676         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10677         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10678         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10679         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10680         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10681         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10682         * modules/unictype/block-list-tests (Files): Likewise.
10683         * modules/unictype/block-of-tests (Files): Likewise.
10684         * modules/unictype/block-test-tests (Files): Likewise.
10685         * modules/unictype/category-C-tests (Files): Likewise.
10686         * modules/unictype/category-Cc-tests (Files): Likewise.
10687         * modules/unictype/category-Cf-tests (Files): Likewise.
10688         * modules/unictype/category-Cn-tests (Files): Likewise.
10689         * modules/unictype/category-Co-tests (Files): Likewise.
10690         * modules/unictype/category-Cs-tests (Files): Likewise.
10691         * modules/unictype/category-L-tests (Files): Likewise.
10692         * modules/unictype/category-Ll-tests (Files): Likewise.
10693         * modules/unictype/category-Lm-tests (Files): Likewise.
10694         * modules/unictype/category-Lo-tests (Files): Likewise.
10695         * modules/unictype/category-Lt-tests (Files): Likewise.
10696         * modules/unictype/category-Lu-tests (Files): Likewise.
10697         * modules/unictype/category-M-tests (Files): Likewise.
10698         * modules/unictype/category-Mc-tests (Files): Likewise.
10699         * modules/unictype/category-Me-tests (Files): Likewise.
10700         * modules/unictype/category-Mn-tests (Files): Likewise.
10701         * modules/unictype/category-N-tests (Files): Likewise.
10702         * modules/unictype/category-Nd-tests (Files): Likewise.
10703         * modules/unictype/category-Nl-tests (Files): Likewise.
10704         * modules/unictype/category-No-tests (Files): Likewise.
10705         * modules/unictype/category-P-tests (Files): Likewise.
10706         * modules/unictype/category-Pc-tests (Files): Likewise.
10707         * modules/unictype/category-Pd-tests (Files): Likewise.
10708         * modules/unictype/category-Pe-tests (Files): Likewise.
10709         * modules/unictype/category-Pf-tests (Files): Likewise.
10710         * modules/unictype/category-Pi-tests (Files): Likewise.
10711         * modules/unictype/category-Po-tests (Files): Likewise.
10712         * modules/unictype/category-Ps-tests (Files): Likewise.
10713         * modules/unictype/category-S-tests (Files): Likewise.
10714         * modules/unictype/category-Sc-tests (Files): Likewise.
10715         * modules/unictype/category-Sk-tests (Files): Likewise.
10716         * modules/unictype/category-Sm-tests (Files): Likewise.
10717         * modules/unictype/category-So-tests (Files): Likewise.
10718         * modules/unictype/category-Z-tests (Files): Likewise.
10719         * modules/unictype/category-Zl-tests (Files): Likewise.
10720         * modules/unictype/category-Zp-tests (Files): Likewise.
10721         * modules/unictype/category-Zs-tests (Files): Likewise.
10722         * modules/unictype/category-and-not-tests (Files): Likewise.
10723         * modules/unictype/category-and-tests (Files): Likewise.
10724         * modules/unictype/category-byname-tests (Files): Likewise.
10725         * modules/unictype/category-name-tests (Files): Likewise.
10726         * modules/unictype/category-none-tests (Files): Likewise.
10727         * modules/unictype/category-of-tests (Files): Likewise.
10728         * modules/unictype/category-or-tests (Files): Likewise.
10729         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10730         * modules/unictype/combining-class-tests (Files): Likewise.
10731         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10732         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10733         * modules/unictype/ctype-blank-tests (Files): Likewise.
10734         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10735         * modules/unictype/ctype-digit-tests (Files): Likewise.
10736         * modules/unictype/ctype-graph-tests (Files): Likewise.
10737         * modules/unictype/ctype-lower-tests (Files): Likewise.
10738         * modules/unictype/ctype-print-tests (Files): Likewise.
10739         * modules/unictype/ctype-punct-tests (Files): Likewise.
10740         * modules/unictype/ctype-space-tests (Files): Likewise.
10741         * modules/unictype/ctype-upper-tests (Files): Likewise.
10742         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10743         * modules/unictype/decimal-digit-tests (Files): Likewise.
10744         * modules/unictype/digit-tests (Files): Likewise.
10745         * modules/unictype/mirror-tests (Files): Likewise.
10746         * modules/unictype/numeric-tests (Files): Likewise.
10747         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10748         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10749         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10750         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10751         Likewise.
10752         * modules/unictype/property-bidi-block-separator-tests (Files):
10753         Likewise.
10754         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10755         Likewise.
10756         * modules/unictype/property-bidi-common-separator-tests (Files):
10757         Likewise.
10758         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10759         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10760         Likewise.
10761         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10762         Likewise.
10763         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10764         Likewise.
10765         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10766         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10767         Likewise.
10768         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10769         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10770         Likewise.
10771         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10772         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10773         * modules/unictype/property-bidi-segment-separator-tests (Files):
10774         Likewise.
10775         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10776         * modules/unictype/property-byname-tests (Files): Likewise.
10777         * modules/unictype/property-combining-tests (Files): Likewise.
10778         * modules/unictype/property-composite-tests (Files): Likewise.
10779         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10780         * modules/unictype/property-dash-tests (Files): Likewise.
10781         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10782         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10783         Likewise.
10784         * modules/unictype/property-deprecated-tests (Files): Likewise.
10785         * modules/unictype/property-diacritic-tests (Files): Likewise.
10786         * modules/unictype/property-extender-tests (Files): Likewise.
10787         * modules/unictype/property-format-control-tests (Files): Likewise.
10788         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10789         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10790         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10791         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10792         * modules/unictype/property-hyphen-tests (Files): Likewise.
10793         * modules/unictype/property-id-continue-tests (Files): Likewise.
10794         * modules/unictype/property-id-start-tests (Files): Likewise.
10795         * modules/unictype/property-ideographic-tests (Files): Likewise.
10796         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10797         * modules/unictype/property-ids-trinary-operator-tests (Files):
10798         Likewise.
10799         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10800         * modules/unictype/property-iso-control-tests (Files): Likewise.
10801         * modules/unictype/property-join-control-tests (Files): Likewise.
10802         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10803         * modules/unictype/property-line-separator-tests (Files): Likewise.
10804         * modules/unictype/property-logical-order-exception-tests (Files):
10805         Likewise.
10806         * modules/unictype/property-lowercase-tests (Files): Likewise.
10807         * modules/unictype/property-math-tests (Files): Likewise.
10808         * modules/unictype/property-non-break-tests (Files): Likewise.
10809         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10810         * modules/unictype/property-numeric-tests (Files): Likewise.
10811         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10812         * modules/unictype/property-other-default-ignorable-code-point-tests
10813         (Files): Likewise.
10814         * modules/unictype/property-other-grapheme-extend-tests (Files):
10815         Likewise.
10816         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10817         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10818         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10819         * modules/unictype/property-other-math-tests (Files): Likewise.
10820         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10821         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10822         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10823         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10824         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10825         * modules/unictype/property-private-use-tests (Files): Likewise.
10826         * modules/unictype/property-punctuation-tests (Files): Likewise.
10827         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10828         * modules/unictype/property-radical-tests (Files): Likewise.
10829         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10830         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10831         * modules/unictype/property-space-tests (Files): Likewise.
10832         * modules/unictype/property-terminal-punctuation-tests (Files):
10833         Likewise.
10834         * modules/unictype/property-test-tests (Files): Likewise.
10835         * modules/unictype/property-titlecase-tests (Files): Likewise.
10836         * modules/unictype/property-unassigned-code-value-tests (Files):
10837         Likewise.
10838         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10839         * modules/unictype/property-uppercase-tests (Files): Likewise.
10840         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10841         * modules/unictype/property-white-space-tests (Files): Likewise.
10842         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10843         * modules/unictype/property-xid-start-tests (Files): Likewise.
10844         * modules/unictype/property-zero-width-tests (Files): Likewise.
10845         * modules/unictype/scripts-tests (Files): Likewise.
10846         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10847         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10848         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10849         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10850         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10851         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10852         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10853         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10854         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10855         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10856         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10857         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10858         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10859         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10860         * modules/uninorm/composition-tests (Files): Likewise.
10861         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10862         * modules/uninorm/decomposition-tests (Files): Likewise.
10863         * modules/uninorm/filter-tests (Files): Likewise.
10864         * modules/uninorm/nfc-tests (Files): Likewise.
10865         * modules/uninorm/nfd-tests (Files): Likewise.
10866         * modules/uninorm/nfkc-tests (Files): Likewise.
10867         * modules/uninorm/nfkd-tests (Files): Likewise.
10868         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10869         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10870         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10871         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10872         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10873         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10874         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10875         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10876         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10877         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10878         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10879         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10880         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10881         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10882         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10883         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10884         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10885         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10886         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10887         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10888         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10889         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10890         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10891         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10892         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10893         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10894         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10895         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10896         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10897         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10898         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10899         * modules/uniwidth/u8-width-tests (Files): Likewise.
10900         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10901         * modules/uniwidth/u16-width-tests (Files): Likewise.
10902         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10903         * modules/uniwidth/u32-width-tests (Files): Likewise.
10904         * modules/uniwidth/width-tests (Files): Likewise.
10905         * modules/unlink-tests (Files): Likewise.
10906         * modules/unsetenv-tests (Files): Likewise.
10907         * modules/usleep-tests (Files): Likewise.
10908         * modules/utimens-tests (Files): Likewise.
10909         * modules/utimensat-tests (Files): Likewise.
10910         * modules/vasnprintf-posix-tests (Files): Likewise.
10911         * modules/vasnprintf-tests (Files): Likewise.
10912         * modules/vasprintf-posix-tests (Files): Likewise.
10913         * modules/vasprintf-tests (Files): Likewise.
10914         * modules/vdprintf-posix-tests (Files): Likewise.
10915         * modules/vfprintf-posix-tests (Files): Likewise.
10916         * modules/vprintf-posix-tests (Files): Likewise.
10917         * modules/vsnprintf-posix-tests (Files): Likewise.
10918         * modules/vsnprintf-tests (Files): Likewise.
10919         * modules/vsprintf-posix-tests (Files): Likewise.
10920         * modules/wcrtomb-tests (Files): Likewise.
10921         * modules/wcsnrtombs-tests (Files): Likewise.
10922         * modules/wcsrtombs-tests (Files): Likewise.
10923         * modules/wctype-tests (Files): Likewise.
10924         * modules/wcwidth-tests (Files): Likewise.
10925         * modules/xmemdup0-tests (Files): Likewise.
10926         * modules/xprintf-posix-tests (Files): Likewise.
10927         * modules/xvasprintf-tests (Files): Likewise.
10928
10929 2009-12-24  Eric Blake  <ebb9@byu.net>
10930
10931         test-nanosleep: fix typo
10932         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10933         patch.
10934         Reported by Bruno Haible.
10935
10936 2009-12-24  Bruno Haible  <bruno@clisp.org>
10937
10938         Reduce namespace pollution on glibc systems.
10939         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10940         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10941         systems.
10942         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10943         <getopt.h> on glibc systems.
10944         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10945         systems.
10946         * lib/fcntl.c: Include <unistd.h> here instead.
10947
10948 2009-12-24  Bruno Haible  <bruno@clisp.org>
10949
10950         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10951
10952 2009-12-24  Eric Blake  <ebb9@byu.net>
10953
10954         tests: add signature checks
10955         * tests/signature.h (SIGNATURE_CHECK): New file.
10956         * modules/atexit-tests (Files): Use it.
10957         * modules/btowc-tests (Files): Likewise.
10958         * modules/canonicalize-lgpl-tests (Files): Likewise.
10959         * modules/ceilf-tests (Files): Likewise.
10960         * modules/ceill-tests (Files): Likewise.
10961         * modules/chown-tests (Files): Likewise.
10962         * modules/dprintf-posix-tests (Files): Likewise.
10963         * modules/dup2-tests (Files): Likewise.
10964         * modules/dup3-tests (Files): Likewise.
10965         * modules/duplocale-tests (Files): Likewise.
10966         * modules/fchdir-tests (Files): Likewise.
10967         * modules/fcntl-tests (Files): Likewise.
10968         * modules/fdopendir-tests (Files): Likewise.
10969         * modules/fflush-tests (Files): Likewise.
10970         * modules/flock-tests (Files): Likewise.
10971         * modules/floorf-tests (Files): Likewise.
10972         * modules/floorl-tests (Files): Likewise.
10973         * modules/fnmatch-tests (Files): Likewise.
10974         * modules/fopen-tests (Files): Likewise.
10975         * modules/fprintf-posix-tests (Files): Likewise.
10976         * modules/freopen-tests (Files): Likewise.
10977         * modules/frexp-nolibm-tests (Files): Likewise.
10978         * modules/frexp-tests (Files): Likewise.
10979         * modules/frexpl-nolibm-tests (Files): Likewise.
10980         * modules/frexpl-tests (Files): Likewise.
10981         * modules/fseek-tests (Files): Likewise.
10982         * modules/fseeko-tests (Files): Likewise.
10983         * modules/fsync-tests (Files): Likewise.
10984         * modules/ftell-tests (Files): Likewise.
10985         * modules/ftello-tests (Files): Likewise.
10986         * modules/futimens-tests (Files): Likewise.
10987         * modules/getaddrinfo-tests (Files): Likewise.
10988         * modules/getcwd-tests (Files): Likewise.
10989         * modules/getdelim-tests (Files): Likewise.
10990         * modules/getdtablesize-tests (Files): Likewise.
10991         * modules/getgroups-tests (Files): Likewise.
10992         * modules/gethostname-tests (Files): Likewise.
10993         * modules/getline-tests (Files): Likewise.
10994         * modules/getopt-posix-tests (Files): Likewise.
10995         * modules/gettimeofday-tests (Files): Likewise.
10996         * modules/glob-tests (Files): Likewise.
10997         * modules/iconv-tests (Files): Likewise.
10998         * modules/inet_ntop-tests (Files): Likewise.
10999         * modules/inet_pton-tests (Files): Likewise.
11000         * modules/isblank-tests (Files): Likewise.
11001         * modules/lchown-tests (Files): Likewise.
11002         * modules/ldexpl-tests (Files): Likewise.
11003         * modules/link-tests (Files): Likewise.
11004         * modules/linkat-tests (Files): Likewise.
11005         * modules/lseek-tests (Files): Likewise.
11006         * modules/lstat-tests (Files): Likewise.
11007         * modules/mbrtowc-tests (Files): Likewise.
11008         * modules/mbsinit-tests (Files): Likewise.
11009         * modules/mbsnrtowcs-tests (Files): Likewise.
11010         * modules/mbsrtowcs-tests (Files): Likewise.
11011         * modules/memchr-tests (Files): Likewise.
11012         * modules/memcmp-tests (Files): Likewise.
11013         * modules/memmem-tests (Files): Likewise.
11014         * modules/memrchr-tests (Files): Likewise.
11015         * modules/mkdir-tests (Files): Likewise.
11016         * modules/mkfifo-tests (Files): Likewise.
11017         * modules/mkfifoat-tests (Files): Likewise.
11018         * modules/mknod-tests (Files): Likewise.
11019         * modules/nanosleep-tests (Files): Likewise.
11020         * modules/nl_langinfo-tests (Files): Likewise.
11021         * modules/obstack-printf-tests (Files): Likewise.
11022         * modules/open-tests (Files): Likewise.
11023         * modules/openat-tests (Files): Likewise.
11024         * modules/perror-tests (Files): Likewise.
11025         * modules/pipe2-tests (Files): Likewise.
11026         * modules/poll-tests (Files): Likewise.
11027         * modules/popen-tests (Files): Likewise.
11028         * modules/posix_spawn-tests (Files): Likewise.
11029         * modules/posix_spawnp-tests (Files): Likewise.
11030         * modules/pread-tests (Files): Likewise.
11031         * modules/printf-posix-tests (Files): Likewise.
11032         * modules/pty-tests (Files): Likewise.
11033         * modules/random_r-tests (Files): Likewise.
11034         * modules/rawmemchr-tests (Files): Likewise.
11035         * modules/readlink-tests (Files): Likewise.
11036         * modules/remove-tests (Files): Likewise.
11037         * modules/rename-tests (Files): Likewise.
11038         * modules/renameat-tests (Files): Likewise.
11039         * modules/rmdir-tests (Files): Likewise.
11040         * modules/round-tests (Files): Likewise.
11041         * modules/roundf-tests (Files): Likewise.
11042         * modules/roundl-tests (Files): Likewise.
11043         * modules/select-tests (Files): Likewise.
11044         * modules/setenv-tests (Files): Likewise.
11045         * modules/sigaction-tests (Files): Likewise.
11046         * modules/sleep-tests (Files): Likewise.
11047         * modules/snprintf-posix-tests (Files): Likewise.
11048         * modules/snprintf-tests (Files): Likewise.
11049         * modules/sprintf-posix-tests (Files): Likewise.
11050         * modules/stat-tests (Files): Likewise.
11051         * modules/strcasestr-tests (Files): Likewise.
11052         * modules/strchrnul-tests (Files): Likewise.
11053         * modules/strerror-tests (Files): Likewise.
11054         * modules/strsignal-tests (Files): Likewise.
11055         * modules/strstr-tests (Files): Likewise.
11056         * modules/strtod-tests (Files): Likewise.
11057         * modules/strverscmp-tests (Files): Likewise.
11058         * modules/symlink-tests (Files): Likewise.
11059         * modules/symlinkat-tests (Files): Likewise.
11060         * modules/times-tests (Files): Likewise.
11061         * modules/trunc-tests (Files): Likewise.
11062         * modules/truncf-tests (Files): Likewise.
11063         * modules/truncl-tests (Files): Likewise.
11064         * modules/tsearch-tests (Files): Likewise.
11065         * modules/uname-tests (Files): Likewise.
11066         * modules/unlink-tests (Files): Likewise.
11067         * modules/unsetenv-tests (Files): Likewise.
11068         * modules/usleep-tests (Files): Likewise.
11069         * modules/utimensat-tests (Files): Likewise.
11070         * modules/vasprintf-tests (Files): Likewise.
11071         * modules/vdprintf-posix-tests (Files): Likewise.
11072         * modules/vfprintf-posix-tests (Files): Likewise.
11073         * modules/vprintf-posix-tests (Files): Likewise.
11074         * modules/vsnprintf-posix-tests (Files): Likewise.
11075         * modules/vsnprintf-tests (Files): Likewise.
11076         * modules/vsprintf-posix-tests (Files): Likewise.
11077         * modules/wcrtomb-tests (Files): Likewise.
11078         * modules/wcsnrtombs-tests (Files): Likewise.
11079         * modules/wcsrtombs-tests (Files): Likewise.
11080         * modules/wcwidth-tests (Files): Likewise.
11081         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11082         * tests/test-isinf.c (isinf): Likewise.
11083         * tests/test-isnan.c (isnan): Likewise.
11084         * tests/test-signbit.c (signbit): Likewise.
11085         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11086         declaration, either as macro or with correct signature.
11087         (select): Ensure function under test is declared with correct
11088         signature in correct header.
11089         * tests/test-atexit.c (atexit): Likewise.
11090         * tests/test-btowc.c (btowc): Likewise.
11091         * tests/test-canonicalize-lgpl.c (realpath)
11092         (canonicalize_file_name): Likewise.
11093         * tests/test-ceilf1.c (ceilf): Likewise.
11094         * tests/test-ceill.c (ceill): Likewise.
11095         * tests/test-chown.c (chown): Likewise.
11096         * tests/test-dprintf-posix.c (dprintf): Likewise.
11097         * tests/test-dup2.c (dup2): Likewise.
11098         * tests/test-dup3.c (dup3): Likewise.
11099         * tests/test-duplocale.c (duplocale): Likewise.
11100         * tests/test-fchdir.c (fchdir): Likewise.
11101         * tests/test-fchownat.c (fchownat): Likewise.
11102         * tests/test-fcntl.c (fcntl): Likewise.
11103         * tests/test-fdopendir.c (fdopendir): Likewise.
11104         * tests/test-fflush.c (fflush): Likewise.
11105         * tests/test-flock.c (flock): Likewise.
11106         * tests/test-floorf1.c (floorf): Likewise.
11107         * tests/test-floorl.c (floorl): Likewise.
11108         * tests/test-fnmatch.c (fnmatch): Likewise.
11109         * tests/test-fopen.c (fopen): Likewise.
11110         * tests/test-fprintf-posix.c (fprintf): Likewise.
11111         * tests/test-freopen.c (freopen): Likewise.
11112         * tests/test-frexp.c (frexp): Likewise.
11113         * tests/test-frexpl.c (frexpl): Likewise.
11114         * tests/test-fseek.c (fseek): Likewise.
11115         * tests/test-fseeko.c (fseeko): Likewise.
11116         * tests/test-fstatat.c (fstatat): Likewise.
11117         * tests/test-fsync.c (fsync): Likewise.
11118         * tests/test-ftell.c (ftell): Likewise.
11119         * tests/test-ftello.c (ftello): Likewise.
11120         * tests/test-futimens.c (futimens): Likewise.
11121         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11122         (gai_strerror): Likewise.
11123         * tests/test-getcwd.c (getcwd): Likewise.
11124         * tests/test-getdelim.c (getdelim): Likewise.
11125         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11126         * tests/test-getgroups.c (getgroups): Likewise.
11127         * tests/test-gethostname.c (gethostname): Likewise.
11128         * tests/test-getline.c (getline): Likewise.
11129         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11130         Likewise.
11131         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11132         * tests/test-glob.c (glob, globfree): Likewise.
11133         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11134         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11135         * tests/test-inet_pton.c (inet_pton): Likewise.
11136         * tests/test-isblank.c (isblank): Likewise.
11137         * tests/test-lchown.c (lchown): Likewise.
11138         * tests/test-ldexpl.c (ldexpl): Likewise.
11139         * tests/test-link.c (link): Likewise.
11140         * tests/test-linkat.c (linkat): Likewise.
11141         * tests/test-lseek.c (lseek): Likewise.
11142         * tests/test-lstat.c (lstat): Likewise.
11143         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11144         * tests/test-mbsinit.c (mbsinit): Likewise.
11145         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11146         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11147         * tests/test-memchr.c (memchr): Likewise.
11148         * tests/test-memcmp.c (memcmp): Likewise.
11149         * tests/test-memmem.c (memmem): Likewise.
11150         * tests/test-memrchr.c (memrchr): Likewise.
11151         * tests/test-mkdir.c (mkdir): Likewise.
11152         * tests/test-mkdirat.c (mkdirat): Likewise.
11153         * tests/test-mkfifo.c (mkfifo): Likewise.
11154         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11155         * tests/test-mknod.c (mknod): Likewise.
11156         * tests/test-nanosleep.c (nanosleep): Likewise.
11157         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11158         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11159         Likewise.
11160         * tests/test-open.c (open): Likewise.
11161         * tests/test-openat.c (openat): Likewise.
11162         * tests/test-perror.c (perror): Likewise.
11163         * tests/test-pipe2.c (pipe2): Likewise.
11164         * tests/test-poll.c (poll): Likewise.
11165         * tests/test-popen.c (popen, pclose): Likewise.
11166         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11167         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11168         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11169         (posix_spawn_file_actions_destroy)
11170         (posix_spawn_file_actions_addclose)
11171         (posix_spawn_file_actions_addopen)
11172         (posix_spawn_file_actions_adddup2): Likewise.
11173         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11174         * tests/test-pread.c (pread): Likewise.
11175         * tests/test-printf-posix.c (printf): Likewise.
11176         * tests/test-pty.c (openpty, forkpty): Likewise.
11177         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11178         (random_r): Likewise.
11179         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11180         * tests/test-readlink.c (readlink): Likewise.
11181         * tests/test-remove.c (remove): Likewise.
11182         * tests/test-rename.c (rename): Likewise.
11183         * tests/test-renameat.c (renameat): Likewise.
11184         * tests/test-rmdir.c (rmdir): Likewise.
11185         * tests/test-round1.c (round): Likewise.
11186         * tests/test-roundf1.c (roundf): Likewise.
11187         * tests/test-roundl.c (roundl): Likewise.
11188         * tests/test-setenv.c (setenv): Likewise.
11189         * tests/test-sigaction.c (sigaction): Likewise.
11190         * tests/test-sleep.c (sleep): Likewise.
11191         * tests/test-snprintf.c (snprintf): Likewise.
11192         * tests/test-sprintf-posix.c (sprintf): Likewise.
11193         * tests/test-stat.c (stat): Likewise.
11194         * tests/test-stpncpy.c (stpncpy): Likewise.
11195         * tests/test-strcasestr.c (strcasestr): Likewise.
11196         * tests/test-strchrnul.c (strchrnul): Likewise.
11197         * tests/test-strerror.c (strerror): Likewise.
11198         * tests/test-strsignal.c (strsignal): Likewise.
11199         * tests/test-strstr.c (strstr): Likewise.
11200         * tests/test-strtod.c (strtod): Likewise.
11201         * tests/test-strverscmp.c (strverscmp): Likewise.
11202         * tests/test-symlink.c (symlink): Likewise.
11203         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11204         * tests/test-times.c (times): Likewise.
11205         * tests/test-trunc1.c (trunc): Likewise.
11206         * tests/test-truncf1.c (truncf): Likewise.
11207         * tests/test-truncl.c (truncl): Likewise.
11208         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11209         Likewise.
11210         * tests/test-uname.c (uname): Likewise.
11211         * tests/test-unlink.c (unlink): Likewise.
11212         * tests/test-unlinkat.c (unlinkat): Likewise.
11213         * tests/test-unsetenv.c (unsetenv): Likewise.
11214         * tests/test-usleep.c (usleep): Likewise.
11215         * tests/test-utimensat.c (utimensat): Likewise.
11216         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11217         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11218         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11219         * tests/test-vprintf-posix.c (vprintf): Likewise.
11220         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11221         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11222         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11223         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11224         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11225         * tests/test-wcwidth.c (wcwidth): Likewise.
11226
11227         build: pull in conditional headers during GNULIB_POSIXCHECK
11228         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11229         definitions from any conditionally-included headers.
11230         * lib/stdlib.in.h (includes): Likewise.
11231         * lib/unistd.in.h (includes): Likewise.
11232
11233 2009-12-24  Bruno Haible  <bruno@clisp.org>
11234
11235         * tests/test-argv-iter.c: Include header file being tested immediately
11236         after config.h.
11237         * tests/test-base64.c: Likewise.
11238         * tests/test-flock.c: Likewise.
11239         * tests/test-fsync.c: Likewise.
11240         * tests/test-getdate.c: Likewise.
11241         * tests/test-getndelim2.c: Likewise.
11242         * tests/test-isfinite.c: Likewise.
11243         * tests/test-isinf.c: Likewise.
11244         * tests/test-strerror.c: Likewise.
11245         * tests/test-strsignal.c: Likewise.
11246
11247 2009-12-23  Eric Blake  <ebb9@byu.net>
11248
11249         unistd: work around cygwin bug
11250         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11251         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11252         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11253
11254 2009-12-23  Bruno Haible  <bruno@clisp.org>
11255
11256         localename: More tests.
11257         * tests/test-localename.c (SIZEOF): New macro.
11258         (categories): New variable.
11259         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11260         test_locale_name_default): Add test w.r.t. thread locale.
11261         (test_locale_name_thread): New function.
11262         (main): Invoke it.
11263
11264         localename: Make aware of thread locale.
11265         * lib/localename.h (gl_locale_name_thread): New declaration.
11266         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11267         behaviour with respect to thread locale.
11268         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11269         <langinfo.h>, glthread/lock.h.
11270         (SIZE_BITS): New macro.
11271         (string_hash): New function.
11272         (struct hash_node): New type.
11273         (HASH_TABLE_SIZE): New macro.
11274         (struniq_hash_table, struniq_lock): New variables.
11275         (struniq): New function.
11276         (gl_locale_name_thread): New function.
11277         (gl_locale_name): Invoke it.
11278         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11279         * modules/localename (Depends-on): Add lock.
11280         Reported by Mike Gran <spk121@yahoo.com>.
11281
11282 2009-12-23  Eric Blake  <ebb9@byu.net>
11283
11284         va-args: new module
11285         * modules/va-args: New file.
11286         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11287         * MODULES.html.sh (Core language properties): Mention it.
11288
11289         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11290         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11291         named alias for __attribute__((__unused__)).
11292         * lib/chown.c: Update client.
11293         * lib/fchmodat.c: Likewise.
11294         * lib/fts.c: Likewise.
11295         * lib/getdate.y: Likewise.
11296         * lib/getgroups.c: Likewise.
11297         * lib/getopt.c: Likewise.
11298         * lib/getugroups.c: Likewise.
11299         * lib/mkdir.c: Likewise.
11300         * lib/mkfifo.c: Likewise.
11301         * lib/mkfifoat.c: Likewise.
11302         * lib/mknod.c: Likewise.
11303         * lib/mknodat.c: Likewise.
11304         * lib/readlink.c: Likewise.
11305         * lib/se-context.in.h: Likewise.
11306         * lib/se-selinux.in.h: Likewise.
11307         * lib/sockets.c: Likewise.
11308         * lib/symlink.c: Likewise.
11309         * lib/symlinkat.c: Likewise.
11310         * lib/unicodeio.c: Likewise.
11311         * lib/unistr.h: Likewise.
11312         * tests/test-areadlink.c: Likewise.
11313         * tests/test-areadlinkat.c: Likewise.
11314         * tests/test-filenamecat.c: Likewise.
11315         * tests/test-fseeko.c: Likewise.
11316         * tests/test-ftello.c: Likewise.
11317         * tests/test-getdate.c: Likewise.
11318         * tests/test-getgroups.c: Likewise.
11319         * tests/test-gethostname.c: Likewise.
11320         * tests/test-quotearg.c: Likewise.
11321         * tests/test-version-etc.c: Likewise.
11322         * tests/test-xalloc-die.c: Likewise.
11323         * tests/test-xfprintf-posix.c: Likewise.
11324         * tests/test-xprintf-posix.c: Likewise.
11325         * tests/test-xvasprintf.c: Likewise.
11326
11327         tests: avoid compiler warnings
11328         * tests/test-fcntl.c (main): Delete unused parameters.
11329         * tests/test-freopen-safer.c (main): Likewise.
11330         * tests/test-xalloc-die.c (main): Mark unused parameters.
11331         * tests/test-fseeko.c (main): Likewise.
11332         * tests/test-ftello.c (main): Likewise.
11333         * tests/test-nanosleep.c (main): Avoid declaration warning.
11334         * tests/test-sleep.c (main): Likewise.
11335         * tests/test-unsetenv.c (main): Silence warning about string
11336         literal.
11337         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11338
11339 2009-12-23  Bruno Haible  <bruno@clisp.org>
11340
11341         * tests/test-localename.c (test_locale_name): New function, extracted
11342         from main. Also test mixed situations.
11343         (test_locale_name_posix, test_locale_name_environ,
11344         test_locale_name_default): New functions.
11345         (main): Invoke them all.
11346         * modules/localename-tests (configure.ac): Test for newlocale.
11347
11348 2009-12-23  Bruno Haible  <bruno@clisp.org>
11349
11350         unistd: Ensure getcwd gets declared before being overridden.
11351         * lib/unistd.in.h: Conditionally include <io.h>.
11352
11353 2009-12-22  Bruno Haible  <bruno@clisp.org>
11354
11355         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11356         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11357         (gl_WCHAR_H): Invoke it.
11358         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11359         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11360         Reported by Karl Berry <karl@freefriends.org>.
11361
11362 2009-12-22  Eric Blake  <ebb9@byu.net>
11363
11364         math, unistd: avoid redundant includes
11365         * lib/math.in.h (isnan): No need to re-include <math.h>.
11366         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11367
11368         getsubopt: work around cygwin bug
11369         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11370         avoid conflicting with system getsubopt.
11371         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11372         bug.
11373
11374         getopt: synchronize from glibc
11375         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11376         parameter order.  Adjust all callers.
11377         (_getopt_internal_r, main): Adjust quoting in error messages.
11378         Drop considerations for outdated POSIX 1003.2 error message.
11379         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11380         callers.
11381         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11382
11383         test-getopt: test stderr behavior
11384         * modules/getopt-posix-tests (Depends-on): Add dup2.
11385         * tests/test-getopt.c (ASSERT): Avoid stderr.
11386         (main): Move stderr to a temporary file.
11387         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11388         Instead, add parameter to inform caller if output occurred.
11389         (test_getopt): Adjust all existing tests to expect silence, and
11390         add new tests of leading ":".
11391         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11392         glibc shortcomings with leading "-:" or "+:" in optstring.
11393         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11394         Likewise.
11395         * doc/posix-functions/getopt.texi (getopt): Likewise.
11396
11397         test-getopt: enhance test
11398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11399         supports optind=0.
11400         * tests/test-getopt.c (OPTIND_MIN): Move...
11401         * tests/test-getopt.h (OPTIND_MIN): ...here.
11402         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11403         Require that optind=0 works, since modern BSD supports it in
11404         addition to optreset, and since coreutils expects it.
11405         (test_getopt_long_only): New test.
11406         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11407         glibc shortcomings with 'W;', and enforcement of optind=0.
11408         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11409         Likewise.
11410
11411 2009-12-21  Bruno Haible  <bruno@clisp.org>
11412
11413         localename: Improvements for MacOS X and Cygwin.
11414         * lib/localename.h (gl_locale_name_environ): New declaration.
11415         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11416         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11417         (gl_locale_name_posix): Invoke it.
11418         (gl_locale_name_default): Add comments. Use Windows native API also on
11419         Cygwin.
11420
11421 2009-12-21  Bruno Haible  <bruno@clisp.org>
11422
11423         Update list of Win32 locale ids.
11424         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11425         (LANG_SAMI): Renamed from LANG_SAAMI.
11426         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11427         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11428         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11429         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11430         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11431         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11432         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11433         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11434         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11435         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11436         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11437         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11438         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11439         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11440         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11441         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11442         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11443         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11444         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11445         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11446         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11447         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11448         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11449         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11450         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11451         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11452         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11453         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11454         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11455         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11456         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11457         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11458         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11459         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11460         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11461         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11462         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11463         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11464         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11465         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11466         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11467         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11468         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11469         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11470         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11471         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11472         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11473         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11474         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11475         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11476         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11477         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11478         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11479         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11480         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11481         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11482         Add more languages and countries for Sami, Sorbian. Add more countries
11483         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11484         for Pashto. Change country for Syriac, Tswana.
11485
11486 2009-12-21  Eric Blake  <ebb9@byu.net>
11487
11488         test-utimens: avoid spurious failure
11489         * tests/test-chown.h (nap): Factor...
11490         * tests/nap.h: ...into new file.
11491         * tests/test-lchown.h (nap): Avoid duplication.
11492         * tests/test-utimens-common.h (nap): Use shared implementation,
11493         necessary on file systems with 1-second resolution.
11494         * modules/chown-tests (Files): Include new file.
11495         * modules/fdutimensat-tests (Files): Likewise.
11496         * modules/futimens-tests (Files): Likewise.
11497         * modules/lchown-tests (Files): Likewise.
11498         * modules/openat-tests (Files): Likewise.
11499         * modules/utimens-tests (Files): Likewise.
11500         * modules/utimensat-tests (Files): Likewise.
11501
11502 2009-12-19  Eric Blake  <ebb9@byu.net>
11503
11504         futimens, utimensat: work around Linux bug
11505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11506         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11507         * lib/utimensat.c (rpl_utimensat): Work around it.
11508         * lib/futimens.c (rpl_futimens): Adjust comment.
11509
11510         utimens: work around Linux ctime bug
11511         * lib/utimens.c (detect_ctime_bug): New helper function.
11512         (update_timespec): Differentiate between workaround needed for
11513         this bug vs. what is needed for systems that lack utimensat.
11514         (fdutimens, lutimens): Work around bug.
11515
11516         utimens: check for ctime update
11517         * tests/test-utimens-common.h (check_ctime): Define.
11518         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11519         * tests/test-futimens.h (test_futimens): Likewise.
11520         * tests/test-lutimens.h (test_lutimens): Likewise.
11521         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11522         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11523
11524 2009-12-19  Bruno Haible  <bruno@clisp.org>
11525
11526         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11527         * tests/test-dprintf-posix2.sh: New file.
11528         * tests/test-dprintf-posix2.c: New file.
11529         * modules/dprintf-posix-tests (Files): Add them.
11530         (configure.ac): Check for getrlimit and setrlimit.
11531         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11532
11533 2009-12-19  Bruno Haible  <bruno@clisp.org>
11534
11535         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11536         * tests/test-fprintf-posix3.sh: New file.
11537         * tests/test-fprintf-posix3.c: New file.
11538         * modules/fprintf-posix-tests (Files): Add them.
11539         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11540
11541 2009-12-19  Eric Blake  <ebb9@byu.net>
11542
11543         dirfd: fix prototype
11544         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11545         * lib/dirfd.c (dirfd): Likewise.
11546
11547         canonicalize: reduce memory usage
11548         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11549         allocation to size.
11550         Reported by Solar Designer <solar@openwall.com>.
11551
11552 2009-12-19  Bruno Haible  <bruno@clisp.org>
11553
11554         New module attribute 'Applicability'.
11555         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11556         * gnulib-tool: New option --extract-applicability.
11557         (func_usage): Document it.
11558         (sed_extract_prog): Recognize it.
11559         (func_get_applicability): New function.
11560         (func_import): Generalize handling of 'link-warning' module.
11561         * modules/link-warning (Applicability): New section.
11562         * modules/arg-nonnull (Applicability): New section.
11563         Repoted by Simon Josefsson <simon@josefsson.org>.
11564
11565 2009-12-19  Bruno Haible  <bruno@clisp.org>
11566
11567         fflush: tweak
11568         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11569         * lib/fseeko.c (rpl_fseeko): Likewise.
11570
11571 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11572
11573         * lib/gl_list.h: Fix typo in comment.
11574
11575 2009-12-16  Eric Blake  <ebb9@byu.net>
11576
11577         fcntl: use to simplify other modules
11578         * modules/cloexec (Depends-on): Add fcntl.
11579         * modules/fchdir (Depends-on): Likewise.
11580         * modules/fd-safer-flag (Depends-on): Likewise.
11581         * modules/unistd-safer (Depends-on): Likewise.
11582         * modules/dup3 (configure.ac): Set module indicator.
11583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11584         missing.
11585         * lib/fchdir.c (_gl_register_dup): Fix comment.
11586         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11587         * lib/dup-safer.c (dup_safer): Likewise.
11588         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11589         * lib/dup3.c (dup3): Likewise.
11590         * tests/test-fchdir.c (main): Enhance test.
11591         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11592
11593         fcntl: port portions of fcntl to mingw
11594         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11595         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11596         replacement for mingw.
11597         * modules/fcntl (Description): Update.
11598         (Depends-on): Add dup2.
11599         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11600         * modules/fcntl-h (Makefile.am): Substitute it.
11601         * lib/fcntl.in.h (fcntl): Update declaration.
11602         (F_DUPFD, F_GETFD): New macros, when needed.
11603         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11604         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11605         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11606         we now guarantee.
11607
11608         fcntl: work around cygwin bug in F_DUPFD
11609         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11610         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11611         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11612         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11613         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11614
11615         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11616         * modules/fcntl (Files): List new files.
11617         (configure.ac): Run a test.
11618         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11619         * lib/fcntl.c (rpl_fcntl): Likewise.
11620         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11621         (gl_FCNTL_H): Always replace fcntl.h.
11622         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11623         * lib/fcntl.in.h (fcntl): Declare replacement.
11624         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11625         needed, plus a witness.
11626         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11627         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11628         * tests/test-fcntl.c: New file.
11629         * modules/fcntl-tests: Likewise.
11630
11631         binary-io: avoid potential compilation warning
11632         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11633         directives.
11634
11635         fflush: avoid compilation error on NetBSD
11636         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11637         between off_t and fpos_t, since the latter is sometimes a struct.
11638         * lib/fseeko.c (rpl_fseeko): Likewise.
11639         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11640
11641 2009-12-15  Eric Blake  <ebb9@byu.net>
11642
11643         fcntl-h, stdio, sys_ioctl: fix declarations
11644         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11645         function must not take arguments.
11646         * lib/sys_ioctl.in.h (ioctl): Likewise.
11647         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11648         (open): Add a link warning.
11649
11650 2009-12-15  Jim Meyering  <meyering@redhat.com>
11651
11652         areadlink, areadlink-with-size: relax license to LGPLv2+
11653         * modules/areadlink (License): Relax to LGPLv2+.
11654         * modules/areadlink-with-size (License): Likewise.
11655
11656 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11657             Bruno Haible  <bruno@clisp.org>
11658
11659         *printf: Fix memory leak.
11660         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11661         * lib/vfprintf.c (vfprintf): Likewise.
11662         * lib/dprintf.c (dprintf): Likewise.
11663         * lib/vdprintf.c (vdprintf): Likewise.
11664
11665 2009-12-14  Eric Blake  <ebb9@byu.net>
11666
11667         accept4: adjust module dependencies
11668         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11669
11670         utimens: one more try at avoiding compiler warning
11671         * lib/utimens.c (lutimens): Lower scope of result.
11672
11673 2009-12-13  Bruno Haible  <bruno@clisp.org>
11674
11675         Move the malloc checking from module 'list' to new module 'xlist'.
11676         * modules/xlist: New file.
11677         * lib/gl_xlist.h: New file.
11678         * lib/gl_xlist.c: New file.
11679         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11680         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11681         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11682         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11683         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11684         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11685         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11686         gl_sortedlist_nx_add): New declarations.
11687         (struct gl_list_implementation): Rename and change methods accordingly.
11688         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11689         (gl_list_nx_create): Renamed from gl_list_create.
11690         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11691         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11692         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11693         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11694         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11695         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11696         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11697         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11698         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11699         gl_list_create_empty.
11700         (gl_list_nx_create): Renamed from gl_list_create.
11701         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11702         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11703         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11704         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11705         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11706         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11707         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11708         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11709         * lib/gl_array_list.c: Don't include xalloc.h.
11710         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11711         NULL upon out-of-memory.
11712         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11713         out-of-memory.
11714         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11715         Change return type to 'int'.
11716         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11717         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11718         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11719         upon out-of-memory.
11720         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11721         upon out-of-memory.
11722         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11723         upon out-of-memory.
11724         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11725         upon out-of-memory.
11726         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11727         out-of-memory.
11728         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11729         Update.
11730         (gl_array_list_implementation): Update.
11731         * lib/gl_carray_list.c: Don't include xalloc.h.
11732         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11733         Return NULL upon out-of-memory.
11734         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11735         out-of-memory.
11736         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11737         Change return type to 'int'.
11738         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11739         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11740         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11741         upon out-of-memory.
11742         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11743         upon out-of-memory.
11744         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11745         out-of-memory.
11746         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11747         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11748         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11749         Update.
11750         (gl_carray_list_implementation): Update.
11751         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11752         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11753         gl_linked_create_empty. Return NULL upon out-of-memory.
11754         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11755         out-of-memory.
11756         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11757         Change return type to 'int'. Return -1 upon out-of-memory.
11758         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11759         out-of-memory.
11760         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11761         upon out-of-memory.
11762         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11763         upon out-of-memory.
11764         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11765         NULL upon out-of-memory.
11766         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11767         upon out-of-memory.
11768         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11769         out-of-memory.
11770         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11771         Update.
11772         * lib/gl_linked_list.c: Don't include xalloc.h.
11773         (gl_linked_list_implementation): Update.
11774         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11775         (add_to_bucket): Change return type to 'int'.
11776         (gl_linkedhash_list_implementation): Update.
11777         * lib/gl_anytree_list1.h (free_subtree): New function.
11778         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11779         gl_tree_create_empty. Return NULL upon out-of-memory.
11780         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11781         Change return type to 'int'. Return -1 upon out-of-memory.
11782         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11783         out-of-memory.
11784         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11785         (gl_tree_remove_node): New function, moved here from
11786         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11787         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11788         Update.
11789         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11790         malloc, not xmalloc. Return NULL upon out-of-memory.
11791         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11792         out-of-memory.
11793         (gl_tree_remove_node_from_tree): New function, extracted from
11794         gl_tree_remove_node.
11795         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11796         upon out-of-memory.
11797         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11798         out-of-memory.
11799         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11800         upon out-of-memory.
11801         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11802         upon out-of-memory.
11803         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11804         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11805         not xmalloc. Return NULL upon out-of-memory.
11806         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11807         out-of-memory.
11808         (gl_tree_remove_node_from_tree): New function, extracted from
11809         gl_tree_remove_node.
11810         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11811         upon out-of-memory.
11812         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11813         out-of-memory.
11814         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11815         upon out-of-memory.
11816         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11817         upon out-of-memory.
11818         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11819         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11820         gl_anytree_list1.h before gl_anyavltree_list2.h.
11821         (gl_avltree_list_implementation): Update.
11822         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11823         gl_anytree_list1.h before gl_anyavltree_list2.h.
11824         (gl_rbtree_list_implementation): Update.
11825         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11826         Change return type to 'int'. Return -1 upon out-of-memory. Use
11827         __builtin_expect.
11828         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11829         (gl_avltreehash_list_implementation): Update.
11830         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11831         (gl_rbtreehash_list_implementation): Update.
11832         * modules/array-list (Depends-on): Remove xalloc.
11833         * modules/carray-list (Depends-on): Likewise.
11834         * modules/linked-list (Depends-on): Likewise.
11835         * modules/linkedhash-list (Depends-on): Likewise.
11836         * modules/avltree-list (Depends-on): Likewise.
11837         * modules/rbtree-list (Depends-on): Likewise.
11838         * modules/avltreehash-list (Depends-on): Likewise.
11839         * modules/rbtreehash-list (Depends-on): Likewise.
11840
11841         * modules/xsublist: New file.
11842         * lib/gl_xsublist.h: New file.
11843         * lib/gl_xsublist.c: New file.
11844         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11845         (gl_sublist_nx_create): New declaration.
11846         * lib/gl_sublist.c: Don't include xalloc.h.
11847         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11848         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11849         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11850         Change return type to 'int'. Return -1 upon out-of-memory.
11851         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11852         upon out-of-memory.
11853         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11854         NULL upon out-of-memory.
11855         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11856         upon out-of-memory.
11857         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11858         NULL upon out-of-memory.
11859         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11860         NULL upon out-of-memory.
11861         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11862         upon out-of-memory.
11863         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11864         (gl_sublist_list_implementation): Update.
11865         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11866         upon out-of-memory.
11867         * modules/sublist (Depends-on): Remove xalloc.
11868
11869         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11870         * tests/test-carray_list.c: Likewise.
11871         * tests/test-linked_list.c: Likewise.
11872         * tests/test-linkedhash_list.c: Likewise.
11873         * tests/test-avltree_list.c: Likewise.
11874         * tests/test-rbtree_list.c: Likewise.
11875         * tests/test-avltreehash_list.c: Likewise.
11876         * tests/test-rbtreehash_list.c: Likewise.
11877         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11878         * modules/carray-list-tests (Makefile.am): Likewise.
11879         * modules/linked-list-tests (Makefile.am): Likewise.
11880         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11881         * modules/avltree-list-tests (Makefile.am): Likewise.
11882         * modules/rbtree-list-tests (Makefile.am): Likewise.
11883         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11884         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11885
11886         * NEWS: Mention the changes.
11887
11888         * lib/clean-temp.c: Include gl_xlist.h.
11889         * modules/clean-temp (Depends-on): Add xlist.
11890
11891         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11892         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11893
11894         * tests/test-array_oset.c: Include gl_xlist.h.
11895         * modules/array-oset-tests (Depends-on): Add xlist.
11896
11897         Reported by José E. Marchesi <jemarch@gnu.org>.
11898
11899 2009-12-13  Bruno Haible  <bruno@clisp.org>
11900
11901         Move the malloc checking from module 'oset' to new module 'xoset'.
11902         * modules/xoset: New file.
11903         * lib/gl_xoset.h: New file.
11904         * lib/gl_xoset.c: New file.
11905         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11906         declarations.
11907         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11908         (struct gl_oset_implementation): Rename and change methods accordingly.
11909         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11910         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11911         'int'. Mark as __warn_unused_result__.
11912         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11913         gl_oset_create_empty.
11914         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11915         'int'.
11916         * lib/gl_array_oset.c: Don't include xalloc.h.
11917         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11918         malloc, not xmalloc.
11919         (grow): Change return type to 'int'. Don't call xalloc_die.
11920         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11921         to 'int'.
11922         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11923         'int'.
11924         (gl_array_oset_implementation): Update.
11925         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11926         gl_tree_create_empty.
11927         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11928         'int'.
11929         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11930         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11931         xmalloc.
11932         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11933         not xmalloc.
11934         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11935         xmalloc.
11936         (gl_avltree_oset_implementation): Update.
11937         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11938         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11939         xmalloc.
11940         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11941         not xmalloc.
11942         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11943         xmalloc.
11944         (gl_rbtree_oset_implementation): Update.
11945         * modules/array-oset (Depends-on): Remove xalloc.
11946         * modules/avltree-oset (Depends-on): Likewise.
11947         * modules/rbtree-oset (Depends-on): Likewise.
11948         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11949         * tests/test-avltree_oset.c: Likewise.
11950         * tests/test-rbtree_oset.c: Likewise.
11951         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11952         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11953         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11954         * NEWS: Mention the change.
11955
11956 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11957
11958         maint.mk: allow a project to override release-prep commands
11959         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11960         commands into a new rule.
11961         (release-prep): New rule.
11962         (release-prep-hook): New overridable variable.
11963
11964 2009-12-13  Bruno Haible  <bruno@clisp.org>
11965
11966         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11967
11968 2009-12-13  Jim Meyering  <meyering@redhat.com>
11969
11970         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11971         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11972
11973 2009-12-12  Bruno Haible  <bruno@clisp.org>
11974
11975         duplocale: Tweak.
11976         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11977
11978 2009-12-12  Karl Berry  <karl@gnu.org>
11979
11980         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11981
11982 2009-12-12  Bruno Haible  <bruno@clisp.org>
11983
11984         * m4/po.m4: Undo incorrect untabification.
11985
11986 2009-12-12  Bruno Haible  <bruno@clisp.org>
11987
11988         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11989         * modules/c-strtod (Depends-on): Add locale.
11990         * modules/c-strtold (Depends-on): Likewise.
11991
11992 2009-12-12  Bruno Haible  <bruno@clisp.org>
11993
11994         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11995
11996 2009-12-11  Eric Blake  <ebb9@byu.net>
11997
11998         setenv: relax requirement in light of POSIX ruling
11999         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12000         not NULL.
12001         * tests/test-setenv.c (main): Relax test.
12002         * tests/test-unsetenv.c (main): Likewise.
12003         * doc/posix-functions/setenv.texi (setenv): Document this.
12004         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12005
12006 2009-12-11  Bruno Haible  <bruno@clisp.org>
12007
12008         New module 'fd-safer-flag'.
12009         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12010         * lib/dup-safer.c (dup_safer_flag): Remove function.
12011         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12012         * lib/fd-safer.c (fd_safer_flag): Remove function.
12013         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12014         * modules/cloexec (configure.ac): Drop indicator macro.
12015         * modules/fd-safer-flag: New file.
12016         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12017         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12018         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12019
12020 2009-12-11  Bruno Haible  <bruno@clisp.org>
12021
12022         Tests for module 'nl_langinfo'.
12023         * modules/nl_langinfo-tests: New file.
12024         * tests/test-nl_langinfo.sh: New file.
12025         * tests/test-nl_langinfo.c: New file.
12026
12027         New module 'nl_langinfo'.
12028         * lib/nl_langinfo.c: New file.
12029         * m4/nl_langinfo.m4: New file.
12030         * modules/nl_langinfo: New file.
12031         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12032
12033 2009-12-11  Bruno Haible  <bruno@clisp.org>
12034
12035         Tests for module 'langinfo'.
12036         * modules/langinfo-tests: New file.
12037         * tests/test-langinfo.c: New file.
12038
12039         New module 'langinfo'.
12040         * lib/langinfo.in.h: New file.
12041         * m4/langinfo_h.m4: New file.
12042         * modules/langinfo: New file.
12043         * doc/posix-headers/langinfo.texi: Mention the new module.
12044
12045 2009-12-11  Bruno Haible  <bruno@clisp.org>
12046
12047         * lib/config.charset: Untabify.
12048
12049 2009-12-11  Bruno Haible  <bruno@clisp.org>
12050
12051         * modules/unistd-safer (configure.ac): Drop indicator macro.
12052
12053 2009-12-11  Bruno Haible  <bruno@clisp.org>
12054
12055         Move pipe2-safer code to its own file.
12056         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12057         * lib/pipe-safer.c (pipe2_safer): Remove function.
12058         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12059         (Makefile.am): Add it to lib_SOURCES.
12060
12061 2009-12-10  Bruno Haible  <bruno@clisp.org>
12062
12063         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12064
12065 2009-12-10  Bruno Haible  <bruno@clisp.org>
12066
12067         Declare which arguments expect non-NULL values, for GCC and clang.
12068         * build-aux/arg-nonnull.h: New file.
12069         * modules/arg-nonnull: New file.
12070         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12071         (inet_ntop, inet_pton): Use it.
12072         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12073         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12074         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12075         (open, openat): Use it.
12076         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12077         (fnmatch): Use it.
12078         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12079         (getopt, getopt_long, getopt_long_only): Use it.
12080         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12081         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12082         Use it.
12083         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12084         (iconv_open): Use it.
12085         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12086         (strtoimax, strtoumax): Use it.
12087         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12088         (duplocale): Use it.
12089         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12090         (frexp, frexpl): Use it.
12091         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12092         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12093         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12094         (tsearch, tfind, tdelete, twalk): Use it.
12095         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12096         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12097         sigpending): Use it.
12098         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12099         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12100         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12101         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12102         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12103         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12104         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12105         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12106         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12107         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12108         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12109         Use it.
12110         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12111         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12112         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12113         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12114         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12115         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12116         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12117         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12118         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12119         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12120         strtoull, unsetenv): Use it.
12121         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12122         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12123         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12124         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12125         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12126         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12127         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12128         (strcasecmp, strncasecmp): Use it.
12129         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12130         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12131         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12132         rpl_setsockopt): Use it.
12133         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12134         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12135         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12136         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12137         (gettimeofday): Use it.
12138         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12139         (times): Use it.
12140         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12141         (uname): Use it.
12142         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12143         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12144         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12145         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12146         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12147         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12148         unlinkat, write): Use it.
12149         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12150         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12151         * lib/argv-iter.h: Include arg-nonnull.h.
12152         (_ATTRIBUTE_NONNULL_): Remove macro.
12153         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12154         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12155         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12156         optimization.
12157         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12158         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12159         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12160         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12161         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12162         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12163         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12164         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12165         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12166         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12167         * modules/dirent (Depends-on): Add arg-nonnull.
12168         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12169         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12170         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12171         * modules/fnmatch (Depends-on): Add arg-nonnull.
12172         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12173         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12174         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12175         * modules/glob (Depends-on): Add arg-nonnull.
12176         (Makefile.am): Insert arg-nonnull.h into glob.h.
12177         * modules/iconv_open (Depends-on): Add arg-nonnull.
12178         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12179         * modules/inttypes (Depends-on): Add arg-nonnull.
12180         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12181         * modules/locale (Depends-on): Add arg-nonnull.
12182         (Makefile.am): Insert arg-nonnull.h into locale.h.
12183         * modules/math (Depends-on): Add arg-nonnull.
12184         (Makefile.am): Insert arg-nonnull.h into math.h.
12185         * modules/netdb (Depends-on): Add arg-nonnull.
12186         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12187         * modules/search (Depends-on): Add arg-nonnull.
12188         (Makefile.am): Insert arg-nonnull.h into search.h.
12189         * modules/signal (Depends-on): Add arg-nonnull.
12190         (Makefile.am): Insert arg-nonnull.h into signal.h.
12191         * modules/spawn (Depends-on): Add arg-nonnull.
12192         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12193         * modules/stdio (Depends-on): Add arg-nonnull.
12194         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12195         * modules/stdlib (Depends-on): Add arg-nonnull.
12196         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12197         * modules/string (Depends-on): Add arg-nonnull.
12198         (Makefile.am): Insert arg-nonnull.h into string.h.
12199         * modules/strings (Depends-on): Add arg-nonnull.
12200         (Makefile.am): Insert arg-nonnull.h into strings.h.
12201         * modules/sys_socket (Depends-on): Add arg-nonnull.
12202         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12203         * modules/sys_stat (Depends-on): Add arg-nonnull.
12204         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12205         * modules/sys_time (Depends-on): Add arg-nonnull.
12206         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12207         * modules/sys_times (Depends-on): Add arg-nonnull.
12208         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12209         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12210         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12211         * modules/time (Depends-on): Add arg-nonnull.
12212         (Makefile.am): Insert arg-nonnull.h into time.h.
12213         * modules/unistd (Depends-on): Add arg-nonnull.
12214         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12215         * modules/wchar (Depends-on): Add arg-nonnull.
12216         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12217         * modules/argv-iter (Depends-on): Add arg-nonnull.
12218         * tests/test-canonicalize.c (null_ptr): New function.
12219         (main): Use it.
12220         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12221         (main): Use it.
12222         * tests/test-memmem.c (null_ptr): New function.
12223         (main): Use it.
12224         Reported by Jim Meyering.
12225
12226 2009-12-10  Bruno Haible  <bruno@clisp.org>
12227
12228         Use spaces for indentation, not tabs.
12229         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12230         * m4/*.m4: Untabify.
12231         * build-aux/*.h: Untabify.
12232         * tests/**/*.[hc]: Untabify.
12233         * README: New section "Indent with spaces, not TABs", based on
12234         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12235         * NEWS: Mention the change.
12236
12237 2009-12-10  Bruno Haible  <bruno@clisp.org>
12238
12239         pty test: Fix link error.
12240         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12241         test_pty_LDADD.
12242
12243 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12244
12245         * modules/pty: New file.
12246         * modules/pty-tests: New file.
12247         * m4/pty.m4: New file.
12248         * tests/test-pty.c: New file.
12249         * doc/glibc-headers/pty.texi: Modified.
12250         * doc/glibc-functions/forkpty.texi: Modified.
12251         * doc/glibc-functions/openpty.texi: Modified.
12252
12253 2009-12-10  Bruno Haible  <bruno@clisp.org>
12254
12255         Avoid syntax error in C++ mode.
12256         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12257
12258 2009-12-10  Bruno Haible  <bruno@clisp.org>
12259
12260         Use sed with option -e.
12261         * gnulib-tool (func_version, func_emit_copyright_notice,
12262         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12263         option -e to sed.
12264         * modules/link-warning (Makefile.am): Likewise.
12265
12266 2009-12-10  Jim Meyering  <meyering@redhat.com>
12267
12268         mgetgroups: do not write bytes beyond end of malloc'd buffer
12269         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12270         username, we call getgroups with a one-element-shorter buffer,
12271         but still told it the length was original, max_n_groups.
12272
12273 2009-12-09  Eric Blake  <ebb9@byu.net>
12274
12275         cloexec: relax license
12276         * modules/cloexec (Maintainer): Add myself.
12277         (License): Use LGPL, not GPL.
12278
12279         link-warning: optimize generation
12280         * modules/link-warning (Makefile.am): Reduce process usage.
12281
12282 2009-12-09  Bruno Haible  <bruno@clisp.org>
12283
12284         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12285         workaround was added on 2009-11-17.
12286
12287 2009-12-09  Jim Meyering  <meyering@redhat.com>
12288             Bruno Haible  <bruno@clisp.org>
12289
12290         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12291         * modules/link-warning (Makefile.am): Make the comment-removing sed
12292         command more robust in the face of bootstrap-prepended comment lines.
12293
12294 2009-12-09  Bruno Haible  <bruno@clisp.org>
12295
12296         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12297         most one group.
12298
12299 2009-12-09  Simon Josefsson <simon@josefsson.org>
12300             Bruno Haible  <bruno@clisp.org>
12301
12302         * build-aux/link-warning.h: Add copyright notice.
12303         * modules/link-warning (Makefile.am): Generate link-warning.h from
12304         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12305         * NEWS: Mention change in link-warning module.
12306         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12307         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12308         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12309         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12310         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12311         * modules/math (Makefile.am): Add dependency to math.h.
12312         * modules/search (Makefile.am): Add dependency to search.h.
12313         * modules/signal (Makefile.am): Add dependency to signal.h.
12314         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12315         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12316         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12317         * modules/string (Makefile.am): Add dependency to string.h.
12318         * modules/strings (Makefile.am): Add dependency to strings.h.
12319         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12320         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12321         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12322         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12323         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12324         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12325         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12326         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12327         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12328
12329 2009-12-09  Bruno Haible  <bruno@clisp.org>
12330
12331         fchdir: Optimize away rpl_fstat when possible.
12332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12333         REPLACE_OPEN_DIRECTORY.
12334         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12335
12336 2009-12-09  Bruno Haible  <bruno@clisp.org>
12337
12338         * lib/fchdir.c: Update comment.
12339
12340 2009-12-09  Bruno Haible  <bruno@clisp.org>
12341
12342         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12343
12344 2009-12-08  Eric Blake  <ebb9@byu.net>
12345
12346         fchdir: avoid memory leak on re-registration.
12347         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12348
12349 2009-12-08  Jim Meyering  <meyering@redhat.com>
12350
12351         init.sh: avoid Solaris 10 /bin/sh portability problem
12352         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12353         sourced script:
12354           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12355           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12356           bar
12357         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12358         and two tests used that idiom.
12359         * tests/init.sh: Update suggested usage comments.
12360         (path_prepend_): New function, to be used in place
12361         of the --src-path=DIR option.
12362         (setup_): Move PATH-prepending code into path_prepend_.
12363         * tests/test-pread.sh: Adapt to new usage.
12364         * tests/test-xalloc-die.sh: Likewise.
12365
12366 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12367
12368         * doc/gnulib.texi (Glibc pty.h): Add.
12369         * doc/glibc-functions/forkpty.texi: Add.
12370         * doc/glibc-functions/openpty.texi: Add.
12371         Suggested by Bruno Haible.
12372
12373 2009-12-08  Eric Blake  <ebb9@byu.net>
12374
12375         fchdir: fix logic bugs
12376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12377         * tests/test-fchdir.c (main): Enhance test.
12378         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12379         is in use.
12380
12381         dup2: fix logic bugs
12382         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12383         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12384         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12385         exists.
12386         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12387
12388 2009-12-07  Eric Blake  <ebb9@byu.net>
12389
12390         unlink: fix m4 detection
12391         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12392
12393         unistd-safer: add unit test
12394         * modules/unistd-safer-tests: New file.
12395         * tests/test-dup-safer.c: Likewise.
12396         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12397         * tests/test-dup2.c (setmode): Likewise.
12398         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12399
12400         cloexec: preserve text vs. binary across dup_cloexec
12401         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12402         mode.
12403         * modules/dup2-tests (Depends-on): Add binary-io.
12404         * modules/cloexec-tests (Depends-on): Likewise.
12405         * tests/test-dup2.c (setmode, is_mode): New helpers.
12406         (main): Add tests that translation mode is preserved.
12407         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12408         Reported by Bruno Haible.
12409
12410         mgetgroups: reduce duplicate listings
12411         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12412         resulting array.
12413         * tests/test-chown.h (test_chown): Simplify client.
12414         * tests/test-lchown.h (test_lchown): Likewise.
12415
12416 2009-12-06  Bruno Haible  <bruno@clisp.org>
12417
12418         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12419         value.
12420
12421 2009-12-06  Bruno Haible  <bruno@clisp.org>
12422
12423         * lib/progname.c: Include stdio.h, stdlib.h.
12424         (set_program_name): Reject a NULL argument.
12425
12426 2009-12-05  Eric Blake  <ebb9@byu.net>
12427
12428         pipe2-safer: new module
12429         * modules/pipe2-safer: New file.
12430         * lib/unistd-safer.h (pipe2_safer): New prototype.
12431         * lib/unistd--.h (pipe2): New wrapper.
12432         * lib/pipe-safer.c (pipe2_safer): New function.
12433         * modules/pipe (Depends-on): Add pipe2-safer.
12434         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12435
12436         stdlib-safer: preserve cloexec flag for mkostemp[s]
12437         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12438         fd_safer_flag.
12439
12440         unistd-safer: allow preservation of cloexec status via flag
12441         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12442         prototypes.
12443         * lib/dup-safer.c (dup_safer_flag): New function.
12444         * lib/fd-safer.c (fd_safer_flag): Likewise.
12445         * modules/cloexec (configure.ac): Set witness.
12446
12447         test-dup2: enhance test
12448         * modules/dup2-tests (Depends-on): Add cloexec.
12449         * tests/test-dup2.c (main): Enhance test.
12450
12451         cloexec: add dup_cloexec
12452         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12453         header and comments.
12454         * lib/cloexec.c (set_cloexec_flag): Add comments.
12455         (dup_cloexec): New function, with mingw implementation borrowed
12456         from...
12457         * lib/w32spawn.h (dup_noinherit): ...here.
12458         * modules/execute (Depends-on): Add cloexec.
12459         * modules/pipe (Depends-on): Likewise.
12460         * modules/cloexec (Depends-on): Add dup2.
12461         * modules/cloexec-tests (Files): New file.
12462         * tests/test-cloexec.c: Likewise.
12463
12464         test-xalloc-die: fix test for mingw
12465         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12466         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12467         directory and .exe suffix off argv[0] output.
12468
12469         test-fseeko: fix test for mingw
12470         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12471         than undefining fseek, so test will pass on mingw.
12472
12473 2009-12-05  Bruno Haible  <bruno@clisp.org>
12474
12475         * lib/progname.h (set_program_name): Clarify specification.
12476         * lib/progname.c (set_program_name): Likewise.
12477         Reported by Jim Meyering.
12478
12479 2009-12-05  Jim Meyering  <meyering@redhat.com>
12480
12481         maint.mk: backslash-escape parens in default regexp
12482         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12483         backslash-escape the literal parentheses.
12484
12485         maint.mk: news-date-check: use grep -E
12486         * top/maint.mk (today): Define a Make variable, not a...
12487         (news-date-check): ...shell variable.
12488         (news-date-regexp): Use the Make variable.
12489         Use grep's -E option.  Change the failing diagnostic to mention
12490         the variable, $(news-date-regexp).
12491
12492 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12493
12494         maintainer-makefile: allow customization of NEWS entry format
12495         * top/maint.mk (news-date-regexp): New overridable variable.
12496         (news-date-check): Use it.
12497
12498 2009-12-04  Eric Blake  <ebb9@byu.net>
12499
12500         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12501         * lib/mgetgroups.h (xgetgroups): New prototype.
12502         * lib/mgetgroups.c (xgetgroups): New wrapper.
12503         (mgetgroups): Handle ENOSYS.
12504         * modules/mgetgroups (Depends-on): Add realloc.
12505         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12506
12507         mgetgroups: avoid argument promotion issues with -1
12508         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12509         for invalid gid_t.
12510         * tests/test-chown.h (getegid, test_chown): Likewise.
12511         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12512
12513 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12514
12515         exclude: Fix header file problems.
12516         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12517
12518 2009-12-01  Jim Meyering  <meyering@redhat.com>
12519
12520         fts: fts_open: do not let an empty string cause immediate failure
12521         This is required in support of GNU rm, for which the command
12522         "rm A '' B" must process and remove both A and B, in spite of
12523         the empty string argument.
12524         * lib/fts.c (fts_open): Do not let the presence of an empty string
12525         cause fts_open to fail immediately.  Most fts-using tools must be
12526         able to process all arguments, in order, and can be expected to
12527         diagnose such arguments themselves.
12528
12529 2009-11-30  Eric Blake  <ebb9@byu.net>
12530
12531         utimens: fix compilation error
12532         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12533         Declare variable at right scope.
12534
12535 2009-11-29  Jim Meyering  <meyering@redhat.com>
12536
12537         bootstrap: handle perl-5.11's changed --version output
12538         * build-aux/bootstrap (get_version): Handle perl separately,
12539         since perl-5.11's --version output is different.
12540
12541 2009-11-28  Jim Meyering  <meyering@redhat.com>
12542
12543         userspec: depend on the inttostr module, too
12544         * modules/userspec (Depends-on): Add inttostr.
12545
12546         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12547         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12548         number of MAXUID when it evaluates to (uid_t) -1.
12549         Likewise for group ID.  Reported by Matt McCutchen in
12550         <http://savannah.gnu.org/bugs/?28113>
12551
12552         userspec: reformat to use spaces, not TABs
12553         * lib/userspec.c: Expand TABs to spaces.
12554         Add Emacs' "indent-tabs-mode: nil" hint.
12555
12556 2009-11-27  Eric Blake  <ebb9@byu.net>
12557
12558         getopt-gnu: flush out another BSD bug
12559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12560         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12561         flush out BSD bug.
12562         * tests/test-getopt.h (test_getopt): End lists with NULL.
12563         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12564         (test_getopt_long_posix): Enhance test.
12565         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12566         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12567         getopt-gnu.
12568         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12569         Likewise.
12570
12571 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12572
12573         * modules/idpriv-droptemp-tests (Notice): Fix text.
12574
12575 2009-11-27  Jim Meyering  <meyering@redhat.com>
12576
12577         test-xalloc-die: avoid spurious failure due to libtool argv difference
12578         In a libtool-enabled project, this test would fail due to a difference
12579         in the emitted program name, e.g.,
12580         -test-xalloc-die: memory exhausted
12581         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12582         Use program to avoid that.
12583         * modules/xalloc-die-tests (Depends-on): Add progname.
12584         * tests/test-xalloc-die.c: Include progname.h".
12585         (program_name): Remove decl.
12586         (main): Call set_program_name.
12587         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12588
12589 2009-11-26  Richard Jones  <rjones@redhat.com>
12590
12591         w32sock: leave win32 error in place.
12592         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12593
12594 2009-11-26  Eric Blake  <ebb9@byu.net>
12595
12596         init.sh: suggest to use skip_ and fail_ functions in comments
12597         * tests/init.sh: Add a sentence.
12598
12599 2009-11-25  Bruno Haible  <bruno@clisp.org>
12600
12601         init.sh: add documentation in comments
12602         * tests/init.sh: Add some developer and user documentation.
12603
12604 2009-11-26  Jim Meyering  <meyering@redhat.com>
12605
12606         init.sh: accommodate even those who specify bogus srcdir manually
12607         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12608         configure-time tests to be sanitized, so that there is no need to
12609         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12610         (with no double quotes) suffices.  However, since tests may be
12611         invoked manually, and since you may explicitly set srcdir to the
12612         name of a directory containing spaces, do quote its uses here.
12613         * tests/test-pread.sh: Likewise.
12614         Suggested by Bruno Haible.
12615
12616         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12617         * tests/test-pread.sh: Write no data into the pipe, because
12618         test-pread actually reads none.  This avoids a diagnostic,
12619         "bash: echo: write error: Broken pipe", that arises in the unusual
12620         event something is ignoring SIGPIPE, and might be interpreted
12621         as some sort of failure.  Reported by Bruno Haible.
12622
12623 2009-11-25  Jim Meyering  <meyering@redhat.com>
12624
12625         test-pread: cover failure with ESPIPE and EINVAL
12626         * tests/test-pread.c (main): Test for failure, too.
12627         * tests/test-pread.sh: Invoke with stdin on a pipe.
12628         Suggested by Eric Blake.
12629
12630         pread: improvement and fix
12631         * modules/pread (Depends-on): Depend on lseek, for portability to
12632         e.g., mingw.  Suggested by Eric Blake.
12633         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12634
12635         unistd.in.h: correct declaration of pread
12636         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12637         Reported by Richard W.M. Jones.
12638
12639         test-pread.sh: distribute the test script
12640         * modules/pread-tests (Files): Include test-pread.sh.
12641
12642         test-pread.sh: clean up
12643         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12644         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12645         That is unnecessary, since it's always ".".
12646         Suggestion from Eric Blake.
12647
12648         test-pread.sh: make executable
12649         * tests/test-pread.sh: Set executable bit.
12650         Reported by Eric Blake.
12651
12652         correct typo in test-pread.sh
12653         * tests/test-pread.sh: Add #! line.
12654
12655         test pread
12656         * tests/test-pread.c: New file.
12657         * tests/test-pread.sh: Likewise.
12658         * modules/pread-tests: Likewise.
12659
12660         pread: new module
12661         * modules/pread: New file.
12662         * lib/unistd.in.h (pread): Define/declare.
12663         * lib/pread.c (pread): New file.
12664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12665         * modules/unistd (Makefile.am): Substitute witnesses.
12666         * doc/posix-functions/pread.texi (pread): Update.
12667         * MODULES.html.sh: Add pread.
12668
12669 2009-11-25  Jim Meyering  <meyering@redhat.com>
12670
12671         tests/init.sh: new file to be used via most *.sh tests
12672         * tests/init.sh: New file.
12673
12674 2009-11-25  Eric Blake  <ebb9@byu.net>
12675
12676         utimens: work around older Linux failure with symlinks
12677         * lib/utimens.c (lutimensat_works_really): New variable.
12678         (fdutimens, lutimens): Use it to manage kernels that support
12679         nanosecond times on files, but not on symlinks.
12680         Reported by Ondřej Vašík.
12681
12682         utimes: fix configure grammar
12683         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12684
12685 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12686
12687         regex: Fix fastmap for multibyte character ranges.
12688         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12689         characters when a multibyte character range is included.
12690
12691 2009-11-22  Andy Wingo  <wingo@pobox.com>
12692
12693         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12694         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12695
12696 2009-11-24  Bruno Haible  <bruno@clisp.org>
12697
12698         doc: Most *_l functions exist in MacOS X 10.5.
12699         * doc/posix-functions/duplocale.texi: Update platforms list.
12700         * doc/posix-functions/freelocale.texi: Likewise.
12701         * doc/posix-functions/newlocale.texi: Likewise.
12702         * doc/posix-functions/uselocale.texi: Likewise.
12703         * doc/posix-functions/isalnum_l.texi: Likewise.
12704         * doc/posix-functions/isalpha_l.texi: Likewise.
12705         * doc/posix-functions/isblank_l.texi: Likewise.
12706         * doc/posix-functions/iscntrl_l.texi: Likewise.
12707         * doc/posix-functions/isdigit_l.texi: Likewise.
12708         * doc/posix-functions/isgraph_l.texi: Likewise.
12709         * doc/posix-functions/islower_l.texi: Likewise.
12710         * doc/posix-functions/isprint_l.texi: Likewise.
12711         * doc/posix-functions/ispunct_l.texi: Likewise.
12712         * doc/posix-functions/isspace_l.texi: Likewise.
12713         * doc/posix-functions/isupper_l.texi: Likewise.
12714         * doc/posix-functions/iswalnum_l.texi: Likewise.
12715         * doc/posix-functions/iswalpha_l.texi: Likewise.
12716         * doc/posix-functions/iswblank_l.texi: Likewise.
12717         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12718         * doc/posix-functions/iswctype_l.texi: Likewise.
12719         * doc/posix-functions/iswdigit_l.texi: Likewise.
12720         * doc/posix-functions/iswgraph_l.texi: Likewise.
12721         * doc/posix-functions/iswlower_l.texi: Likewise.
12722         * doc/posix-functions/iswprint_l.texi: Likewise.
12723         * doc/posix-functions/iswpunct_l.texi: Likewise.
12724         * doc/posix-functions/iswspace_l.texi: Likewise.
12725         * doc/posix-functions/iswupper_l.texi: Likewise.
12726         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12727         * doc/posix-functions/isxdigit_l.texi: Likewise.
12728         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12729         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12730         * doc/posix-functions/strcoll_l.texi: Likewise.
12731         * doc/posix-functions/strfmon_l.texi: Likewise.
12732         * doc/posix-functions/strftime_l.texi: Likewise.
12733         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12734         * doc/posix-functions/strxfrm_l.texi: Likewise.
12735         * doc/posix-functions/tolower_l.texi: Likewise.
12736         * doc/posix-functions/toupper_l.texi: Likewise.
12737         * doc/posix-functions/towctrans_l.texi: Likewise.
12738         * doc/posix-functions/towlower_l.texi: Likewise.
12739         * doc/posix-functions/towupper_l.texi: Likewise.
12740         * doc/posix-functions/wcscoll_l.texi: Likewise.
12741         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12742         * doc/posix-functions/wctrans_l.texi: Likewise.
12743         * doc/posix-functions/wctype_l.texi: Likewise.
12744         * doc/glibc-functions/strptime_l.texi: Likewise.
12745         * doc/glibc-functions/strtod_l.texi: Likewise.
12746         * doc/glibc-functions/strtof_l.texi: Likewise.
12747         * doc/glibc-functions/strtol_l.texi: Likewise.
12748         * doc/glibc-functions/strtold_l.texi: Likewise.
12749         * doc/glibc-functions/strtoll_l.texi: Likewise.
12750         * doc/glibc-functions/strtoul_l.texi: Likewise.
12751         * doc/glibc-functions/strtoull_l.texi: Likewise.
12752         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12753         * doc/glibc-functions/wcstod_l.texi: Likewise.
12754         * doc/glibc-functions/wcstof_l.texi: Likewise.
12755         * doc/glibc-functions/wcstol_l.texi: Likewise.
12756         * doc/glibc-functions/wcstold_l.texi: Likewise.
12757         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12758         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12759         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12760
12761 2009-11-24  Bruno Haible  <bruno@clisp.org>
12762
12763         duplocale: Fix logic bug.
12764         * lib/duplocale.c: Don't include <langinfo.h>.
12765         (_NL_LOCALE_NAME): Remove macro.
12766         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12767         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12768
12769 2009-11-23  Jim Meyering  <meyering@redhat.com>
12770
12771         test-update-copyright: don't hard-code /usr/bin/perl
12772         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12773         perl to print the current year.  Gilles Espinasse reported that
12774         the replaced use of perl was hard-coded as /usr/bin/perl.
12775
12776 2009-11-23  Bruno Haible  <bruno@clisp.org>
12777
12778         duplocale: Add support for glibc 2.3.x.
12779         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12780
12781 2009-11-22  Bruno Haible  <bruno@clisp.org>
12782
12783         vasnprintf: Tiny optimization.
12784         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12785         MacOS X.
12786
12787 2009-11-22  Bruno Haible  <bruno@clisp.org>
12788
12789         Tests for module 'duplocale'.
12790         * modules/duplocale-tests: New file.
12791         * tests/test-duplocale.c: New file.
12792
12793         New module 'duplocale'.
12794         * m4/duplocale.m4: New file.
12795         * lib/locale.in.h (duplocale): New declaration.
12796         * lib/duplocale.c: New file.
12797         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12798         gl_LOCALE_H_DEFAULTS): New macros.
12799         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12800         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12801         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12802         REPLACE_DUPLOCALE.
12803         * modules/duplocale: New file.
12804         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12805
12806 2009-11-22  Bruno Haible  <bruno@clisp.org>
12807
12808         * modules/locale-tests (configure.ac): Test for newlocale function.
12809         * tests/test-locale.c: When the system has extended locale functions,
12810         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12811
12812         locale: Make locale_t available when possible.
12813         * lib/locale.in.h: Include <xlocale.h> when it exists.
12814         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12815         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12816         * modules/locale (Depends-on): Add extensions.
12817         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12818         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12819
12820 2009-11-22  Bruno Haible  <bruno@clisp.org>
12821
12822         Add comments.
12823         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12824         invocation.
12825         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12826         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12827         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12828
12829 2009-11-22  Bruno Haible  <bruno@clisp.org>
12830
12831         error: account for the possibility of freopen (stdout).
12832         * lib/error.c: Include <unistd.h>.
12833         (flush_stdout): New function, extracted from error and error_at_line.
12834         Determine stdout's fd dynamically.
12835         (error, error_at_line): Invoke flush_stdout.
12836         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12837         * modules/error (Depends-on): Add unistd.
12838
12839 2009-11-22  Bruno Haible  <bruno@clisp.org>
12840
12841         diffseq: Add comment.
12842         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12843
12844 2009-11-22  Jim Meyering  <meyering@redhat.com>
12845
12846         c-stack: avoid defining an unused static function
12847         * lib/c-stack.c (find_stack_direction): Do not define this function
12848         when it will not be used.
12849
12850         diffseq: avoid spurious gcc warnings
12851         * lib/diffseq.h (IF_LINT2): Define.
12852         (compareseq): Use it to initialize two members of "part".
12853         This avoids two used-uninitialized warnings.
12854
12855 2009-11-21  Jim Meyering  <meyering@redhat.com>
12856
12857         c-stack: avoid "ignoring return value of `write'" warning
12858         * lib/c-stack.c: Include "ignore-value.h".
12859         (die): Explicitly ignore each write return value.
12860         * modules/c-stack (Depends-on): Add ignore-value.
12861
12862 2009-11-21  Bruno Haible  <bruno@clisp.org>
12863
12864         diffseq: reduce scope of variable 'best'.
12865         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12866         variable, earlier used for two different purposes.
12867
12868 2009-11-21  Jim Meyering  <meyering@redhat.com>
12869
12870         diffseq: remove useless assignment to "best"
12871         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12872         assignment.  At that point "best" is already guaranteed to be zero.
12873
12874 2009-11-20  Eric Blake  <ebb9@byu.net>
12875
12876         build: mention ftp redirector in release announcements
12877         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12878         values that used to come from cfg.mk; mention FTP redirect URL.
12879         * build-aux/announce-gen: Mention the mirror list.
12880         Suggested by Karl Berry.
12881
12882         nanosleep: improve port to mingw
12883         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12885         LIB_NANOSLEEP, but only when needed.
12886         * modules/select (Link): Document LIBSOCKET.
12887         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12888         enough.
12889
12890         nanosleep: work around cygwin bug
12891         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12892         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12893         bug.
12894         (getnow): Delete, not needed.
12895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12896         LIB_CLOCK_GETTIME.
12897         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12898         clock-time, gettime.
12899         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12900         bug.
12901         * modules/nanosleep-tests: New test.
12902         * tests/test-nanosleep.c: New file.
12903
12904         sleep: work around cygwin bug
12905         * lib/sleep.c (rpl_sleep): Work around the bug.
12906         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12907         (gl_PREREQ_SLEEP): Delete unused macro.
12908         * modules/sleep (Depends-on): Add verify.
12909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12910         * modules/unistd (Makefile.am): Substitute witness.
12911         * lib/unistd.in.h (sleep): Update prototype.
12912         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12913         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12914         * modules/sleep-tests (Depends-on): Check for alarm.
12915
12916 2009-11-20  Jim Meyering  <meyering@redhat.com>
12917
12918         maint.mk: improve sc_prohibit_magic_number_exit
12919         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12920         so it does not match uses like System.exit(1).
12921         Add comments showing how to correct all offenders.
12922
12923 2009-11-19  Eric Blake  <ebb9@byu.net>
12924
12925         xalloc-die-tests: add missing library
12926         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12927
12928         test-xvasprintf: silence compiler warnings
12929         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12930         empty string from gcc.
12931
12932 2009-11-19  Jim Meyering  <meyering@redhat.com>
12933
12934         xfreopen: new module, from coreutils
12935         * modules/xfreopen: New module.
12936         * lib/xfreopen.c: New file.
12937         * lib/xfreopen.h: New file.
12938         * MODULES.html.sh (File stream based Input/Output"): Add it.
12939
12940 2009-11-19  Eric Blake  <ebb9@byu.net>
12941
12942         manywarnings: depend on warnings
12943         * modules/manywarnings (Depends-on): Add warnings.
12944
12945         build: avoid compiler warnings
12946         * lib/select.c (rpl_select): Delete unused variable.
12947         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12948
12949 2009-11-18  Eric Blake  <ebb9@byu.net>
12950
12951         tests: avoid false negative with --with-packager
12952         * tests/test-version-etc.sh: Discard packager information.
12953         * tests/test-argp-version-etc-1.sh: Likewise.
12954         Reported by Mike Frysinger.
12955
12956         utimens: fix regression on Solaris
12957         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12958         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12959         can only change fd timestamps via futimesat.  Instead, use an
12960         additional witness macro to avoid BSD bug.
12961         Reported by Jim Meyering.
12962
12963 2009-11-17  Eric Blake  <ebb9@byu.net>
12964
12965         usleep: use it to simplify tests
12966         * modules/stat-time-tests (Depends-on): Add usleep.
12967         (configure.ac): Drop usleep check.
12968         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12969         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12970         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12971         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12972         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12973         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12974         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12975         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12976         Likewise.
12977         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12978         * tests/test-lchown.h (nap): Likewise.
12979         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12980         * tests/test-stat-time.c (nap): Likewise.
12981         * tests/test-utimens-common.h (nap): Update comments.
12982
12983         usleep: new module
12984         * modules/usleep: New file.
12985         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12986         * lib/usleep.c (usleep): Likewise.
12987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12988         * modules/unistd (Makefile.am): Substitute witnesses.
12989         * lib/unistd.in.h (usleep): Add declaration.
12990         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12991         * MODULES.html.sh (Date and time): Likewise.
12992         * modules/usleep-tests (Depends-on): New test.
12993         * tests/test-usleep.c: New file.
12994
12995         chown: work around OpenBSD bug
12996         * lib/chown.c (rpl_chown): Work around the bug.
12997         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12998         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12999         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13000         * modules/chown (Depends-on): Add stdbool.
13001         * modules/lchown (Depends-on): Likewise.
13002         * doc/posix-functions/chown.texi (chown): Document the bug.
13003         * doc/posix-functions/lchown.texi (lchown): Likewise.
13004         * tests/test-lchown.h (test_chown): Relax test.
13005
13006         mkstemp: avoid conflict with C++ keyword template
13007         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13008         * lib/mkostemp.c (mkostemp): Likewise.
13009         * lib/mkostemps.c (mkostemps): Likewise.
13010         * lib/mkstemp.c (mkstemp): Likewise.
13011         * lib/mkstemps.c (mkstemps): Likewise.
13012
13013         xalloc-die-tests: optimize
13014         * tests/test-xalloc-die.sh: Reduce number of processes.
13015
13016 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13017
13018         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13019         patch from ludo@gnu.org (Ludovic Courtès).
13020
13021 2009-11-17  Jim Meyering  <meyering@redhat.com>
13022
13023         version-etc: use proper license string
13024         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13025         * modules/version-etc-fsf: Likewise.
13026
13027 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13028
13029         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13030         printed to stdout.  Deal with EOL differences.
13031
13032 2009-11-17  Eric Blake  <ebb9@byu.net>
13033
13034         unsetenv: work around Solaris bug
13035         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13036         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13037         Reported by Jim Meyering.
13038
13039         vasnprintf: avoid compiler warnings
13040         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13041         variables.
13042         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13043
13044 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13045
13046         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13047         settings since xalloc-die is no longer the self test,
13048         xalloc-die.sh is.
13049
13050 2009-11-17  Jim Meyering  <meyering@redhat.com>
13051
13052         test-xalloc-die.sh: make the code agree with the commit log
13053         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13054         at the end, just in case you happen to have a test-xalloc-die
13055         program in some other PATH directory.
13056
13057         test-xalloc-die.sh: fix a portability bug
13058         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13059         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13060         Otherwise, argv[0] (as often seen in diagnostics) would be too
13061         system-dependent, sometimes with, and sometimes without the leading "./".
13062
13063         version-etc-fsf: relax license to LGPLv3+
13064         * modules/version-etc-fsf (License): Relax license.
13065
13066 2009-11-16  Eric Blake  <ebb9@byu.net>
13067
13068         xalloc-die-tests: avoid printing null pointer
13069         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13070         shell script.
13071         * tests/test-xalloc-die.c (program_name): Declare.
13072         * tests/test-xalloc-die.sh (tmpfiles): New file.
13073
13074         setenv, unsetenv: work around various bugs
13075         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13076         (setenv) [HAVE_SETENV]: Work around bugs.
13077         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13078         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13079         for bugs.
13080         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13081         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13083         * modules/stdlib (Makefile.am): Update substitutions.
13084         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13085         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13086         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13087         * modules/setenv-tests: New test.
13088         * modules/unsetenv-tests: Likewise.
13089         * tests/test-setenv.c: New file.
13090         * tests/test-unsetenv.c: Likewise.
13091
13092 2009-11-16  Jim Meyering  <meyering@redhat.com>
13093
13094         version-etc: relax license to LGPLv3+
13095         * modules/version-etc (License): Relax license.
13096
13097         better AC_REQUIRE expanded-before-required-warning avoidance
13098         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13099         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13100         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13101         which is no longer needed.
13102
13103 2009-11-16  Eric Blake  <ebb9@byu.net>
13104
13105         test-freading: clean up temporary file
13106         * tests/test-freading.c (main): Remove file on success, and use
13107         ASSERT more liberally.
13108         Reported by Jim Meyering.
13109
13110 2009-11-16  Jim Meyering  <meyering@redhat.com>
13111
13112         avoid new AC_REQUIRE expanded-before-required warnings
13113         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13114         merely using it.
13115         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13116         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13117
13118 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13119
13120         * tests/test-xalloc-die.c: New file.
13121         * modules/xalloc-die-tests: New file.
13122         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13123         XFAIL_TESTS so it can be appended by modules.
13124
13125 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13126
13127         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13128         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13129
13130 2009-11-14  Eric Blake  <ebb9@byu.net>
13131
13132         fnmatch: avoid compiler warning
13133         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13134         to silence compiler warning about mismatch signedness in ?:.
13135         Reported by Robert Millan.
13136
13137         intprops: add double-inclusion guard
13138         * lib/intprops.h: Allow idempotent includes.
13139         Suggested by Bruce Korb.
13140
13141         openat: detect Solaris fchownat bug
13142         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13143         penalizing glibc chownat when only lchownat is broken.
13144         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13145         trailing slash bugs.
13146         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13147         * modules/openat-tests (Files): Include more files.
13148         (Depends-on): Add mgetgroups, sleep, stat-time.
13149         (configure.ac): Add additional checks.
13150         (Makefile.am): Build new test.
13151         * tests/test-fchownat.c: New file.
13152
13153         lchown: detect Solaris and FreeBSD bug
13154         * lib/lchown.c (rpl_lchown): Work around bug.
13155         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13157         * modules/unistd (Makefile.am): Populate it.
13158         * lib/unistd.in.h (lchown): Update declaration.
13159         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13160         * modules/lchown-tests: New file.
13161         * tests/test-lchown.h (test_lchown): Likewise.
13162         * tests/test-lchown.c (main): Likewise.
13163
13164         chown: detect Solaris and FreeBSD bug
13165         * lib/chown.c (rpl_chown): Work around bug.
13166         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13167         (gl_PREREQ_CHOWN): Delete.
13168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13169         * modules/unistd (Makefile.am): Populate it.
13170         * lib/unistd.in.h (chown): Update declaration.
13171         * lib/lchown.c (chown): Update client.
13172         * modules/lchown (Depends-on): Add lstat.
13173         * doc/posix-functions/chown.texi (chown): Document the bug.
13174         * doc/posix-functions/getgroups.texi (getgroups): Document
13175         getgroups pitfall.
13176         * modules/chown-tests: New file.
13177         * tests/test-chown.h (test_chown): Likewise.
13178         * tests/test-chown.c (main): Likewise.
13179
13180 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13181
13182         gnulib-tool: correctly detect absence of m4 directories
13183         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13184
13185 2009-11-14  Jim Meyering  <meyering@redhat.com>
13186
13187         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13188         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13189
13190 2009-11-14  John W. Eaton  <jwe@gnu.org>
13191
13192         strftime.h: wrap funtion declaration in extern "C" block
13193         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13194
13195 2009-11-13  Eric Blake  <ebb9@byu.net>
13196
13197         getgroups: avoid compiler warning
13198         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13199
13200         getgroups: work around FreeBSD bug
13201         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13202         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13203         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13204         * tests/test-getgroups.c (main): Fix buffer overrun.
13205
13206         getgroups: avoid compilation failure
13207         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13208         * modules/getgroups (Depends-on): Add stdint.
13209
13210 2009-11-13  Jim Meyering  <meyering@redhat.com>
13211
13212         test-getgroups: avoid compilation failure
13213         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13214
13215 2009-11-13  Eric Blake  <ebb9@byu.net>
13216
13217         mgetgroups: new module, taken from coreutils
13218         * modules/mgetgroups: New file.
13219         * lib/mgetgroups.h: Likewise.
13220         * lib/mgetgroups.c (mgetgroups): Likewise.
13221         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13222         * MODULES.html.sh (Users and groups): Mention it.
13223
13224         getgroups: don't expose GETGROUPS_T to user
13225         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13226         an element at a time if GETGROUPS_T is wrong size.
13227         * lib/getugroups.h (getugroups): Change signature.
13228         * lib/unistd.in.h (getgroups): Likewise.
13229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13230         signature needs fixing.
13231         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13232         AC_TYPE_GETGROUPS.
13233         * modules/group-member (Depends-on): Add getgroups.
13234         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13235         (group_member): Rely on getgroups replacement.
13236         * lib/getugroups.c (getugroups): Use gid_t.
13237         * tests/test-getgroups.c (main): Likewise.
13238         * NEWS: Mention the signature change.
13239         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13240         problem with signature.
13241         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13242         GETGROUPS_T is still useful for setgroups.
13243
13244         getgroups, getugroups: provide stubs for mingw
13245         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13246         * lib/getugroups.c (getugroups): Likewise.
13247         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13248         function.  Modernize replacement scheme.
13249         (gl_PREREQ_GETGROUPS): Delete.
13250         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13251         * modules/getgroups (configure.ac): Declare witness.
13252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13253         * modules/unistd (Depends-on): Substitute witness.
13254         * lib/unistd.in.h (getgroups): Declare replacement.
13255
13256         getgroups: avoid calling exit
13257         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13258         drop xalloc.
13259         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13260         dependencies.
13261         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13262         exiting, in the rare case of malloc failure.
13263
13264         getgroups: fix logic error
13265         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13266         has more than 20 groups.
13267         * modules/getgroups-tests: New test.
13268         * tests/test-getgroups.c: New file.
13269
13270 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13271
13272         * tests/test-base64.c: Improve.
13273
13274 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13275
13276         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13277         Blake <ebb9@byu.net>.
13278
13279 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13280
13281         * tests/test-xvasprintf.c: Add %s%s related checks.
13282
13283 2009-11-12  Eric Blake  <ebb9@byu.net>
13284
13285         version-etc: match standards.texi style
13286         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13287         and use <> only for URLs.
13288
13289 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13290
13291         fts: do not fail on a submount during traversal
13292         * lib/fts.c (fts_build): Read the stat info again after opening
13293         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13294         Original report at http://bugzilla.redhat.com/501848.
13295
13296 2009-11-12  Jim Meyering  <meyering@redhat.com>
13297
13298         bootstrap: sync from coreutils
13299         * build-aux/bootstrap (bootstrap_epilogue): New function.
13300         Use git_modules_config in one more place.  This make bootstrap's
13301         --gnulib-srcdir option more useful for testing.
13302
13303         bootstrap: generalize autoheader check
13304         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13305         AC_CONFIG_HEADERS.
13306
13307 2009-11-11  Eric Blake  <ebb9@byu.net>
13308
13309         mkfifoat: use new modules for Solaris and BSD bugs
13310         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13311         * lib/mkfifoat.c (mknodat): Split...
13312         * lib/mknodat.c (mknodat): ...into new file.
13313         * modules/mkfifoat (Files): Ship new file.
13314         (Depends-on): Add mkfifo, mknod.
13315         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13316         (Depends-on): Add symlink.
13317         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13318         redundant with test_mkfifo.h.
13319         (do_mkfifoat, do_mknodat): New helpers.
13320
13321         mknod: new module
13322         * modules/mknod: New file.
13323         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13324         * lib/mknod.c (mknod): Likewise.
13325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13326         defaults.
13327         * modules/sys_stat (Makefile.am): Substitute them.
13328         * lib/sys_stat.in.h (mknod): Declare replacement.
13329         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13330         Document it.
13331         * doc/posix-functions/mknod.texi (mknod): Likewise.
13332         * modules/mknod-tests: New test.
13333         * tests/test-mknod.c: Likewise.
13334
13335         mkfifo: new module
13336         * modules/mkfifo: New file.
13337         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13338         * lib/mkfifo.c (mkfifo): Likewise.
13339         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13340         defaults.
13341         * modules/sys_stat (Makefile.am): Substitute them.
13342         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13343         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13344         Document it.
13345         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13346         * modules/mkfifo-tests: New test.
13347         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13348         from test-mkfifoat.c.
13349         * tests/test-mkfifo.c: New file.
13350
13351         readlink: detect FreeBSD bug
13352         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13353         slash on symlink.
13354         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13355         * tests/test-readlink.h (test_readlink): Enhance test.
13356
13357         symlink: detect FreeBSD bug
13358         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13359         slash on symlink.
13360         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13361         * tests/test-symlink.h (test_symlink): Enhance test.
13362
13363 2009-11-10  Eric Blake  <ebb9@byu.net>
13364
13365         link: detect FreeBSD bug
13366         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13367         symlink.
13368         * doc/posix-functions/link.texi (link): Document the bug.
13369         * tests/test-link.h (test_link): Enhance test.
13370         * tests/test-linkat.c (main): Update caller.
13371
13372         unlink, remove: detect FreeBSD bug
13373         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13374         slash on symlink.
13375         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13376         * doc/posix-functions/remove.texi (remove): Likewise.
13377         * tests/test-unlink.h (test_unlink): Enhance test.
13378         * tests/test-remove.c (main): Likewise.
13379
13380 2009-11-09  Eric Blake  <ebb9@byu.net>
13381
13382         rename: detect FreeBSD bug
13383         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13384         slash on symlink.
13385         * modules/renameat-tests (Depends-on): Add filenamecat.
13386         * tests/test-rename.h (test_rename): Allow one more errno.
13387         * tests/test-renameat.c (main): Likewise.
13388         * doc/posix-functions/rename.texi (rename): Document the bug.
13389
13390         open: detect FreeBSD bug
13391         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13392         symlink.
13393         * doc/posix-functions/open.texi (open): Document the bug.
13394         * doc/posix-functions/utimes.texi (utimes): Likewise.
13395         * tests/test-open.h (test_open): Add parameters, and test symlink
13396         handling.
13397         * tests/test-open.c (main): Adjust caller.
13398         * tests/test-fcntl-safer.c (main): Likewise.
13399         * modules/open-tests (Depends-on): Add stdbool, symlink.
13400         * modules/fcntl-safer-tests (Depends-on): Likewise.
13401         * tests/test-openat.c (main): Add test-open tests.
13402
13403         stat: detect FreeBSD bug
13404         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13405         symlink.
13406         * doc/posix-functions/stat.texi (stat): Document the bug.
13407         * tests/test-stat.h (test_stat_func): Add argument.
13408         * tests/test-stat.c (main): Adjust caller.
13409         * tests/test-fstatat.c (main): Likewise.
13410         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13411         Reported by Jim Meyering.
13412
13413 2009-11-09  James Youngman  <jay@gnu.org>
13414
13415         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13416         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13417
13418 2009-11-08  Jim Meyering  <meyering@redhat.com>
13419
13420         utimens: remove invalid futimesat call
13421         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13422         It used the file descriptor of the target file as the DIR_FD
13423         parameter and NULL as the file name.  That caused failure with
13424         errno == EFAULT on FreeBSD-8.0-rc2
13425
13426 2009-11-07  Eric Blake  <ebb9@byu.net>
13427
13428         fflush, freadseek: use fseeko, not fseek
13429         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13430         (clear_ungetc_buffer): Avoid potential problems on large files.
13431         * lib/freadseek.c (freadseek): Likewise.
13432         * modules/freadseek (Depends-on): Add fseeko.
13433         * modules/fseek (configure.ac): Set a witness.
13434         * tests/test-fflush.c (main): Use fseeko.
13435         * tests/test-fpurge.c (fseek): Disable link warning.
13436         * tests/test-freadable.c (fseek): Likewise.
13437         * tests/test-freading.c (fseek): Likewise.
13438         * tests/test-fseeko.c (fseek): Likewise.
13439         * tests/test-ftell.c (fseek): Likewise.
13440         * tests/test-ftello.c (fseek): Likewise.
13441         * tests/test-fwritable.c (fseek): Likewise.
13442         * tests/test-fwriting.c (fseek): Likewise.
13443
13444 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13445
13446         * modules/memchr (Depends-on): Drop getpagesize dependency.
13447
13448 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13449
13450         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13451         Reported by Ludovic Courtès.
13452         * build-aux/pmccabe2html: Improve example usage.
13453         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13454
13455 2009-11-06  Jim Meyering  <meyering@redhat.com>
13456
13457         do-release-commit-and-tag: New module.
13458         Automate the release-commit and tag process.
13459         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13460         * modules/do-release-commit-and-tag: New file.
13461         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13462
13463 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13464
13465         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13466         because test-select.c uses inet_pton.
13467
13468 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13469
13470         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13471         GETADDRINFO_LIB.  Bump serial number.
13472         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13473         Suggested by Eric Blake <ebb9@byu.net>.
13474
13475 2009-11-05  Eric Blake  <ebb9@byu.net>
13476
13477         strtod: detect darwin bug
13478         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13479         Reported by Leo Davis.
13480
13481         freopen-safer: new module
13482         * modules/freopen-safer: New module.
13483         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13484         * lib/freopen-safer.c (freopen_safer): New file.
13485         * lib/stdio-safer.h (freopen_safer): New declaration.
13486         * lib/stdio--.h (freopen): New override.
13487         * MODULES.html.sh (File stream based Input/Output): Mention it.
13488         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13489         freopen-safer module.
13490         * doc/posix-functions/stderr.texi (stderr): Likewise.
13491         * doc/posix-functions/stdin.texi (stdin): Likewise.
13492         * doc/posix-functions/stdout.texi (stdout): Likewise.
13493         * modules/freopen-safer-tests: New test.
13494         * tests/test-reopen-safer.c: New file.
13495
13496 2009-11-05  Jim Meyering  <meyering@redhat.com>
13497
13498         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13499         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13500
13501 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13502
13503         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13504
13505 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13506
13507         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13508
13509 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13510
13511         Fix link error.
13512         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13513         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13514
13515 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13516
13517         * tests/test-func.c: Also test value of __func__.
13518
13519 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13520
13521         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13522         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13523
13524 2009-11-05  Bruno Haible  <bruno@clisp.org>
13525
13526         Fix link error.
13527         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13528         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13529         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13530
13531 2009-11-05  Bruno Haible  <bruno@clisp.org>
13532
13533         Tests for module 'inet_pton'.
13534         * modules/inet_pton-tests: New file.
13535         * tests/test-inet_pton.c: New file.
13536
13537 2009-11-05  Bruno Haible  <bruno@clisp.org>
13538
13539         Tests for module 'inet_ntop'.
13540         * modules/inet_ntop-tests: New file.
13541         * tests/test-inet_ntop.c: New file.
13542
13543 2009-11-04  Eric Blake  <ebb9@byu.net>
13544
13545         stdlib-safer: wrap all mkstemp variants
13546         * modules/mkostemp (configure.ac): Set witness.
13547         * modules/mkostemps (configure.ac): Likewise.
13548         * modules/mkstemps (configure.ac): Likewise.
13549         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13550         (mkstemps_safer): Wrap more functions.
13551         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13552         wrapping.
13553         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13554         (mkstemps_safer): Implement the wrappers.
13555
13556         mkstemps, mkostemps: new modules
13557         * modules/mkostemps: New module.
13558         * modules/mkstemps: Likewise.
13559         * lib/mkostemps.c (mkostemps): New file.
13560         * lib/mkstemps.c (mkstemps): Likewise.
13561         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13562         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13564         * modules/stdlib (Makefile.am): Substitute them.
13565         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13566         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13567         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13568         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13569         * MODULES.html.sh (File system functions): Mention them.
13570
13571         tempname: resync from glibc
13572         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13573         same values for __GT_FILE as glibc.  Abort even when assertions
13574         are disabled.
13575         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13576         match its value otherwise.  Allow idempotent inclusion.
13577         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13578         * lib/mkostemp.c (mkostemp): Likewise.
13579         * lib/mkstemp.c (mkstemp): Likewise.
13580         * lib/tmpfile.c (tmpfile): Likewise.
13581         * NEWS: Document this.
13582
13583         utimens: fix use of futimens on older Linux
13584         * lib/utimens.c (fdutimens): Use updated, rather than original,
13585         timespec to avoid bug in older Linux kernel.
13586         Reported by Simon Josefsson.
13587
13588 2009-11-04  Bruno Haible  <bruno@clisp.org>
13589
13590         Make num_processors more flexible and consistent.
13591         * lib/nproc.h (enum nproc_query): New type.
13592         (num_processors): Add a 'query' argument.
13593         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13594         (num_processors): Add a 'query' argument. Test the value of the
13595         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13596         mingw, count the number of CPUs available for the current process.
13597         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13598         Check for sched_getaffinity and sched_getaffinity_np.
13599         * modules/nproc (Depends-on): Add c-ctype, extensions.
13600         * NEWS: Mention the change.
13601
13602 2009-11-03  Bruno Haible  <bruno@clisp.org>
13603
13604         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13605
13606 2009-11-03  Jim Meyering  <meyering@redhat.com>
13607
13608         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13609         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13610         if it is defined.
13611
13612 2009-11-02  Eric Blake  <ebb9@byu.net>
13613
13614         mktime, timegm: share common declaration
13615         * lib/mktime-internal.h: New file.
13616         * lib/mktime.c: Use it rather than open-coding a declaration.
13617         * lib/timegm.c: Likewise.
13618         * modules/mktime (Files): Ship it.
13619         * modules/timegm (Files): Likewise.
13620         Suggested by Bruno Haible.
13621
13622         test-update-copyright: update test to match script changes
13623         * tests/test-update-copyright.sh: Avoid hard-coding perl
13624         location.  Don't update *.bak created by earlier runs.
13625
13626 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13627             Simon Josefsson  <simon@josefsson.org>
13628             Bruno Haible  <bruno@clisp.org>
13629
13630         Fix link error on Solaris 8.
13631         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13632         also in libnsl. Define also INET_PTON_LIB.
13633         * modules/inet_pton (Link): New section.
13634
13635 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13636             Bruno Haible  <bruno@clisp.org>
13637
13638         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13639         * modules/inet_ntop (Link): New section.
13640         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13641
13642 2009-11-02  Eric Blake  <ebb9@byu.net>
13643
13644         maint: avoid compiler warnings in m4 macros
13645         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13646         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13647
13648 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13649
13650         * m4/pmccabe2html.m4: Remove file.
13651         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13652         function.  Change maintainer.
13653         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13654         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13655         Courtès).
13656
13657 2009-10-31  Eric Blake  <ebb9@byu.net>
13658
13659         fseeko: fix m4 regression
13660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13661         regression from 2009-10-27.
13662         Reported by Ralf Wildenhues.
13663
13664 2009-10-31  Jim Meyering  <meyering@redhat.com>
13665
13666         inttostr: aesthetics and improved (compile-time) safety
13667         Define inttype_is_signed rather than inttype_is_unsigned,
13668         since the sole use is via "#if inttype_is_signed".
13669         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13670         inttype_is_unsigned.
13671         * lib/offtostr.c (inttype_is_signed): Likewise.
13672         * lib/uinttostr.c (inttype_is_signed): Likewise.
13673         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13674         * lib/inttostr.c (inttostr): Use verify to cross-check the
13675         inttype_is_signed value and the signedness of the actual type.
13676         * modules/inttostr (Depends-on): Add verify.
13677
13678 2009-10-30  Eric Blake  <ebb9@byu.net>
13679
13680         build: avoid compiler warnings
13681         * lib/fchmodat.c (lchmod): Mark unused variables.
13682         * lib/getopt.c (_getopt_initialize): Likewise.
13683         * lib/mktime.c (__mktime_internal): Provide prototype.
13684         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13685         older gcc that do not understand #pragma GCC diagnostic.
13686         * lib/uinttostr.c (inttype_is_unsigned): Define.
13687         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13688
13689 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13690
13691         stat: fix compilation on AIX
13692         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13693         only see struct stat64.
13694
13695 2009-10-30  Eric Blake  <ebb9@byu.net>
13696
13697         exclude: make more robust
13698         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13699         rather than masking a coding bug.
13700         Suggested by Bruno Haible.
13701
13702 2009-10-30  Jim Meyering  <meyering@redhat.com>
13703
13704         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13705         Rather than putting #!/usr/bin/perl on the first line,
13706         start with a variant of what's recommended by "man perlrun" that
13707         invokes the first "perl" program from your shell's search path.
13708         * build-aux/gitlog-to-changelog: Replace #!... as above.
13709         Add a "Local Variables" perl mode setting.
13710         Prompted by a patch from Ludovic Courtès.
13711         Improved by Eric Blake.
13712         * build-aux/useless-if-before-free: Likewise.
13713         * build-aux/announce-gen: Likewise.
13714         * build-aux/update-copyright: Likewise.
13715
13716 2009-10-29  Eric Blake  <ebb9@byu.net>
13717
13718         filenamecat-lgpl: adjust clients
13719         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13720         filenamecat.
13721         * modules/renameat (Depends-on): Likewise.
13722
13723         filenamecat: split into filenamecat-lgpl
13724         * modules/filenamecat-lgpl: New module.
13725         * modules/filenamecat (Files): Move library-safe files into
13726         filenamecat-lgpl.
13727         (Depends-on): Add filenamecat-lgpl.
13728         (configure.ac): Declare witness.
13729         * lib/filenamecat.h (file_name_concat): Only declare when using
13730         GPL module.
13731         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13732         Move...
13733         * lib/filenamecat-lgpl.c: ...into new file.
13734         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13735         (gl_FILE_NAME_CONCAT): Use it.
13736         * MODULES.html.sh (File system functions): Mention new module.
13737
13738         argp: avoid memory leak
13739         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13740         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13741         base_name, since the latter malloc()s and can call exit().
13742         Leak introduced 2006-07-03.
13743
13744         dirname-lgpl: adjust clients that don't need full dirname
13745         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13746         * modules/filenamecat (Depends-on): Likewise.
13747         * modules/linkat (Depends-on): Likewise.
13748         * modules/mkancesdirs (Depends-on): Likewise.
13749         * modules/mkdir (Depends-on): Likewise.
13750         * modules/openat (Depends-on): Likewise.
13751         * modules/savewd (Depends-on): Likewise.
13752         * modules/rename (Depends-on): Likewise.
13753         (License): Relax license.
13754         * modules/mkdir-tests (Depends-on): Drop progname.
13755         (Makefile.am): Delete unneeded LDADD.
13756         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13757
13758         dirname: split into dirname-lgpl
13759         * modules/dirname-lgpl: New module.
13760         * modules/dirname (Files): Move library-safe files into
13761         dirname-lgpl.
13762         (Depends-on): Add dirname-lgpl.
13763         (configure.ac): Declare witness.
13764         * modules/double-slash-root (License): Relax license.
13765         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13766         module.
13767         * lib/dirname.c (dir_len, mdir_name): Move...
13768         * lib/dirname-lgpl.c: ...into new file.
13769         * lib/basename.c (last_component, base_len): Move...
13770         * lib/basename-lgpl.c: ...into new file.
13771         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13772         (gl_DIRNAME): Use it.
13773         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13774         Mention new module.
13775         * modules/dirname-tests (Depends-on): Add progname.
13776         * tests/test-dirname.c (program_name): Delete.
13777
13778         mkdir: make safe for libraries
13779         * modules/mkdir (Depends-on): Drop xalloc.
13780         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13781         exit.
13782
13783         tests: avoid some compiler warnings
13784         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13785         literals.
13786         * tests/test-memchr.c (main): Avoid type mismatch.
13787         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13788         * tests/test-base64.c (main): Likewise.
13789         * tests/test-getdelim.c (main): Likewise.
13790         * tests/test-gethostname.c (main): Likewise.
13791         * tests/test-getline.c (main): Likewise.
13792         * tests/test-netinet_in.c (main): Likewise.
13793         * tests/test-select.c (open_server_socket, main): Likewise.
13794         * tests/test-select-stdin.c (main): Likewise.
13795         * tests/test-sockets.c (main): Likewise.
13796         * tests/test-strsignal.c (main): Likewise.
13797         * tests/test-sys_select.c (main): Likewise.
13798         * tests/test-sys_socket.c (main): Likewise.
13799         * tests/test-u64.c (main): Likewise.
13800         * tests/test-xfprintf-posix.c (main): Likewise.
13801         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13802
13803         sockets: avoid compiler warning
13804         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13805
13806         maint: detect usage(1) and other suspicious exits
13807         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13808
13809 2009-10-29  Jim Meyering  <meyering@redhat.com>
13810
13811         timespec: long-to-int truncation could make timespec_cmp malfunction
13812         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13813         a multiple of 2^32 nanoseconds as no difference.
13814
13815 2009-10-28  Jim Meyering  <meyering@redhat.com>
13816
13817         fprintftime: wrap macro code argument in "do {...} while(0)"
13818         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13819         cpy macro must be a statement that can be followed by a semicolon.
13820         Now that the else clause contains a comment and is hence longer
13821         than one line, I require curly braces.  That in turn requires
13822         that we wrap this code block in the standard do...while(0).
13823
13824         fprintftime: remove stray semicolon from previous change
13825         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13826
13827         fprintftime: avoid a warning about ignored fwrite return value
13828         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13829         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13830         that is unsafe.
13831         * modules/fprintftime (Depends-on): Add ignore-value.
13832
13833         exclude: avoid an unwarranted warning
13834         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13835
13836 2009-10-27  Eric Blake  <ebb9@byu.net>
13837
13838         fseek: avoid compilation failure when fflush is replaced
13839         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13840         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13841         module is in use.
13842         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13843         module is not in use; since REPLACE_FSEEK worked otherwise.
13844         (GNULIB_FTELLO): Likewise for ftell.
13845         Reported by Ian Beckwith and others.
13846
13847 2009-10-27  Bruno Haible  <bruno@clisp.org>
13848
13849         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13850         Reported by Jim Meyering.
13851
13852 2009-10-27  Jim Meyering  <jim@meyering.net>
13853             Bruno Haible  <bruno@clisp.org>
13854
13855         Avoid warning despite dropping the return value of fwrite.
13856         * lib/unicodeio.c: Include ignore-value.h.
13857         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13858         * modules/unicodeio (Depends-on): Add ignore-value.
13859
13860 2009-10-26  Eric Blake  <ebb9@byu.net>
13861
13862         areadlinkat: fix fallback path
13863         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13864         pointer and zero.
13865
13866 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13867
13868         Use a better IO block size for modern systems
13869         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13870         * lib/md2.c: Likewise.
13871         * lib/md4.c: Likewise.
13872         * lib/md5.c: Likewise.
13873         * lib/sha1.c: Likewise.
13874         * lib/sha256.c: Likewise.
13875         * lib/sha512.c: Likewise.
13876
13877 2009-10-22  Eric Blake  <ebb9@byu.net>
13878
13879         tests: avoid several compiler warnings
13880         * tests/test-getcwd.c (main): Avoid buffer underflow.
13881         * tests/test-getdate.c (main): String literals are not safe with
13882         putenv, so use setenv.  Declare unused argument.
13883         * modules/getdate-tests (Depends-on): Add setenv.
13884         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13885         problems with string literals in char *.
13886         * tests/test-hash.c (main): Avoid shadowing declaration.
13887         (insert_new): Treat string literals as char const *.
13888         * tests/test-getopt.h (test_getopt): Likewise.
13889         (getopt_loop): Alter types to minimize casting elsewhere.
13890         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13891         (test_getopt_long_posix): Likewise.
13892         (do_getopt_long): Add wrapper to minimize casting.
13893         * tests/test-atexit.c (clear_temp_file): Use void.
13894         * tests/test-areadlink-with-size.c (main): Declare unused
13895         arguments.
13896         * tests/test-areadlink.c (main): Likewise.
13897         * tests/test-areadlinkat-with-size.c (main): Likewise.
13898         * tests/test-areadlinkat.c (main): Likewise.
13899         * tests/test-canonicalize-lgpl.c (main): Likewise.
13900         * tests/test-canonicalize.c (main): Likewise.
13901         * tests/test-dirent-safer.c (main): Likewise.
13902         * tests/test-dirname.c (main): Likewise.
13903         * tests/test-dup2.c (main): Likewise.
13904         * tests/test-fchdir.c (main): Likewise.
13905         * tests/test-fcntl-h.c (main): Likewise.
13906         * tests/test-fcntl-safer.c (main): Likewise.
13907         * tests/test-fdopendir.c (main): Likewise.
13908         * tests/test-fdutimensat.c (main): Likewise.
13909         * tests/test-fflush.c (main): Likewise.
13910         * tests/test-filenamecat.c (main): Likewise.
13911         * tests/test-filevercmp.c (main): Likewise.
13912         * tests/test-fopen-safer.c (main): Likewise.
13913         * tests/test-fopen.c (main): Likewise.
13914         * tests/test-fpending.c (main): Likewise.
13915         * tests/test-fpurge.c (main): Likewise.
13916         * tests/test-freading.c (main): Likewise.
13917         * tests/test-fstatat.c (main): Likewise.
13918         * tests/test-fsync.c (main): Likewise.
13919         * tests/test-futimens.c (main): Likewise.
13920         * tests/test-getndelim2.c (main): Likewise.
13921         * tests/test-gettimeofday.c (main): Likewise.
13922         * tests/test-getopt.c (main): Likewise.
13923         * tests/test-i-ring.c (main): Likewise.
13924         * tests/test-inttypes.c (main): Likewise.
13925         * tests/test-link.c (main): Likewise.
13926         * tests/test-lstat.c (main): Likewise.
13927         * tests/test-math.c (main): Likewise.
13928         * tests/test-md5.c (main): Likewise.
13929         * tests/test-memchr2.c (main): Likewise.
13930         * tests/test-memrchr.c (main): Likewise.
13931         * tests/test-mkdir.c (main): Likewise.
13932         * tests/test-mkdirat.c (main): Likewise.
13933         * tests/test-mkfifoat.c (main): Likewise.
13934         * tests/test-open.c (main): Likewise.
13935         * tests/test-openat-safer.c (main): Likewise.
13936         * tests/test-openat.c (main): Likewise.
13937         * tests/test-quotearg.c (main): Likewise.
13938         * tests/test-rawmemchr.c (main): Likewise.
13939         * tests/test-readlink.c (main): Likewise.
13940         * tests/test-remove.c (main): Likewise.
13941         * tests/test-rename.c (main): Likewise.
13942         * tests/test-renameat.c (main): Likewise.
13943         * tests/test-rmdir.c (main): Likewise.
13944         * tests/test-sha1.c (main): Likewise.
13945         * tests/test-signal.c (main): Likewise.
13946         * tests/test-sigaction.c (main): Likewise.
13947         * tests/test-stat.c (main): Likewise.
13948         * tests/test-stat-time.c (main): Likewise.
13949         * tests/test-stddef.c (main): Likewise.
13950         * tests/test-stdint.c (main): Likewise.
13951         * tests/test-stdio.c (main): Likewise.
13952         * tests/test-stdlib.c (main): Likewise.
13953         * tests/test-strchrnul.c (main): Likewise.
13954         * tests/test-strerror.c (main): Likewise.
13955         * tests/test-string.c (main): Likewise.
13956         * tests/test-strtod.c (main): Likewise.
13957         * tests/test-strverscmp.c (main): Likewise.
13958         * tests/test-symlink.c (main): Likewise.
13959         * tests/test-symlinkat.c (main): Likewise.
13960         * tests/test-sys_stat.c (main): Likewise.
13961         * tests/test-sys_time.c (main): Likewise.
13962         * tests/test-time.c (main): Likewise.
13963         * tests/test-unistd.c (main): Likewise.
13964         * tests/test-unlink.c (main): Likewise.
13965         * tests/test-unlinkat.c (main): Likewise.
13966         * tests/test-utimens.c (main): Likewise.
13967         * tests/test-utimensat.c (main): Likewise.
13968         * tests/test-version-etc.c (main): Likewise.
13969         * tests/test-wchar.c (main): Likewise.
13970         * tests/test-wctype.c (main): Likewise.
13971         * tests/test-xprintf-posix.c (main): Likewise.
13972         * tests/test-posixtm.c (main): Likewise.
13973         (STREQ): Delete unused macro.
13974         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13975         shadowed variables.
13976         * tests/test-memchr.c (main): Likewise.
13977
13978 2009-10-21  Eric Blake  <ebb9@byu.net>
13979
13980         areadlinkat: avoid failure on older glibc
13981         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13982         rather than mis-comparing 0 against FUNC_RESULT of char*.
13983
13984 2009-10-21  Bruno Haible  <bruno@clisp.org>
13985
13986         * modules/stpncpy (License): Relicense under LGPLv2+.
13987         Reported by David Lutterkort <lutter@redhat.com>.
13988
13989 2009-10-20  Eric Blake  <ebb9@byu.net>
13990
13991         utimensat: work around Solaris 9 bug
13992         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13993         has trailing slash bugs.
13994         * tests/test-lutimens.h (test_lutimens): Enhance test.
13995         * tests/test-utimens.h (test_utimens): Likewise.
13996         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13997         * doc/posix-functions/utimes.texi (utimes): Likewise.
13998         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13999         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14000         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14001         * doc/posix-functions/futimens.texi (futimens): Likewise.
14002
14003         fdutimensat: new module
14004         * modules/fdutimensat: New file.
14005         * lib/fdutimensat.c (fdutimensat): Likewise.
14006         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14007         * MODULES.html.sh (File system functions): Mention module.
14008         * modules/fdutimensat-tests: New test.
14009         * tests/test-fdutimensat.c: Likewise.
14010
14011         doc: regenerate INSTALL
14012         * doc/INSTALL: Reflect recent autoconf update.
14013         * doc/INSTALL.ISO: Likewise.
14014         * doc/INSTALL.UTF-8: Likewise.
14015
14016 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14017
14018         acl: warn if ACL support is not detected
14019         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14020
14021 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14022
14023         * lib/nproc.h: Add extern "C" block for C++.
14024
14025 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14026             Bruno Haible  <bruno@clisp.org>
14027
14028         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14029         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14030         * doc/posix-functions/isalpha.texi: Likewise.
14031         * doc/posix-functions/isblank.texi: Likewise.
14032         * doc/posix-functions/iscntrl.texi: Likewise.
14033         * doc/posix-functions/isdigit.texi: Likewise.
14034         * doc/posix-functions/isgraph.texi: Likewise.
14035         * doc/posix-functions/islower.texi: Likewise.
14036         * doc/posix-functions/isprint.texi: Likewise.
14037         * doc/posix-functions/ispunct.texi: Likewise.
14038         * doc/posix-functions/isspace.texi: Likewise.
14039         * doc/posix-functions/isupper.texi: Likewise.
14040         * doc/posix-functions/isxdigit.texi: Likewise.
14041
14042 2009-10-18  Bruno Haible  <bruno@clisp.org>
14043
14044         Tests for module 'isblank'.
14045         * modules/isblank-tests: New file.
14046         * tests/test-isblank.c: New file.
14047
14048         New module 'isblank'.
14049         * lib/isblank.c: New file.
14050         * m4/isblank.m4: New file.
14051         * modules/isblank: New file.
14052         * doc/posix-functions/isblank.texi: Mention the new module.
14053
14054 2009-10-18  Bruno Haible  <bruno@clisp.org>
14055
14056         New module 'ctype'.
14057         * lib/ctype.in.h: New file.
14058         * m4/ctype.m4: New file.
14059         * modules/ctype: New file.
14060         * doc/posix-headers/ctype.texi: Mention the new module.
14061
14062 2009-10-18  Jim Meyering  <meyering@redhat.com>
14063
14064         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14065         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14066         right after its initialization, rather than farther down.
14067         Keeping these in close proximity makes it easier to ensure
14068         that each such variable is initialized.  E.g.,
14069
14070             LIB_CLOCK_GETTIME=
14071             AC_SUBST([LIB_CLOCK_GETTIME])
14072
14073         This change also increments these serial numbers.
14074         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14075         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14077
14078 2009-10-18  Bruno Haible  <bruno@clisp.org>
14079
14080         Don't let environment variables perturb build.
14081         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14082         (gl_PREREQ_GETHRXTIME): ... not here.
14083
14084 2009-10-18  Bruno Haible  <bruno@clisp.org>
14085
14086         Avoid symlink attack in localcharset module.
14087         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14088         (O_NOFOLLOW): Define fallback.
14089         (get_charset_aliases): Don't open the file if it is a symbolic link.
14090         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14091         gl_FCNTL_H.
14092         (gl_FCNTL_H): Require it.
14093         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14094         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14095         Reported by Fergal Glynn <fglynn@veracode.com>.
14096
14097 2009-10-18  Bruno Haible  <bruno@clisp.org>
14098
14099         Implement nproc for mingw.
14100         * lib/nproc.c: Include <windows.h>
14101         (num_processors): On native Windows platforms, try GetSystemInfo.
14102
14103 2009-10-18  Bruno Haible  <bruno@clisp.org>
14104
14105         Implement nproc for IRIX.
14106         * lib/nproc.c: Include <sys/sysmp.h>.
14107         (num_processors): On IRIX systems, try sysmp.
14108         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14109
14110 2009-10-18  Bruno Haible  <bruno@clisp.org>
14111
14112         Implement nproc for HP-UX.
14113         * lib/nproc.c: Include <sys/pstat.h>
14114         (num_processors): On HP-UX systems, try pstat_getdynamic.
14115         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14116         pstat_getdynamic.
14117
14118 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14119             Bruno Haible  <bruno@clisp.org>
14120
14121         Implement nproc for NetBSD, OpenBSD.
14122         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14123         (ARRAY_SIZE): New macro.
14124         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14125         * m4/nproc.m4: New file.
14126         * modules/nproc (Files): Add m4/nproc.m4.
14127         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14128         (Makefile.am): Instead, augment lib_SOURCES.
14129
14130 2009-10-18  Bruno Haible  <bruno@clisp.org>
14131
14132         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14133         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14134         sys/param.h.
14135
14136 2009-10-16  Eric Blake  <ebb9@byu.net>
14137
14138         utimensat: new module
14139         * modules/utimensat: New file.
14140         * lib/utimensat.c (utimensat): Likewise.
14141         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14142         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14143         so we can work around Linux bugs.
14144         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14145         * modules/sys_stat (Makefile.am): Substitute them.
14146         * lib/sys_stat.in.h (utimensat): Declare it.
14147         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14148         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14149         * modules/utimensat-tests: New test.
14150         * tests/test-utimensat.c: Likewise.
14151
14152         utimens: let lutimens work on non-symlinks
14153         * lib/utimens.c (lutimens): Fall back to utimens rather than
14154         failing with ENOSYS, when file is not a symlink.
14155         (utimens): Reduce redirection.
14156         * tests/test-lutimens.h (test_lutimens): Update test to cover
14157         non-symlinks.
14158         * tests/test-utimens.h (test_utimens): Update test to cover
14159         symlinks.
14160         * tests/test-utimens.c (main): Update caller.
14161
14162         utimens: cache whether utimensat syscall works
14163         * lib/utimens.c (utimensat_works_really): New cache variable.
14164         (fdutimens, lutimens): Use it to avoid failing syscall.
14165
14166         test-stat-time, test-utimens: improve portability
14167         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14168         ext4 on alpha, and for cygwin.
14169         * tests/test-utimens-common.h: New file.
14170         (nap): Factor delays into single function.
14171         * tests/test-lutimens.h (test_lutimens): Use new header.
14172         * tests/test-futimens.h (test_futimens): Likewise.
14173         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14174         timestamps to occur from same machine, as was done previously for
14175         test_utimens.
14176         * modules/utimens-tests (Files): Ship new file.
14177         * modules/futimens-tests (Files): Likewise.
14178         Reported in part by Jim Meyering.
14179
14180         sys_stat: sort replacement declarations
14181         * lib/sys_stat.in.h: Sort declarations.
14182         * lib/futimens.c (futimens): Fix typo.
14183
14184 2009-10-15  Jim Meyering  <meyering@redhat.com>
14185
14186         don't let environment settings perturb build
14187         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14188         could cause a configure-time and/or build-time malfunction.
14189         Typically, a configure-time function-in-library test is performed
14190         via code like this:
14191
14192           LIB_VAR=
14193           AC_SUBST([LIB_VAR])
14194           prefix_saved_LIBS=$LIBS
14195             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14196                        [test "$ac_cv_search_FUNC" = "none required" ||
14197                         LIB_VAR=$ac_cv_search_FUNC])
14198           LIBS=$prefix_saved_LIBS
14199
14200         However, in each of the files affected by this change, the LIB_VAR=
14201         initialization was omitted.  Thus, when set in the environment, its
14202         value would propagate into generated Makefiles when FUNC is not found
14203         in LIB_NAME.
14204         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14205         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14207
14208 2009-10-14  Eric Blake  <ebb9@byu.net>
14209
14210         fchdir: avoid infinite recursion in mingw
14211         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14212         recursing.
14213
14214         test-stat-time: port to mingw
14215         * tests/test-stat-time.c (force_unlink): Return a value.
14216         (test_ctime) [W32]: Fix compilation error.
14217         (nap): Don't call usleep with too large an argument.  Use
14218         force_unlink.
14219         * doc/pastposix-functions/usleep.texi (usleep): Document the
14220         portability issue.
14221
14222 2009-10-13  Jim Meyering  <meyering@redhat.com>
14223
14224         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14225         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14226         * modules/pipe-filter-ii: Likewise.
14227         * modules/sys_socket-tests: Likewise.
14228         * modules/tsearch-tests: Likewise.
14229         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14230         (check): Depend on it.
14231
14232 2009-10-12  Eric Blake  <ebb9@byu.net>
14233
14234         utimens-tests: port to NFS file systems
14235         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14236         comparisons to avoid spurious failures from timestamp drift
14237         between NFS machines.
14238
14239 2009-10-12  Eric Blake  <ebb9@byu.net>
14240
14241         stat-time-tests: minor cleanups
14242         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14243         * tests/test-stat-time.c (nap): Separate assignment from call.
14244         Suggested by Paolo Bonzini and Bruno Haible.
14245
14246         sys_stat: guarantee struct timespec
14247         * lib/sys_stat.in.h (includes): Always include <time.h>
14248         * modules/sys_stat (Depends-on): Add time.
14249         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14250         mode_t permission values.
14251         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14252         get at subsecond timestamps.
14253
14254 2009-10-10  Eric Blake  <ebb9@byu.net>
14255
14256         futimens: new module
14257         * modules/futimens: New file.
14258         * lib/futimens.c (futimens): Likewise.
14259         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14260         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14261         we can work around Linux bugs.
14262         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14263         * modules/sys_stat (Makefile.am): Substitute them.
14264         * lib/sys_stat.in.h (futimens): Declare it.
14265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14266         * doc/posix-functions/futimens.texi (futimens): Likewise.
14267         * modules/futimens-tests: New test.
14268         * tests/test-futimens.c: Likewise.
14269
14270         utimens: introduce fdutimens
14271         * lib/utimens.h (fdutimens): New prototype.
14272         * lib/utimens.c (gl_futimens): Move guts...
14273         (fdutimens): ...to new interface.
14274         * tests/test-utimens.c (do_fdutimens): Use it.
14275
14276         utimens: add UTIME_NOW and UTIME_OMIT support
14277         * lib/utimens.c (validate_timespec, update_timespec): New helper
14278         functions.
14279         (gl_futimens, lutimens): Use them.
14280         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14281         stdbool, sys_stat.
14282         (Link): Mention resulting library dependency.
14283         * modules/utimecmp (Link): Likewise.
14284         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14285         (Makefile.am): Pick up library dependency.
14286         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14287         definition.
14288         * tests/test-sys_stat.c: Test the definitions.
14289         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14290         * NEWS: Document library dependency.
14291
14292         utimecmp: support symlink timestamps
14293         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14294         hashing when possible.  Use pathconf when available.
14295         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14296         * modules/utimecmp (Depends-on): Add lstat.
14297
14298         utimens: add lutimens interface
14299         * lib/utimens.c (lutimens): New function.
14300         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14301         * lib/utimens.h (lutimens): Declare new interface.
14302         * tests/test-utimens.c (main): Enhance test.
14303         * tests/test-lutimens.h (test_lutimens): New file.
14304         * modules/utimens-tests (Files): Distribute it.
14305         (Depends-on): Add symlink.
14306         (configure.ac): Check for usleep.
14307
14308         utimens: validate futimens usage
14309         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14310         fewer syscalls on failure later on.  Avoid compiler warning on
14311         mingw.
14312         * modules/utimens (Depends-on): Add dup2.
14313
14314         utimens: add test
14315         * modules/utimens-tests: New test.
14316         * tests/test-utimens.h: New file.
14317         * tests/test-futimens.h: Likewise.
14318         * tests/test-utimens.c: Likewise.
14319
14320         doc: mention timestamp portability issues
14321         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14322         instead.
14323         * doc/posix-functions/utime.texi (utime): Likewise.
14324         * doc/posix-functions/utimes.texi (utimes): Likewise.
14325         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14326         instead.
14327         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14328         module.
14329         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14330         Mention weakness with symlink timestamps.
14331         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14332         to utimensat/futimens instead.
14333         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14334
14335         test-dup2: enhance test
14336         * tests/test-dup2.c (main): Also check AT_FDCWD.
14337
14338         test-stat-time: avoid more spurious failures
14339         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14340         xfs; and avoid race if the two timestamps cross quantization edge.
14341
14342         relocatable: prefer 'file system' over 'filesystem'
14343         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14344         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14345         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14346         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14347         * lib/relocatable.c (compute_curr_prefix): Likewise.
14348
14349 2009-10-10  Jim Meyering  <meyering@redhat.com>
14350
14351         stat-time-tests: check for the usleep function
14352         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14353
14354 2009-10-10  Bruno Haible  <bruno@clisp.org>
14355
14356         * modules/xnanosleep: Put the Link section after the Include section.
14357
14358 2009-10-09  Eric Blake  <ebb9@byu.net>
14359
14360         dup2: work around FreeBSD 6.1 bug
14361         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14362         * doc/posix-functions/dup2.texi (dup2): Document it.
14363         Reported by Nelson H. F. Beebe and Jim Meyering.
14364
14365         test-stat-time: port to buggy NFS clients
14366         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14367         (test_ctime): Also skip test if mtime and ctime are skewed.
14368
14369         maint: prefer 'file system' over 'filesystem'
14370         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14371         * doc/posix-functions/lstat.texi (lstat): Likewise.
14372         * lib/file-has-acl.c (file_has_acl): Likewise.
14373         * lib/fwriteerror.c [TEST]: Likewise.
14374         * tests/test-areadlink.h (test_areadlink): Likewise.
14375         * tests/test-areadlinkat-with-size.c (main): Likewise.
14376         * tests/test-areadlinkat.c (main): Likewise.
14377         * tests/test-canonicalize-lgpl.c (main): Likewise.
14378         * tests/test-canonicalize.c (main): Likewise.
14379         * tests/test-fstatat.c (main): Likewise.
14380         * tests/test-linkat.c (main): Likewise.
14381         * tests/test-lstat.h (test_lstat_func): Likewise.
14382         * tests/test-mkdir.h (test_mkdir): Likewise.
14383         * tests/test-readlink.h (test_readlink): Likewise.
14384         * tests/test-remove.c (main): Likewise.
14385         * tests/test-rename.h (test_rename): Likewise.
14386         * tests/test-renameat.c (main): Likewise.
14387         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14388         * tests/test-symlink.h (test_symlink): Likewise.
14389         * tests/test-symlinkat.c (main): Likewise.
14390         * tests/test-unlink.h (test_unlink_func): Likewise.
14391         * tests/test-unlinkat.c (main): Likewise.
14392
14393         maint: make realtime library usage explicit
14394         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14395         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14396         * modules/settime (Link): Likewise.
14397         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14398
14399         test-stat-time: speed up execution
14400         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14401         warning on mingw.
14402         (nap): New helper function.
14403         (prepare_test): Use it to reduce sleep time.
14404         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14405         execution.
14406         * modules/stat-time-tests (configure.ac): Check for usleep.
14407
14408 2009-10-09  Jim Meyering  <meyering@redhat.com>
14409
14410         selinux-h: always use getfilecon wrappers
14411         * lib/getfilecon.c: New file.
14412         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14413         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14414         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14415         (fgetfilecon): Provide a stub.
14416         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14417         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14418         file unconditionally.
14419         When <selinux/selinux.h> is found, arrange to use wrappers.
14420         * modules/selinux-h (Files): Add getfilecon.c.
14421         (Makefile.am): Substitute include-next-related bits
14422         into the now-always-generated selinux/selinux.h file.
14423         * doc/glibc-functions/lgetfilecon.texi: New file.
14424         * doc/glibc-functions/fgetfilecon.texi: New file.
14425         * doc/glibc-functions/getfilecon.texi: New file.
14426         * doc/glibc-functions/getfilecon-desc.texi: New file.
14427         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14428         which to pull in the new files.
14429         * MODULES.html.sh (Misc): Add selinux-h.
14430
14431 2009-10-08  Jim Meyering  <meyering@redhat.com>
14432
14433         unistd: fix comment typo
14434         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14435
14436 2009-10-08  Eric Blake  <ebb9@byu.net>
14437
14438         areadlink: use SIZE_MAX consistently
14439         * modules/areadlink (Depends-on): Add stdint.
14440         * modules/areadlink-with-size (Depends-on): Likewise.
14441         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14442         gives NULL; drop sys/types, since unistd gives size_t; and add
14443         stdint for SIZE_MAX.
14444         (SIZE_MAX): Rely on headers.
14445         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14446         and add stdint.
14447         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14448         (SIZE_MAX): Likewise.
14449         (INITIAL_BUF_SIZE): Turn into enum.
14450         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14451
14452 2009-10-08  Jim Meyering  <meyering@redhat.com>
14453
14454         areadlinkat: avoid compilation failure
14455         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14456         Fix typo in comment.
14457
14458 2009-10-07  Eric Blake  <ebb9@byu.net>
14459
14460         areadlinkat-with-size: new module
14461         * modules/areadlinkat-with-size: New module.
14462         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14463         * lib/areadlink.h (areadlinkat): Declare it.
14464         * MODULES.html.sh (File system functions): Mention it.
14465         * modules/areadlinkat-with-size-tests: New test.
14466         * tests/test-areadlinkat-with-size.c: New file.
14467
14468         xreadlinkat: new module
14469         * modules/xreadlinkat: New module.
14470         * lib/xreadlinkat.c (xreadlinkat): New file.
14471         * lib/xreadlink.h (xreadlinkat): Declare it.
14472         * MODULES.html.sh (File system functions): Mention it.
14473
14474         areadlinkat: new module
14475         * lib/at-func.c (FUNC_FAIL): New define.
14476         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14477         * modules/areadlinkat: New module.
14478         * lib/linkat.c (areadlinkat): Move...
14479         * lib/areadlinkat.c (areadlinkat): ...to new file.
14480         * lib/areadlink.h (areadlinkat): Declare it.
14481         * modules/linkat (Depends-on): Add areadlinkat.
14482         * MODULES.html.sh (File system functions): Mention it.
14483         * modules/areadlinkat-tests: New test.
14484         * tests/test-areadlinkat.c: New file.
14485
14486         areadlink, areadlink-with-size: add tests
14487         * modules/areadlink-tests: New test.
14488         * modules/areadlink-with-size-tests: Likewise.
14489         * tests/test-areadlink.h: New file.
14490         * tests/test-areadlink.c: Likewise.
14491         * tests/test-areadlink-with-size.c: Likewise.
14492
14493         maint: minor cleanups
14494         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14495         _UNUSED_PARAMETER_ instead.
14496         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14497         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14498         * modules/linkat-tests (Files): Distribute test-link.h.
14499
14500         openat, utimens: whitespace cleanup
14501         * lib/openat.c: Prefer space throughout, rather than mix of 8
14502         spaces vs. tabs.
14503         * lib/at-func.c: Likewise.
14504         * lib/utimens.c: Likewise.
14505
14506         openat: avoid using wrong fd
14507         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14508         working directory chooses same fd.
14509         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14510
14511         mkdir, mkdirat: fix cygwin 1.5.x bug
14512         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14513         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14514         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14515         bug.
14516         (gl_PREREQ_MKDIR): Delete unused macro.
14517         * modules/mkdir (Files): Track file rename.
14518         (configure.ac): Update macro name.
14519         * modules/openat (Depends-on): Add mkdir.
14520         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14521
14522         mkdir, mkdirat: add tests
14523         * modules/mkdir-tests: New test.
14524         * tests/test-mkdir.h: New file.
14525         * tests/test-mkdir.c: Likewise.
14526         * tests/test-mkdirat.c: Likewise.
14527         * modules/openat-tests (Files): Add new files.
14528         (Makefile.am): Run new test.
14529
14530 2009-10-06  Eric Blake  <ebb9@byu.net>
14531
14532         doc: tweak *at function documentation
14533         * doc/posix-functions/faccessat.texi (faccessat): Mention
14534         known issue with replacement.
14535         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14536         * doc/posix-functions/linkat.texi (linkat): Likewise.
14537         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14538         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14539         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14540         * doc/posix-functions/renameat.texi (renameat): Likewise.
14541         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14542
14543         openat: fix GNU/Hurd bug in unlinkat
14544         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14545         broken.
14546         * doc/posix-functions/unlink.texi (unlink): Document this.
14547         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14548
14549         fdopendir: fix GNU/Hurd bug
14550         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14551         allowing non-directory fds.
14552         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14553         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14554         * modules/dirent (Makefile.am): Substitute it.
14555         * lib/dirent.in.h (fdopendir): Declare replacement.
14556         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14557         * tests/test-fdopendir.c (main): Test something other than
14558         /dev/null, since on Hurd that behaves like a directory.
14559
14560         test-symlink: port to GNU/Hurd
14561         * tests/test-symlink.h (test_symlink): Relax expected errno.
14562
14563         doc: tweak more cygwin information
14564         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14565         now compatible with glibc.
14566         * doc/posix-functions/getopt.texi (getopt): Likewise.
14567
14568         getopt-gnu: add another test
14569         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14570         guarantee behavior relied on by m4.
14571         * tests/test-getopt.c (main): Use it.
14572         * modules/getopt-posix-tests (Depends-on): Add setenv.
14573         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14574
14575         getopt: fix compilation on darwin
14576         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14577         include.
14578         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14579         Reported by Ludovic Courtès.
14580
14581 2009-10-06  Bruno Haible  <bruno@clisp.org>
14582
14583         * modules/size_max (Description): Discourage its use.
14584         Reported by Simon Josefsson.
14585
14586 2009-10-06  Jim Meyering  <meyering@redhat.com>
14587
14588         linkat: avoid compilation failure
14589         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14590
14591 2009-10-05  Eric Blake  <ebb9@byu.net>
14592
14593         linkat: support Linux 2.6.17
14594         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14595         linkat on Linux, but allow cache variable override.
14596         * lib/linkat.c (rpl_linkat): Define override.
14597         * modules/linkat (Depends-on): Add symlinkat.
14598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14599         * modules/unistd (Makefile.am): Substitute it.
14600         * lib/unistd.in.h (linkat): Declare replacement.
14601         Reported by Pádraig Brady.
14602
14603         quotearg: port test to systems with C.UTF-8 locale
14604         * tests/test-quotearg.c (struct result_strings): Add another
14605         member, differentiating between C.ASCII and C.UTF-8 handling.
14606         (compare_strings): Add parameter.
14607         (main): Adjust all callers.
14608
14609         getopt: avoid clash with FreeBSD _getopt_internal
14610         * lib/getopt.in.h (_getopt_internal): Override the name.
14611         * lib/getopt_int.h (includes): Pick up any overrides.
14612         Reported by Reuben Thomas.
14613
14614         hash: allow C89 compilation
14615         * lib/hash.c (check_tuning): Move declaration before statement.
14616         Reported by Reuben Thomas.
14617
14618 2009-10-05  Karl Berry  <karl@gnu.org>
14619
14620         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14621
14622 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14623             Bruno Haible  <bruno@clisp.org>
14624
14625         * lib/uname.c (uname): Use a table-driven algorithm to compute
14626         Windows NT versions.
14627
14628 2009-10-04  Bruno Haible  <bruno@clisp.org>
14629
14630         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14631         program_invocation_short_name.
14632         * modules/progname (configure.ac): Test for presence of
14633         program_invocation_short_name.
14634         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14635
14636 2009-10-04  Bruno Haible  <bruno@clisp.org>
14637
14638         * lib/progname.c (set_program_name): Fix comment.
14639         Reported by Jim Meyering.
14640
14641 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14642             Bruno Haible  <bruno@clisp.org>
14643
14644         * lib/uname.c: Include <string.h>.
14645         (uname): Do only one call to GetVersionEx in the common case.
14646
14647 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14648             Bruno Haible  <bruno@clisp.org>
14649
14650         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14651         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14652         (uname): Add support for Windows CE and various non-x86 CPU types.
14653
14654 2009-10-03  Bruno Haible  <bruno@clisp.org>
14655
14656         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14657         invocation to tests/configure.ac.
14658         Reported by Ian Beckwith <ianb@erislabs.net>.
14659
14660 2009-10-02  Eric Blake  <ebb9@byu.net>
14661
14662         fchdir: avoid compiler warning
14663         * lib/fchdir.c (canonicalize_file_name)
14664         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14665
14666         test-open: support mingw errno values
14667         * tests/test-open.h (test_open): Relax test.
14668         * tests/test-fopen.h (test_fopen): Likewise.
14669         * tests/test-openat-safer.c (main): Likewise.
14670
14671         open: fix opening directory on mingw
14672         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14673
14674         test-open: on GNU/Hurd, /dev/null is a directory
14675         * tests/test-fopen.h (main): Rename...
14676         (test_fopen): ...to this.  Use a guaranteed non-directory when
14677         confirming open behavior on trailing slash.
14678         * tests/test-openat-safer.c (main): Likewise.
14679         * tests/test-open.h (main): Likewise....
14680         (test_open): ...to this.
14681         * tests/test-fopen.c (main): Adjust caller.
14682         * tests/test-fopen-safer.c (main): Likewise.
14683         * tests/test-open.c (main): Likewise.
14684         * tests/test-fcntl-safer.c (main): Likewise.
14685         Reported by Samuel Thibault.
14686
14687         rename, fchdir: don't ignore chdir failure
14688         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14689         * lib/rename.c (rpl_rename) [W32]: Likewise.
14690         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14691         an empty destination directory if source cannot be renamed,
14692         although there is still possibility for failure.
14693         * doc/posix-functions/rename.texi (rename): Document the race.
14694         Reported by Jim Meyering.
14695
14696         maint: cleanup whitespace in recent commits
14697         * lib/rename.c (rpl_rename): Remove tabs.
14698         * tests/test-link.h (test_link): Likewise.
14699         * lib/fchdir.c (get_name): Likewise.
14700         Reported by Jim Meyering.
14701
14702 2009-10-02  Ben Pfaff  <blp@gnu.org>
14703
14704         relocatable-prog-wrapper: Add missing dependency on
14705         double-slash-root.
14706         * modules/relocatable-prog-wrapper: Add dependency.
14707         Reported by Ian Beckwith <ianb@erislabs.net>.
14708
14709 2009-10-02  Eric Blake  <ebb9@byu.net>
14710
14711         renameat: fix Solaris bugs
14712         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14713         needed fixing.
14714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14715         * modules/stdio (Makefile.am): Substitute it.
14716         * lib/stdio.in.h (renameat): Declare replacement.
14717         * lib/renameat.c (rpl_renameat): Implement fix.
14718
14719         renameat: new module
14720         * modules/renameat: New file.
14721         * lib/renameat.c (renameat): Likewise.
14722         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14724         * modules/stdio (Makefile.am): Substitute them.
14725         * lib/stdio.in.h (renameat): Declare it.
14726         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14727         * doc/posix-functions/renameat.texi (renameat): Likewise.
14728         * modules/renameat-tests: New test.
14729         * tests/test-renameat.c: Likewise.
14730
14731         rename: fix mingw bugs
14732         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14733         directory overwrite bugs.
14734
14735         rename: fix another cygwin 1.5 bug
14736         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14737         checks.
14738         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14739         unnecessary cygwin workarounds.  Also work around bug with moving
14740         full directory onto an empty one.
14741         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14742
14743         rename-dest-slash: merge into rename module
14744         * modules/rename-dest-slash (Status): Mark obsolete.
14745         (Depends-on): Add rename.
14746         (Files): Let rename do it all.
14747         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14748         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14749         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14750         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14751         * lib/rename.c (rpl_rename): Update comments.
14752
14753         rename: fix cygwin 1.5.x bugs
14754         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14755         * lib/rename.c (rpl_rename): Work around them.
14756         * modules/rename (Depends-on): Add same-inode.
14757
14758         rename: fix Solaris 10 bug
14759         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14760         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14761         was the only bug.
14762
14763         rename: fix Solaris 9 bug
14764         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14765         on non-directory.  Avoid calling exit.
14766         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14767         strdup.
14768         * modules/rename-tests (Depends-on): Drop lstat.
14769         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14770         (gl_PREREQ_RENAME): Delete unused macro.
14771
14772         rename-dest-slash: fix NetBSD bug
14773         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14774         links.
14775         * modules/rename-dest-slash (Depends-on): Add same-inode.
14776
14777         rename-tests: new test, exposes several platform bugs
14778         * modules/rename-tests: New file.
14779         * tests/test-rename.h: Likewise.
14780         * tests/test-rename.c: Likewise.
14781         * doc/posix-functions/rename.texi (rename): Improve documentation,
14782         including bugs that will eventually be fixed in gnulib.
14783
14784 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14785
14786         * lib/uname.c: Include <stdlib.h>
14787         (uname): Assume version info is available.
14788
14789 2009-10-02  Jim Meyering  <meyering@redhat.com>
14790
14791         gnu-web-doc-update: correct --help output
14792         * build-aux/gnu-web-doc-update: Make --help output relevant.
14793
14794         gnu-web-doc-update: add standard options
14795         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14796
14797         gnu-web-doc-update: New module.
14798         Use this script to automatically update the on-line web documentation
14799         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14800         * modules/gnu-web-doc-update: New file, from coreutils.
14801         * build-aux/gnu-web-doc-update: New script.
14802
14803 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14804
14805         link: LoadLibrary is not needed.
14806         * lib/link.c: Use GetModuleHandle.
14807
14808 2009-10-01  Eric Blake  <ebb9@byu.net>
14809
14810         getopt: bump serial number
14811         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14812         change.
14813
14814         tests: tighten link, rmdir, and remove tests
14815         * tests/test-link.h (includes): No need to use <config.h> here.
14816         Clean up if directory hard link was created, otherwise test for
14817         trailing '.'.
14818         * tests/test-linkat.c (main): Simplify.
14819         * tests/test-remove.c (main): Enhance test for trailing '.'.
14820         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14821
14822 2009-10-01  Jim Meyering  <meyering@redhat.com>
14823
14824         maint.mk: requiring "make major" was annoying, for a "minor" release.
14825         What is intended is "stable", to contrast with alpha and beta,
14826         so require "make stable", not "make major".
14827         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14828         (get_tool_versions): Likewise.
14829         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14830
14831 2009-09-30  Ben Pfaff  <blp@gnu.org>
14832
14833         Fix broken build of replacement for Windows tmpfile().
14834         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14835         flags argument added along with the 'mkostemp' module.
14836
14837 2009-09-28  Bruno Haible  <bruno@clisp.org>
14838
14839         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14840         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14841         to 'remove_elt'.
14842         (gl_list_remove): Update.
14843         * lib/gl_list.c (gl_list_remove): Update.
14844         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14845         to 'remove_elt'.
14846         (gl_oset_remove): Update.
14847         * lib/gl_list.c (gl_oset_remove): Update.
14848         Reported by Eric Blake.
14849
14850 2009-09-28  Eric Blake  <ebb9@byu.net>
14851
14852         doc: mention yet more cygwin 1.7 status
14853         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14854         cygwin.
14855         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14856         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14857
14858         argp: fix test failure
14859         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14860         that are not upper-case.  Pass correct range to tolower.
14861
14862 2009-09-27  Jim Meyering  <meyering@redhat.com>
14863
14864         test-yesno: work around sparc-dash here-document infelicity
14865         Without this change, the literal \177 byte in a here document
14866         would make dash 0.5.5.1-3 access uninitialized memory.
14867         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14868         Instead, use a marker, "@", and filter through tr to create the desired
14869         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14870
14871 2009-09-27  Bruno Haible  <bruno@clisp.org>
14872
14873         Disable untested support for new flavours of ACLs on AIX.
14874         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14875         progress.
14876         * lib/set-mode-acl.c (qset_acl): Likewise.
14877
14878 2008-12-07  Bruno Haible  <bruno@clisp.org>
14879
14880         Add support for new flavours of ACLs on AIX. (Untested.)
14881         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14882         (file_has_acl): Add support for newer AIX.
14883         * lib/set-mode-acl.c (qset_acl): Likewise.
14884         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14885         Rainer Tammer <tammer@tammer.net>.
14886
14887 2009-09-26  Eric Blake  <ebb9@byu.net>
14888
14889         argp: fix compilation of getopt
14890         * lib/getopt.in.h (includes): Use different guard than glibc.
14891         Reported by Sergey Poznyakoff.
14892
14893         doc: mention more cygwin 1.7 status
14894         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14895         bug.
14896         * doc/posix-functions/execl.texi (execl): Likewise.
14897         * doc/posix-functions/execle.texi (execle): Likewise.
14898         * doc/posix-functions/execlp.texi (execlp): Likewise.
14899         * doc/posix-functions/execv.texi (execv): Likewise.
14900         * doc/posix-functions/execve.texi (execve): Likewise.
14901         * doc/posix-functions/execvp.texi (execvp): Likewise.
14902         * doc/glibc-functions/canonicalize_file_name.texi
14903         (canonicalize_file_name): Cygwin 1.7 now provides this.
14904         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14905         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14906         on AT_SYMLINK_NOFOLLOW.
14907
14908 2009-09-24  Eric Blake  <ebb9@byu.net>
14909
14910         test-linkat: make test more robust
14911         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14912
14913         getopt: fix inclusion guards for cygwin
14914         * modules/getopt-posix (Depends-on): Add include-next.
14915         (Makefile.am): Substitute more items in replacement header.
14916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14917         <getopt.h>.
14918         * lib/getopt.in.h (includes): Use split inclusion guard, and
14919         prefer <getopt.h> over include <unistd.h> when one is present.
14920         (option): Also override name of 'struct option'.
14921
14922         same-inode: revert prior change; it is not yet ready
14923         * NEWS: Undo mention of this change.
14924         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14925         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14926         * lib/cycle-check.c (cycle_check): Likewise.
14927         * lib/same.c (same_name): Likewise.
14928         * lib/at-func2.c (at_func2): Likewise.
14929
14930 2009-09-23  Eric Blake  <ebb9@byu.net>
14931
14932         linkat: new module
14933         * modules/linkat: New file.
14934         * lib/at-func2.c (at_func2): Likewise.
14935         * lib/linkat.c (linkat): Likewise.
14936         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14937         * lib/openat-priv.h (at_func2): Add declaration.
14938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14939         * modules/unistd (Makefile.am): Substitute them.
14940         * lib/unistd.in.h (linkat): Declare it.
14941         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14942         * doc/posix-functions/linkat.texi (linkat): Likewise.
14943         * doc/posix-functions/link.texi (link): Tweak wording.
14944         * tests/test-link.c (main): Move guts...
14945         * tests/test-link.h (test_link): ...into new file.
14946         * modules/linkat-tests: New test.
14947         * tests/test-linkat.c: Likewise.
14948         * modules/link-tests (Files): Ship new file.
14949         (Depends-on): Add stdbool.
14950
14951         dirname: add library-safe mdir_name
14952         * lib/dirname.h (mdir_name): New prototype.
14953         * lib/dirname.c (dir_name): Move guts...
14954         (mdir_name): ...to new function that avoids xalloc_die.
14955
14956         fchdir: another mingw fix
14957         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14958         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14959         on mingw (where it has not yet been ported), and make it optional
14960         elsewhere.
14961         (_gl_register_fd): Use it.
14962
14963         same-inode: make SAME_INODE tri-state, to port to mingw
14964         * NEWS: Mention this change.
14965         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14966         st_ino always being 0.
14967         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14968         * lib/cycle-check.c (cycle_check): Likewise.
14969         * lib/same.c (same_name): Likewise.
14970
14971         lstat: avoid mingw compilation error
14972         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14973         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14974         lstat ourselves.
14975         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14976         was adequate.
14977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14978         the checks for lstat.
14979         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14980
14981         link: fix test failure on Solaris 9
14982         * lib/link.c (rpl_link): Don't assume link will catch bogus
14983         trailing slash on source.
14984
14985         test-symlinkat: enhance test
14986         * tests/test-readlink.c (main): Move guts...
14987         * tests/test-readlink.h (test_readlink): ...into new file.
14988         * tests/test-symlink.c (main): Move guts...
14989         * tests/test-symlink.h (test_symlink): ...into new file.
14990         * tests/test-symlinkat.c (main): Use new files for further
14991         coverage.
14992         (do_symlink, do_readlink): New helper functions.
14993         * modules/symlink-tests (Files): Ship new file.
14994         (Depends-on): Add stdbool.
14995         * modules/readlink-tests (Files): Ship new file.
14996         (Depends-on): Add stdbool.
14997         * modules/symlinkat-tests (Files): Use new files.
14998
14999 2009-09-23  Eric Blake  <ebb9@byu.net>
15000
15001         readlink: document portability issue with symlink length
15002         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15003         systems have bogus st_size on symlinks, and mention the
15004         areadlink-with-size module.
15005         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15006         * doc/posix-functions/readlink.texi (readlink): Mention the
15007         areadlink module, and ERANGE failure.
15008         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15009         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15010
15011         readlink: fix Solaris 9 bug with trailing slash
15012         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15013         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15014         * doc/posix-functions/readlink.texi (readlink): Document this.
15015         * modules/readlink-tests: New test.
15016         * tests/test-readlink.c: Likewise.
15017
15018         readlink: fix cygwin 1.5.x bug with return type
15019         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15020         * lib/unistd.in.h (readlink): Use ssize_t.
15021         * lib/readlink.c (readlink): Likewise.
15022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15023         * modules/unistd (Makefile.am): Substitute it.
15024         * lib/unistd.in.h (readlink): Declare replacement.
15025         * doc/posix-functions/readlink.texi (readlink): Document this.
15026
15027         symlink: use throughout gnulib
15028         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15029         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15030         symlink is not used.
15031         * modules/symlinkat (Depends-on): Add symlink.
15032         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15033         * modules/canonicalize-tests (Depends-on): Likewise.
15034         * modules/lstat-tests (Depends-on): Likewise.
15035         * modules/openat-tests (Depends-on): Likewise.
15036         * modules/remove-tests (Depends-on): Likewise.
15037         * modules/rmdir-tests (Depends-on): Likewise.
15038         * modules/unlink-tests (Depends-on): Likewise.
15039         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15040         * tests/test-canonicalize.c (symlink): Likewise.
15041         * tests/test-fstatat.c (symlink): Likewise.
15042         * tests/test-lstat.c (symlink): Likewise.
15043         * tests/test-remove.c (symlink): Likewise.
15044         * tests/test-rmdir.c (symlink): Likewise.
15045         * tests/test-unlink.c (symlink): Likewise.
15046         * tests/test-unlinkat.c (symlink): Likewise.
15047
15048         symlink: new module, for Solaris 9 bug
15049         * modules/symlink: New file.
15050         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15051         * lib/symlink.c: Likewise.
15052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15053         * modules/unistd (Makefile.am): Substitute them.
15054         * lib/unistd.in.h (symlink): Declare replacement.
15055         * MODULES.html.sh (File system functions): Mention it.
15056         * doc/posix-functions/symlink.texi (symlink): Likewise.
15057         * modules/symlink-tests: New test.
15058         * tests/test-symlink.c: Likewise.
15059
15060 2009-09-23  Bruno Haible  <bruno@clisp.org>
15061
15062         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15063         when needed.
15064         Test case: gnulib-tool --import --with-tests atexit inttypes.
15065         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15066
15067 2009-09-23  Bruno Haible  <bruno@clisp.org>
15068
15069         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15070         subcommand, not in a subshell.
15071
15072 2009-09-22  Eric Blake  <ebb9@byu.net>
15073
15074         unistd: sort replacement declarations
15075         * lib/unistd.in.h: Sort declarations.
15076
15077         open, openat: minor optimization
15078         * lib/open.c (open): If open succeeded, len is non-zero.
15079         * lib/openat.c (rpl_openat): Likewise.
15080
15081         link-follow: ensure correct result
15082         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15083         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15084         distinguish between possible failures.
15085
15086 2009-09-21  Eric Blake  <ebb9@byu.net>
15087
15088         fts: avoid compiler warning
15089         * lib/fts.c (dirent_inode_sort_may_be_useful)
15090         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15091
15092 2009-09-19  Bruno Haible  <bruno@clisp.org>
15093
15094         * lib/progreloc.c (canonicalize_file_name): New declaration.
15095
15096 2009-09-19  Eric Blake  <ebb9@byu.net>
15097
15098         link: fix quoting
15099         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15100
15101         openat: fix openat bugs on Solaris 9
15102         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15103         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15104         * modules/openat (Depends-on): Add open.
15105         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15106         * modules/fcntl-h (Makefile.am): Substitute it.
15107         * lib/fcntl.in.h (openat): Declare replacement.
15108         * doc/posix-functions/openat.texi (openat): Document this.
15109
15110         openat: move fstatat and unlinkat into correct files
15111         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15112         compiled.
15113         * lib/openat.c (fstatat, unlinkat): Move...
15114         * lib/fstatat.c (fstatat): ...into correct files.
15115         * lib/unlinkat.c (unlinkat): Likewise.
15116
15117         openat: fix unlinkat bugs on Solaris 9
15118         * lib/unlinkat.c (unlinkat): New file.
15119         * modules/openat (Depends-on): Add unlink.
15120         (Files): Distribute it.
15121         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15122         trailing slash behavior is broken.
15123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15124         * modules/unistd (Makefile.am): Substitute it.
15125         * lib/unistd.in.h (unlinkat): Declare replacement.
15126         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15127
15128         openat: fix fstatat bugs on Solaris 9
15129         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15130         stat.
15131         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15132
15133         test-unlinkat: enhance test, to expose Solaris 9 bug
15134         * tests/test-unlink.c (main): Factor guts...
15135         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15136         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15137         * tests/test-rmdir.c (main): Adjust caller.
15138         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15139         (unlinker): New helper function.
15140         (rmdirat): Enhance check.
15141         * modules/rmdir-tests (Depends-on): Add stdbool.
15142         * modules/unlink-tests (Depends-on): Likewise.
15143         (Files): Add test-unlink.h.
15144         * modules/openat-tests (Files): Likewise.
15145         (Depends-on): Add unlinkdir.
15146
15147         test-fstatat: new test, to expose Solaris 9 bugs
15148         * tests/test-stat.c (main): Factor guts...
15149         * tests/test-stat.h (test_stat_func): ...into new file.
15150         * tests/test-lstat.c (main): Factor guts...
15151         * tests/test-lstat.h (test_lstat_func): ...into new file.
15152         * tests/test-fstatat.c: New file.
15153         * modules/stat-tests (Files): Add test-stat.h.
15154         * modules/lstat-tests (Files): Add test-lstat.h.
15155         (Depends-on): Add stdbool.
15156         * modules/openat-tests (Depends-on): Add pathmax.
15157         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15158         (Makefile.am): Run new test.
15159
15160         remove: new module, for mingw and Solaris 9 bugs
15161         * modules/remove: New file.
15162         * lib/remove.c: Likewise.
15163         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15165         * modules/stdio (Makefile.am): Use them.
15166         * lib/stdio.in.h (remove): Declare replacement.
15167         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15168         * doc/posix-functions/remove.texi (remove): Likewise.
15169         * modules/remove-tests: New test.
15170         * tests/test-remove.c: Likewise.
15171
15172         unlink: new module, for Solaris 9 bug
15173         * modules/unlink: New file.
15174         * lib/unlink.c: Likewise.
15175         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15177         * modules/unistd (Makefile.am): Use them.
15178         * lib/unistd.in.h (stat): Declare replacement.
15179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15180         * doc/posix-functions/unlink.texi (unlink): Likewise.
15181         * modules/unlink-tests: New test.
15182         * tests/test-unlink.c: Likewise.
15183
15184         lstat: fix Solaris 9 bug
15185         * lib/lstat.c (lstat): Also check for trailing slash on
15186         non-symlink, non-directories.  Use stat module to simplify logic.
15187         * doc/posix-functions/lstat.texi (lstat): Document it.
15188         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15189         (configure.ac): Check for symlink.
15190         * tests/test-lstat.c (main): Add more tests.
15191
15192         stat: add as dependency to other modules
15193         * modules/chown (Depends-on): Add stat.
15194         * modules/euidaccess (Depends-on): Likewise.
15195         * modules/fchdir (Depends-on): Likewise.
15196         * modules/isdir (Depends-on): Likewise.
15197         * modules/link (Depends-on): Likewise.
15198         * modules/lstat (Depends-on): Likewise.
15199         * modules/mkdir-p (Depends-on): Likewise.
15200         * modules/modechange (Depends-on): Likewise.
15201         * modules/open (Depends-on): Likewise.
15202         * modules/readlink (Depends-on): Likewise.
15203         * modules/same (Depends-on): Likewise.
15204
15205         stat: fix Solaris 9 bug
15206         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15207         slash.
15208         * lib/stat.c (rpl_stat): Work around it.
15209         * doc/posix-functions/stat.texi (stat): Update documentation.
15210
15211         stat: new module, for mingw bug
15212         * modules/stat: New file.
15213         * lib/stat.c: Likewise.
15214         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15216         * modules/sys_stat (Makefile.am): Use them.
15217         * lib/sys_stat.in.h (stat): Declare replacement.
15218         * lib/openat.c (fstatat): Deal with lstat and stat being function
15219         macros.
15220         * modules/openat (Depends-on): Add inline.
15221         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15222         * doc/posix-functions/stat.texi (stat): Likewise.
15223         * modules/stat-tests: New test.
15224         * tests/test-stat.c: Likewise.
15225
15226 2009-09-19  Jim Meyering  <meyering@redhat.com>
15227
15228         syntax-check: detect unnecessary inclusion of canonicalize.h
15229         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15230
15231 2009-09-19  Eric Blake  <ebb9@byu.net>
15232
15233         canonicalize-lgpl: adjust clients to use correct header
15234         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15235         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15236         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15237         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15238         * lib/progreloc.c (includes): Likewise.
15239
15240 2009-09-19  Jim Meyering  <meyering@redhat.com>
15241
15242         test-posixtm.c: correct a comment
15243         * tests/test-posixtm.c: Correct first-line comment.
15244         Spotted by Eric Blake.
15245
15246 2009-09-16  Jim Meyering  <meyering@redhat.com>
15247
15248         posixtm-tests: make T const-correct; add a test case
15249         * tests/test-posixtm.c (T): Declare const.
15250         Add a test for -(2^31+1).
15251         Remove useless can-succeed-only-in-2002 test.
15252
15253         posixtm-tests: adjust the sole failing test
15254         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15255         expected output matches what mktime now produces.  Cross-checked via
15256         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15257
15258         posixtm: move #ifdef'd tests into a new module
15259         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15260         * tests/test-posixtm.c: ... this new file.
15261         * modules/posixtm-tests: New module.
15262
15263 2009-09-19  Eric Blake  <ebb9@byu.net>
15264
15265         openat: simplify use of at-func.c
15266         * lib/at-func.c (includes): Include prerequisites here, to
15267         simplify requirements on client files.
15268         * lib/openat-priv.h: Add double-inclusion guard.
15269         * lib/faccessat.c (includes): Simplify.
15270         * lib/fchmodat.c (includes): Likewise.
15271         * lib/fchownat.c (includes): Likewise.
15272         * lib/mkdirat.c (includes): Likewise.
15273         * lib/mkfifoat.c (includes): Likewise.
15274         * lib/symlinkat.c (includes): Likewise.
15275
15276         openat: allow return of fd 0
15277         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15278         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15279         unistd-safer.
15280         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15281         <fcntl.h>; this module does not leak fds.
15282         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15283         must be allowed to return 0, leaving openat_safer to add the
15284         safety.
15285         (openat_permissive): Avoid writing to just-opened fd 2 if
15286         restoring the current directory fails.
15287         * lib/openat-die.c (openat_restore_fail): Add comment.
15288         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15289         (save_cwd): Guarantee safe fd, but without use of open_safer.
15290         * tests/test-openat.c: New test.
15291         * modules/openat-tests (Files, Makefile.am): Distribute and build
15292         new file.
15293
15294         relocatable-prog-wrapper: fix build
15295         * modules/relocatable-prog-wrapper (Files): Update name of
15296         canonicalize m4 file, broken on 2009-09-17.
15297         Reported by emad hajjar <aleppos@hotmail.com>.
15298
15299 2009-09-19  Bruno Haible  <bruno@clisp.org>
15300
15301         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15302         * lib/safe-alloc.c: Likewise.
15303         Reported by Ian Beckwith <ianb@erislabs.net>.
15304
15305 2009-09-18  Bruno Haible  <bruno@clisp.org>
15306
15307         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15308         Reported by <erobles@sensacd.com.mx>.
15309
15310 2009-09-17  Eric Blake  <ebb9@byu.net>
15311
15312         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15313         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15314         slashes when checking if last component is missing.
15315         * tests/test-canonicalize.c (main): Test this.
15316
15317         canonicalize, canonicalize-lgpl: honor // if distinct from /
15318         * modules/canonicalize (Files): Add double-slash-root.m4.
15319         * modules/canonicalize-lgpl (Files): Likewise.
15320         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15321         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15322         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15323         fallback definition.
15324         (canonicalize_filename_mode): Use it to protect //.
15325         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15326         (__realpath): Likewise.
15327         * tests/test-canonicalize.c (main): Test this.
15328         * tests/test-canonicalize-lgpl.c (main): Likewise.
15329         * modules/canonicalize-tests (Depends-on): Add same-inode.
15330         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15331
15332         canonicalize-lgpl: fix glibc bug with trailing slash
15333         * m4/canonicalize-lgpl.m4: Move contents...
15334         * m4/canonicalize.m4: ...here.
15335         (gl_CANONICALIZE_LGPL): Factor realpath check...
15336         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15337         glibc 2.3.5 bug, fixed 2005-04-27.
15338         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15339         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15340         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15341         * modules/canonicalize-lgpl (Files): Manage file rename.
15342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15343         * modules/stdlib (Makefile.am): Substitute witness.
15344         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15345         is needed.
15346         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15347         replacement is required.
15348         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15349         * doc/glibc-functions/canonicalize_file_name.texi
15350         (canonicalize_file_name): Document this.
15351         * doc/posix-functions/realpath.texi (realpath): Likewise.
15352
15353         canonicalize-lgpl: reject non-directory with trailing slash
15354         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15355         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15356         catches failures in glibc 2.3.5.
15357         * tests/test-canonicalize.c (main): Likewise.
15358
15359         canonicalize-lgpl: use native realpath if it works
15360         * lib/canonicalize-lgpl.c (realpath): Guard with
15361         FUNC_REALPATH_WORKS.
15362         * lib/stdlib.in.h (realpath): Make declaration optional based on
15363         HAVE_REALPATH.
15364         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15365         native realpath works.
15366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15367         * modules/stdlib (Makefile.am): Substitute witness.
15368
15369         canonicalize, canonicalize-lgpl: use <stdlib.h>
15370         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15371         (Include): Mention <stdlib.h>.
15372         (configure.ac): Mention functions we provide.
15373         * modules/canonicalize (configure.ac): Likewise.
15374         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15375         realpath if canonicalize_file_name is missing.
15376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15377         * modules/stdlib (Makefile.am): Substitute witnesses.
15378         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15379         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15380         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15381         * NEWS: Document this.
15382         * doc/glibc-functions/canonicalize_file_name.texi
15383         (canonicalize_file_name): Likewise.
15384         * doc/posix-functions/realpath.texi (realpath): Likewise.
15385         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15386
15387         test-canonicalize: consolidate into single C program
15388         * tests/test-canonicalize.sh: Delete; move setup into...
15389         * tests/test-canonicalize.c (main): ...the program, making it
15390         easier to run in debugger.  Add some tests.
15391         * modules/canonicalize-tests (Files): Remove unused file.
15392         (Depends-on): Add progname.
15393         (configure.ac, Makefile.am): Simplify.
15394
15395         test-canonicalize-lgpl: consolidate into single C program
15396         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15397         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15398         easier to run in debugger.  Add some tests.
15399         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15400         (configure.ac, Makefile.am): Simplify.
15401
15402         canonicalize: avoid resolvepath
15403         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15404         unnecessary checks.
15405         * lib/canonicalize.c (includes): Simplify.
15406         (canonicalize_file_name): Drop resolvepath implementation.
15407         * modules/canonicalize (Depends-on): Drop filenamecat.
15408
15409         canonicalize: don't lose errno
15410         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15411         over calls to free.
15412
15413         canonicalize: simplify errno handling
15414         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15415         assignment.
15416
15417         canonicalize, canonicalize-lgpl: update module dependencies
15418         * modules/canonicalize (Depends-on): Add extensions, lstat,
15419         pathmax, stdlib.
15420         (Files): Drop pathmax.h.
15421         (configure.ac): Adjust macro name.
15422         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15423         lstat, stdlib, sys_stat.
15424         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15425         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15426         extensions.
15427         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15428         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15429         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15430         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15431         declaration, if available.
15432         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15433         we can rely on the readlink module.
15434         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15435         (includes): Use <unistd.h> unconditionally.
15436
15437 2009-09-17  Eric Blake  <ebb9@byu.net>
15438
15439         maint: make Include sections of modules consistent
15440         * modules/alloca: Use only header name; no need to list #include.
15441         * modules/alloca-opt: Likewise.
15442         * modules/arpa_inet: Likewise.
15443         * modules/canon-host: Likewise.
15444         * modules/configmake: Likewise.
15445         * modules/dirent: Likewise.
15446         * modules/eealloc: Likewise.
15447         * modules/environ: Likewise.
15448         * modules/fchdir: Likewise.
15449         * modules/fcntl: Likewise.
15450         * modules/fcntl-h: Likewise.
15451         * modules/gethrxtime: Likewise.
15452         * modules/gettime: Likewise.
15453         * modules/ignore-value: Likewise.
15454         * modules/inet_ntop: Likewise.
15455         * modules/inet_pton: Likewise.
15456         * modules/inttypes: Likewise.
15457         * modules/isnand-nolibm: Likewise.
15458         * modules/isnanf-nolibm: Likewise.
15459         * modules/mbchar: Likewise.
15460         * modules/mbfile: Likewise.
15461         * modules/mbiter: Likewise.
15462         * modules/mbuiter: Likewise.
15463         * modules/netdb: Likewise.
15464         * modules/netinet_in: Likewise.
15465         * modules/nproc: Likewise.
15466         * modules/pagealign_alloc: Likewise.
15467         * modules/poll: Likewise.
15468         * modules/printf-frexp: Likewise.
15469         * modules/pthread: Likewise.
15470         * modules/putenv: Likewise.
15471         * modules/random_r: Likewise.
15472         * modules/relocatable-prog: Likewise.
15473         * modules/search: Likewise.
15474         * modules/select: Likewise.
15475         * modules/selinux-h: Likewise.
15476         * modules/settime: Likewise.
15477         * modules/signal: Likewise.
15478         * modules/size_max: Likewise.
15479         * modules/socklen: Likewise.
15480         * modules/ssize_t: Likewise.
15481         * modules/stdarg: Likewise.
15482         * modules/stdbool: Likewise.
15483         * modules/stddef: Likewise.
15484         * modules/stdint: Likewise.
15485         * modules/stdio: Likewise.
15486         * modules/stdlib: Likewise.
15487         * modules/string: Likewise.
15488         * modules/strings: Likewise.
15489         * modules/sys_file: Likewise.
15490         * modules/sys_ioctl: Likewise.
15491         * modules/sys_select: Likewise.
15492         * modules/sys_socket: Likewise.
15493         * modules/sys_stat: Likewise.
15494         * modules/sys_time: Likewise.
15495         * modules/sys_times: Likewise.
15496         * modules/sys_utsname: Likewise.
15497         * modules/sys_wait: Likewise.
15498         * modules/sysexits: Likewise.
15499         * modules/time: Likewise.
15500         * modules/times: Likewise.
15501         * modules/tmpfile: Likewise.
15502         * modules/trim: Likewise.
15503         * modules/unistd: Likewise.
15504         * modules/wchar: Likewise.
15505         * modules/wctype: Likewise.
15506
15507 2009-09-17  Bruno Haible  <bruno@clisp.org>
15508
15509         Make getdate.y compile on QNX and NetBSD 5 / i386.
15510         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15511         TIME_T_FITS_IN_LONG_INT.
15512         * lib/getdate.y (long_time_t): New type.
15513         (relative_time): Change type of 'seconds' field to long_time_t.
15514         (get_date): Update types of local variables. Check against overflow
15515         during conversion from long_time_t to time_t.
15516         Reported by Matt Kraai <kraai@ftbfs.org>
15517         and Hasso Tepper <hasso@netbsd.org>.
15518
15519 2009-09-17  Bruno Haible  <bruno@clisp.org>
15520
15521         * modules/COPYING: Update copyright years.
15522         * modules/README: Likeiwse.
15523         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15524         Reported by Ian Beckwith <ianb@erislabs.net>.
15525
15526 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15527
15528         * users.txt: Update references for gnuit package.
15529
15530 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15531
15532         * m4/getdelim.m4: Fix typo in copyright line.
15533
15534 2009-09-17  Bruno Haible  <bruno@clisp.org>
15535
15536         * lib/atoll.c: Use the standard header with GPL copyright.
15537         * lib/argz.in.h: Likewise.
15538         * lib/glob.c: Likewise.
15539         * lib/glob-libc.h: Likewise.
15540         * lib/random_r.c: Likewise.
15541         * lib/siglist.h: Likewise.
15542         * lib/strsignal.c: Likewise.
15543         Reported by Ian Beckwith <ianb@erislabs.net>.
15544
15545 2009-09-17  Eric Blake  <ebb9@byu.net>
15546
15547         rmdir: ensure correct dependency order
15548         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15549
15550 2009-09-17  Bruno Haible  <bruno@clisp.org>
15551
15552         Disable assertion that fails on NetBSD 5 / i386.
15553         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15554         Reported by Sam Steingold <sds@gnu.org>
15555         and Hasso Tepper <hasso@netbsd.org>.
15556
15557 2009-09-16  Eric Blake  <ebb9@byu.net>
15558
15559         unlinkdir: port to mingw
15560         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15561         on which no one can unlink a directory.
15562
15563         stdlib: sort witness names
15564         * modules/stdlib (Makefile.am): Sort replacements.
15565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15566         * lib/stdlib.in.h: Likewise.
15567
15568         parse-duration-tests: avoid link failure
15569         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15570         LIBINTL.
15571         Reported by Tom G. Christensen.
15572
15573         openat-tests: ensure unlinkat behaves like rmdir
15574         * tests/test-rmdir.c (main): Factor guts...
15575         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15576         * modules/rmdir-tests (Files): Ship new file.
15577         * modules/openat-tests: New test.
15578         * tests/test-unlinkat.c: Likewise.
15579
15580         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15581         * modules/rmdir-errno (Status, Notice): Now obsolete.
15582
15583         rmdir: work around cygwin 1.5.x and mingw bugs
15584         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15585         * lib/rmdir.c (rmdir): Work around it.
15586         * modules/rmdir (Status, Notice): No longer obsolete.
15587         (Files): Add dos.m4.
15588         (Depends-on): Add unistd.
15589         (configure.ac): Set witnesses.
15590         (License): Relax to LGPLv2+.
15591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15592         * modules/unistd (Makefile.am): Substitute witnesses.
15593         * lib/unistd.in.h (rmdir): Declare replacement.
15594         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15595         * modules/rmdir-tests: New tests.
15596         * tests/test-rmdir.c: Likewise.
15597
15598 2009-09-15  Eric Blake  <ebb9@byu.net>
15599
15600         fchdir: improve use of replacement functions
15601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15604         REPLACE_CLOSEDIR.
15605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15606         * modules/sys_stat (Makefile.am): Substitute correct witness.
15607         * modules/dirent (Makefile.am): Likewise.
15608         * modules/unistd (Makefile.am): Likewise.
15609         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15610         * lib/unistd.in.h (dup): Likewise.
15611         * lib/sys_stat.in.h (fstat): Likewise.
15612
15613         maint: ignore gnulib-tool temp files
15614         * .gitignore: Ignore files created during gnulib-tool --test.
15615
15616 2009-09-13  Jim Meyering  <meyering@redhat.com>
15617
15618         posixtm: don't reject a time that specify "60" as the number of seconds
15619         * lib/posixtm.c (posixtime): The code to reject invalid dates
15620         would also reject a time specified with the .60 suffix.
15621         But POSIX allows that, in order to accommodate leap seconds.
15622         So don't reject it.
15623         (main): Adjust tests accordingly.
15624         * modules/posixtm (Depends-on): Add stpcpy.
15625
15626 2009-09-11  Jim Meyering  <meyering@redhat.com>
15627
15628         announce-gen: include [$release_type] in emitted Subject:
15629         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15630         e.g., [stable] in the emitted Subject: line.
15631
15632 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15633
15634         Remove obsolete macros from several modules.
15635         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15636         obsolete Autoconf macros with their modern counterparts.
15637         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15638         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15640         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15641         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15642         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15644         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15645         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15646         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15647         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15648         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15649         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15650         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15651         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15652         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15653         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15654         * m4/time_r.m4 (gl_TIME_R): Likewise.
15655         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15656         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15657         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15658
15659         Fix copyright header in build-aux scripts.
15660         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15661         recommendation.
15662         * build-aux/ncftpput-ftp: Likewise.
15663         * build-aux/update-copyright: Likewise.
15664
15665 2009-09-09  Eric Blake  <ebb9@byu.net>
15666
15667         test-link: allow Linux choice of errno
15668         * tests/test-link.c (main): Relax test for alternate error.
15669
15670         strndup: fix improper m4 caching
15671         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15672         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15673         (gl_PREREQ_STRNDUP): Delete.
15674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15675         * modules/string (Makefile.am): Substitute it.
15676         * lib/string.in.h (strndup): Modernize prototype.
15677
15678         getcwd: port to mingw
15679         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15680         different from the POSIX assumptions made throughout the getcwd
15681         module; fortunately, the mingw getcwd does not need replacement.
15682         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15683         * modules/getcwd-tests: New test.
15684         * tests/test-getcwd.c: Likewise.
15685
15686         link: fix platform bugs
15687         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15688         * lib/link.c (link): Work around them.  Fix related mingw bug.
15689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15690         * modules/unistd (Makefile.am): Substitute it.
15691         * lib/unistd.in.h (link): Declare replacement.
15692         * doc/posix-functions/link.texi (link): Document this.
15693         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15694
15695         test-link: consolidate into single C program, test more cases
15696         * tests/test-link.sh: Delete.
15697         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15698         at least Cygwin and Solaris.
15699         * modules/link-tests (Files): Remove unused file.
15700         (Depends-on): Add errno, sys_stat.
15701         (Makefile.am): Simplify.
15702
15703 2009-09-08  Bruno Haible  <bruno@clisp.org>
15704
15705         Work around towlower, towupper bug on mingw.
15706         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15707         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15708         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15709         * doc/posix-functions/towupper.texi: Likewise.
15710         Reported by Eric Blake.
15711
15712 2009-09-08  Jim Meyering  <meyering@redhat.com>
15713
15714         build: don't try to run autoheader if we don't use it
15715         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15716         is not used in configure.ac.
15717
15718 2009-09-08  Eric Blake  <ebb9@byu.net>
15719
15720         euidaccess: fix compilation error
15721         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15722
15723         rawmemchr: relax license
15724         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15725         okay.
15726         Reported by Jim Meyering.
15727
15728         mkfifoat: new module
15729         * modules/mkfifoat: New file.
15730         * lib/mkfifoat.c: Likewise.
15731         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15733         * modules/sys_stat (Makefile.am): Use them.
15734         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15735         * MODULES.html.sh (File system functions): Mention module.
15736         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15737         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15738         * modules/mkfifoat-tests: New test.
15739         * tests/test-mkfifoat.c: Likewise.
15740
15741         strchrnul: relax license
15742         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15743         okay.
15744         Reported by Jim Meyering.
15745
15746 2009-09-08  Eric Blake  <ebb9@byu.net>
15747
15748         fstatat: fix compilation on Solaris
15749         * lib/fstatat.c (includes): Add fcntl.h.
15750         Reported by Pádraig Brady.
15751
15752 2009-09-07  Eric Blake  <ebb9@byu.net>
15753
15754         rename: modernize replacement
15755         * modules/rename (Depends-on): Add stdio.
15756         (configure.ac): Declare witness.
15757         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15758         stdio take care of replacement.
15759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15760         * modules/stdio (Makefile.am): Substitute them.
15761         * lib/stdio.in.h (rename): Declare replacement.
15762         * lib/rename.c (includes): Allow cross-compilation to non-windows
15763         machines.
15764         * doc/posix-functions/rename.texi (rename): Improve
15765         documentation.
15766
15767         stdio: sort witness names
15768         * modules/stdio (Makefile.am): Sort replacements.
15769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15770         * lib/stdio.in.h: Likewise.
15771
15772         getcwd: minor cleanups
15773         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15774         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15775
15776         openat: provide more convenience names
15777         * modules/faccessat (configure.ac): Add C witness.
15778         * lib/unistd.in.h (readlinkat): Fix typo.
15779         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15780         convenience wrappers.
15781         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15782         wrappers in syntax checks.
15783
15784 2009-09-06  Eric Blake  <ebb9@byu.net>
15785
15786         doc: fix comments in recent patches
15787         * lib/faccessat.c: Mention correct function.
15788         * lib/fchmodat.c: Likewise.
15789         * lib/fchownat.c: Likewise.
15790         * lib/symlinkat.c: Likewise.
15791         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15792         constants.
15793
15794         faccessat, symlinkat: continue cleanup of previous patch
15795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15796         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15797         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15799         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15800         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15801         set.
15802
15803 2009-09-06  Bruno Haible  <bruno@clisp.org>
15804
15805         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15806         (fstatat): Declare if GNULIB_FSTATAT is set.
15807         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15808         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15809         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15810         * modules/fcntl-h (Files): Remove m4/openat.m4.
15811         * modules/sys_stat (Files): Remove m4/openat.m4.
15812         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15813         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15814         * modules/unistd (Files): Remove m4/openat.m4.
15815         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15816         GNULIB_OPENAT.
15817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15818         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15820         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15821         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15822         gl_OPENAT_DEFAULTS.
15823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15824         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15825         Don't require gl_OPENAT_DEFAULTS.
15826         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15827         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15828         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15829         (gl_OPENAT_DEFAULTS): Remove macro.
15830
15831 2009-09-06  Bruno Haible  <bruno@clisp.org>
15832
15833         * modules/openat (configure.ac): Remove unneeded witness.
15834
15835 2009-09-06  Bruno Haible  <bruno@clisp.org>
15836
15837         Set errno to ENOSYS when a function is entirely unsupported.
15838         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15839         EOPNOTSUPP.
15840         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15841         * modules/chown (Depends-on): Remove errno.
15842
15843 2009-09-06  Bruno Haible  <bruno@clisp.org>
15844
15845         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15846
15847 2009-09-06  Bruno Haible  <bruno@clisp.org>
15848
15849         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15850
15851 2009-09-06  Ben Pfaff  <blp@gnu.org>
15852             Bruno Haible  <bruno@clisp.org>
15853
15854         Work around a glibc bug in strtok_r.
15855         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15856         Undefine if UNDEFINE_STRTOK_R is set.
15857         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15859         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15860         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15861         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15862         UNDEFINE_STRTOK_R.
15863         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15864
15865 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15866
15867         exclude: minor fix
15868         * lib/exclude.c: Include wctype.h
15869
15870 2009-09-06  Akim Demaille  <demaille@gostai.com>
15871
15872         bootstrap: improve error message
15873         * build-aux/bootstrap (find_tool): Upon failure, report the list
15874         of candidates.
15875         Honor the initial value of the envvar.
15876
15877 2009-09-05  Eric Blake  <ebb9@byu.net>
15878
15879         symlinkat: new module
15880         * modules/symlinkat: New file.
15881         * lib/symlinkat.c: Likewise.
15882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15884         * modules/unistd (Makefile.am): Use them.
15885         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15886         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15887         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15888         * MODULES.html.sh (File system functions): Mention module.
15889         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15890         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15891         * modules/symlinkat-tests: New test.
15892         * tests/test-symlinkat.c: Likewise.
15893
15894         test-openat-safer: add more checks
15895         * tests/test-openat-safer.c (main): Check more code paths.
15896
15897 2009-09-05  Jim Meyering  <meyering@redhat.com>
15898
15899         syntax-check: detect unnecessary inclusion of openat.h
15900         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15901
15902 2009-09-05  Bruno Haible  <bruno@clisp.org>
15903
15904         Support towlower, towupper.
15905         * doc/posix-functions/towlower.texi: Mention module wctype.
15906         * doc/posix-functions/towupper.texi: Likewise.
15907         * lib/wctype.in.h (towlower, towupper): New functions.
15908         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15909         (ASSERT): New macro.
15910         (e): New variable.
15911         (main): Test also towlower, towupper. Test WEOF argument.
15912         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15913
15914 2009-09-05  Bruno Haible  <bruno@clisp.org>
15915
15916         Fix conversion behaviour when the input is invalid.
15917         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15918         mark occurring in first pass of indirect conversion.
15919         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15920         input.
15921         Found by clang's static analyzer.
15922
15923 2009-09-05  Bruno Haible  <bruno@clisp.org>
15924
15925         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15926         where direct conversion is possible.
15927
15928 2009-09-04  Eric Blake  <ebb9@byu.net>
15929
15930         openat: fail with ENOENT on empty name
15931         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15932         buffer.
15933
15934         link-follow: fix logic bug in prior patch
15935         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15936         reversed sense of yes and no in prior patch.  Avoid confusing
15937         compilation failure with desired semantics.
15938
15939         link-follow: accomodate mingw and cross-compilation
15940         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15941         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15942         cross-compilation results to -1, to make linkat easier to
15943         implement when cross-compiling.  Trivially support mingw.
15944         * modules/link-follow (configure.ac): Call new name.
15945         * NEWS: Mention this.
15946
15947 2009-09-03  Eric Blake  <ebb9@byu.net>
15948
15949         faccessat: compile replacement
15950         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15951         needed.
15952
15953         fts: fix compilation error
15954         * lib/fts.c (includes): Re-add "openat.h", for
15955         openat_needs_fchdir.
15956
15957         faccessat: new module
15958         * modules/faccessat: New file.
15959         * lib/faccessat.c: Likewise.
15960         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15962         * modules/unistd (Makefile.am): Use it.
15963         * lib/unistd.in.h (faccessat): Declare it.
15964         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15965         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15966         * MODULES.html.sh (File system functions): Mention it.
15967         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15968         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15969
15970         euidaccess: prefer POSIX over non-standard implementation
15971         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15972         * lib/euidaccess.c (euidaccess): Use it if available.
15973
15974         openat: make template easier to use
15975         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15976         AT_FUNC_F2 to be undefined.
15977         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15978         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15979         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15980         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15981         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15982         Likewise.
15983         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15984         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15985         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15986         Likewise.
15987
15988         openat: declare in POSIX headers
15989         * NEWS: Mention this.
15990         * modules/openat (configure.ac): Declare witnesses.
15991         (Depends-on): Add fcntl-h, sys_stat, unistd.
15992         (Include): Mention correct headers.
15993         * modules/fcntl-h (Depends-on): Add link-warning.
15994         (Files): Add openat.m4.
15995         (Makefile.am): Substitute witnesses.
15996         * modules/sys_stat (Files, Makefile.am): Likewise.
15997         * modules/unistd (Files, Makefile.am): Likewise.
15998         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15999         (gl_OPENAT_DEFAULTS): New macro.
16000         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16002         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16003         (SYS_STAT_H): Remove unused variable.
16004         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16005         * lib/fcntl--.h (includes): Remove unneeded header.
16006         * lib/openat-safer.c (includes): Likewise.
16007         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16008         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16009         appropriate headers.
16010         (__OPENAT_PREFIX): Delete.
16011         * lib/fcntl.in.h (openat): Provide declaration.
16012         (AT_FDCWD): Fix Solaris bug.
16013         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16014         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16015         * lib/fchmodat.c (includes):  Adjust to find declaration.
16016         * lib/fchownat.c (includes): Likewise.
16017         * lib/mkdirat.c (includes): Likewise.
16018         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16019         still visible.
16020
16021 2009-09-02  Eric Blake  <ebb9@byu.net>
16022
16023         errno: use consistently
16024         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16025         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16026         * lib/canonicalize.c (ELOOP): Likewise.
16027         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16028         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16029         * lib/lchown.c (EOPNOTSUPP): Likewise.
16030         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16031         * lib/savewd.c (ESTALE): Likewise.
16032         * lib/settime.c (ENOSYS): Likewise.
16033         * lib/utimens.c (ENOSYS): Likewise.
16034         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16035         * lib/chdir-safer.c (ELOOP): Likewise.
16036         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16037         * modules/c-stack (Depends-on): Add errno.
16038         * modules/canonicalize (Depends-on): Likewise.
16039         * modules/chdir-safer (Depends-on): Likewise.
16040         * modules/fdopendir (Depends-on): Likewise.
16041         * modules/inet_ntop (Depends-on): Likewise.
16042         * modules/inet_pton (Depends-on): Likewise.
16043         * modules/lchown (Depends-on): Likewise.
16044         * modules/openat (Depends-on): Likewise.
16045         * modules/savewd (Depends-on): Likewise.
16046         * modules/settime (Depends-on): Likewise.
16047         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16048
16049         fts: avoid leaking fds
16050         * modules/fts (Depends-on): Add cloexec.
16051         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16052         flag.
16053
16054         fts: make directory fds more robust
16055         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16056         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16057
16058         backupfile, chdir-long, fts, savedir: make safer
16059         * lib/backupfile.c (includes): Use "dirent--.h", since
16060         numbered_backup can write to stderr during readdir.
16061         * lib/savedir.c (includes): Likewise.
16062         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16063         emulation can write to stderr on failure.
16064         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16065         * lib/getcwd.c: Document why opendir_safer is unused.
16066         * lib/glob.c: Likewise.
16067         * lib/scandir.c: Likewise.
16068         * lib/openat-proc.c: Likewise, for open_safer.
16069         * modules/backupfile (Depends-on): Add dirent-safer.
16070         * modules/savedir (Depends-on): Likewise.
16071         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16072         * modules/chdir-long (Depends-on): Add openat-safer.
16073
16074         openat-safer: new module
16075         * modules/openat-safer: New file.
16076         * lib/openat-safer.c: Likewise.
16077         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16078         * lib/fcntl-safer.h (openat_safer): Declare.
16079         * lib/fcntl--.h (openat): Override.
16080         * MODULES.html.sh (File descriptor based I/O): Mention it.
16081         * lib/openat.h: Add double-inclusion guards.
16082         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16083         "fcntl--.h", so we can implement openat.
16084         * modules/openat-safer-tests: New test.
16085         * tests/test-openat-safer.c: New file.
16086
16087         dirent-safer: new module
16088         * modules/dirent-safer: New file.
16089         * lib/dirent--.h: Likewise.
16090         * lib/dirent-safer.h: Likewise.
16091         * lib/opendir-safer.c: Likewise.
16092         * m4/dirent-safer.m4: Likewise.
16093         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16094         * modules/dirent-safer-tests: New test.
16095         * tests/test-dirent-safer.c: New file.
16096         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16097
16098         fdopendir: optimize on mingw
16099         * lib/unistd.in.h (_gl_directory_name): New prototype.
16100         * lib/fchdir.c (_gl_directory_name): Implement it.
16101         (fchdir): Use it to simplify implementation.
16102         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16103         fchdir, when available, to avoid calling [f]chdir().
16104
16105         fdopendir: split into its own module
16106         * lib/openat.c (fdopendir): Move...
16107         * lib/fdopendir.c: ...into new file.
16108         * modules/fdopendir: New module.
16109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16110         * modules/openat (Depends-on): Add fdopendir.
16111         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16112         fdopendir here.
16113         * modules/savedir (Depends-on): Only need fdopendir, not full
16114         openat.
16115         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16116         * lib/openat.h (fdopendir): Drop prototype.
16117         * lib/dirent.in.h (fdopendir): Provide prototype.
16118         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16119         * modules/dirent (Makefile.am): Substitute them.
16120         * MODULES.html.sh (File system functions): Mention it.
16121         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16122         * modules/fdopendir-tests: New file.
16123         * tests/test-fdopendir.c: Likewise.
16124
16125         fchdir: use more consistent macro convention
16126         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16127         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16128         REPLACE_FCHDIR, rather than relying on config.h macros.
16129         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16130         inside a single make-time REPLACE_FCHDIR block, rather than using
16131         the config.h FCHDIR_REPLACEMENT.
16132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16133         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16134         Manage fstat replacement.
16135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16136         REPLACE_FCHDIR.
16137         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16138         (Makefile.am): Substitute REPLACE_FCHDIR.
16139         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16140         FCHDIR_REPLACEMENT.
16141         * lib/dup-safer.c (dup_safer): Likewise.
16142         * lib/dup2.c (rpl_dup2): Likewise.
16143         * lib/dup3.c (rpl_dup3): Likewise.
16144         * lib/open.c (rpl_open): Likewise.
16145
16146         fchdir: simplify error handling, and support dup3
16147         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16148         stdbool, malloc-posix, realloc-posix.
16149         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16150         (ensure_dirs_slot): Return false on allocation failure.
16151         (rpl_dup2): Delete.
16152         (_gl_register_dup): New function.
16153         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16154         (_gl_register_fd): Close fd on allocation failure.
16155         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16156         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16157         prototype.
16158         (rpl_dup2_fchdir): Delete prototype.
16159         * lib/open.c (open): Update caller.
16160         * lib/dup2.c (dup2): Track fchdir metadata.
16161         * lib/dup3.c (dup3): Likewise.
16162         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16164
16165 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16166
16167         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16168         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16169         don't pass arguments to AC_OUTPUT.
16170
16171 2009-09-02  Bruno Haible  <bruno@clisp.org>
16172
16173         * modules/mkdtemp (License): Relicense under LGPLv2+.
16174         Reported by Paolo Bonzini.
16175
16176 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16177
16178         Replace uses of obsolete autoconf macros in Jim's modules.
16179         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16180         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16181         can evoke a warning from autoconf when run with -Wobsolete
16182         enabled.  They were declared obsolete for good reasons (see
16183         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16184         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16185         should not continue using the deprecated macros.
16186         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16187         obsolete Autoconf macros with modern counterparts.
16188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16189         * m4/dos.m4 (gl_AC_DOS): Likewise.
16190         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16192         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16193         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16194         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16195         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16196         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16197         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16198         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16199         Likewise.
16200         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16201         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16202         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16203         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16204         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16205         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16206
16207 2009-09-01  Eric Blake  <ebb9@byu.net>
16208
16209         fchdir: fix off-by-one bug in previous patch
16210         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16211         (_gl_unregister_fd): Delete useless if.
16212
16213 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16214
16215         maint.mk: sort the list of syntax-check rules
16216         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16217         easier to get a sense of progress when the rules are run sequentially
16218         and take a long time.
16219
16220 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16221
16222         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16223         * modules/netinet_in: Likewise.
16224         * modules/sys_file: Likewise.
16225         * modules/sys_ioctl: Likewise.
16226         * modules/sys_select: Likewise.
16227         * modules/sys_socket: Likewise.
16228         * modules/sys_stat: Likewise.
16229         * modules/sys_time: Likewise.
16230         * modules/sys_times: Likewise.
16231         * modules/sys_utsname: Likewise.
16232         * modules/sys_wait: Likewise.
16233
16234 2009-09-01  Jim Meyering  <meyering@redhat.com>
16235
16236         fts: help ensure that return values are not ignored
16237         * lib/fts_.h (__GNUC_PREREQ): Define.
16238         (__attribute_warn_unused_result__): Define.
16239         (fts_children, fts_close, fts_open, fts_read): Declare with
16240         __attribute_warn_unused_result__.
16241
16242         fts: fts_close now fails also when closing a dir file descriptor fails
16243         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16244         and propagate to caller, along with errno.
16245
16246         announce-gen: correct formatting in --help output
16247         * build-aux/announce-gen (usage): Move the one-line description in
16248         --help output "up", to where it belongs, just after Usage:.
16249
16250 2009-08-31  Eric Blake  <ebb9@byu.net>
16251
16252         fchdir: port to mingw
16253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16254         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16255         opened, then use a substitute.
16256         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16257         replacement.
16258         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16259         (_gl_register_fd): No need to check stat if open already filters
16260         all directories.
16261         (fchdir): Fix error condition to match POSIX.
16262         * modules/fchdir (Depends-on): Add sys_stat.
16263         * doc/posix-functions/open.texi (open): Document the limitation.
16264         * modules/fchdir-tests: New file.
16265         * tests/test-fchdir.c: Likewise.
16266
16267         canonicalize: allow cross-testing from cygwin to mingw
16268         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16269         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16270         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16271         Likewise.
16272         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16273         target does not support symlinks.
16274         * tests/test-canonicalize-lgpl.sh: Likewise.
16275
16276         chown: avoid compilation warning on mingw
16277         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16278         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16279         mingw.
16280         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16281         * modules/chown (Depends-on): Add errno.
16282
16283 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16284
16285         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16286         command.
16287
16288 2009-08-31  Jim Meyering  <meyering@redhat.com>
16289
16290         canonicalize: remove useless initialization
16291         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16292         initialization of local, "end".
16293
16294 2009-08-30  Bruno Haible  <bruno@clisp.org>
16295
16296         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16297         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16298         ENOSYS.
16299
16300 2009-08-30  Bruno Haible  <bruno@clisp.org>
16301
16302         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16303         /usr/xpg4/bin/tr when it exists.
16304         * tests/test-pipe-filter-gi1.sh: Likewise.
16305
16306 2009-08-30  Bruno Haible  <bruno@clisp.org>
16307
16308         Work around deficient /usr/bin/id program on Solaris.
16309         * tests/test-file-has-acl.sh (ID): New variable.
16310         * tests/test-set-mode-acl.sh (ID): Likewise.
16311         * tests/test-copy-acl.sh (ID): Likewise.
16312         * tests/test-copy-file.sh (ID): Likewise.
16313
16314 2009-08-30  Bruno Haible  <bruno@clisp.org>
16315
16316         New module 'xstriconveh'.
16317         * lib/xstriconveh.h: New file.
16318         * lib/xstriconveh.c: New file.
16319         * modules/xstriconveh: New file.
16320
16321 2009-08-30  Bruno Haible  <bruno@clisp.org>
16322
16323         Make it easier to use mem_cd_iconveh.
16324         * lib/striconveh.h (iconveh_t): New type.
16325         (iconveh_open, iconveh_close): New declarations.
16326         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16327         with a single 'const iconveh_t *' argument.
16328         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16329         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16330         with a single 'const iconveh_t *' argument.
16331         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16332         * tests/test-striconveh.c (main): Update.
16333         * NEWS: Mention the change.
16334
16335 2009-08-30  Bruno Haible  <bruno@clisp.org>
16336
16337         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16338         problem.
16339
16340 2009-08-30  Bruno Haible  <bruno@clisp.org>
16341
16342         Work around iconv_open problem on Solaris.
16343         * lib/iconv_open-solaris.gperf: New file.
16344         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16346         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16347         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16348         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16349         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16350
16351 2009-08-29  Jim Meyering  <meyering@redhat.com>
16352
16353         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16354         * top/maint.mk (cvs-check): Remove target; it was just an alias
16355         to the better-named vc-diff-check.
16356         (maintainer-distcheck): Remove rule.  It was used only from
16357         the (alpha/beta/major) target, and all of its commands but one
16358         were coreutils-specific.
16359         (vc-dist): Remove rule.
16360         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16361         Run vc-diff-check, not vc-dist.
16362         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16363
16364 2009-08-27  Bruno Haible  <bruno@clisp.org>
16365
16366         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16367         of 0.
16368
16369 2009-08-27  Bruno Haible  <bruno@clisp.org>
16370
16371         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16372         compilers.
16373         * doc/func.texi: Document the SunPRO C bug.
16374
16375 2009-08-27  Bruno Haible  <bruno@clisp.org>
16376
16377         Fix link error on Solaris.
16378         * tests/test-parse-duration.c (xstrdup): Remove function.
16379
16380 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16381
16382         ignore-value: handle pointer types, too
16383         * lib/ignore-value.h (__attribute__): Remove definition.
16384         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16385         of a more concise and more-often effective "(void) i" statement.
16386         (ignore_ptr): New function to suppress warnings from functions that
16387         return pointers, and to make it explicit that one function doesn't
16388         handle all cases.
16389
16390 2009-08-25  Bruno Haible  <bruno@clisp.org>
16391
16392         dup2: work around a Linux bug.
16393         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16394         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16395         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16396         Reported by Simon Josefsson.
16397
16398 2009-08-25  Jim Meyering  <meyering@redhat.com>
16399
16400         libguestfs uses gnulib
16401         * users.txt: Add libguestfs.
16402
16403 2009-08-24  Eric Blake  <ebb9@byu.net>
16404
16405         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16406         * lib/pipe2.c (includes): Add binary-io.h.
16407         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16408
16409 2009-08-24  Bruno Haible  <bruno@clisp.org>
16410
16411         Tolerate declared but missing accept4 syscall.
16412         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16413         available.
16414         * lib/sys_socket.in.h (accept4): If the function is already present,
16415         override it.
16416         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16417         * modules/accept4 (Makefile.am): Compile accept4.c always.
16418         Reported by Paolo Bonzini and Eric Blake.
16419
16420 2009-08-23  Bruno Haible  <bruno@clisp.org>
16421
16422         New module 'accept4'.
16423         * lib/sys_socket.in.h (accept4): New declaration.
16424         * lib/accept4.c: New file.
16425         * m4/accept4.m4: New file.
16426         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16427         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16428         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16429         HAVE_ACCEPT4.
16430         * modules/accept4: New file.
16431         * doc/glibc-functions/accept4.texi: Mention the new module.
16432
16433 2009-08-24  Jim Meyering  <meyering@redhat.com>
16434
16435         progname: also set global program_invocation_name, when possible
16436         Before this change, a libtool-enabled program that calls glibc's
16437         error function would report the program name as
16438         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16439         * modules/progname (configure.ac): Check for a declaration of
16440         program_invocation_name.
16441         * lib/progname.c:  Include <errno.h>.
16442         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16443         Set program_invocation_name.
16444
16445 2009-08-23  Bruno Haible  <bruno@clisp.org>
16446
16447         * lib/dup3.c: Include <string.h>.
16448
16449 2009-08-23  Bruno Haible  <bruno@clisp.org>
16450
16451         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16452         * lib/pipe2.c (pipe2): Likewise.
16453         Suggested by Eric Blake.
16454
16455 2009-08-23  Bruno Haible  <bruno@clisp.org>
16456
16457         Tolerate declared but missing dup3 syscall.
16458         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16459         * lib/unistd.in.h (dup3): If the function is already present,
16460         override it.
16461         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16462         * modules/dup3 (Makefile.am): Compile dup3.c always.
16463         Reported by Paolo Bonzini.
16464
16465 2009-08-23  Bruno Haible  <bruno@clisp.org>
16466
16467         Tolerate declared but missing pipe2 syscall.
16468         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16469         available.
16470         * lib/unistd.in.h (pipe2): If the function is already present,
16471         override it.
16472         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16473         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16474         Reported by Paolo Bonzini.
16475
16476 2009-08-23  Bruno Haible  <bruno@clisp.org>
16477
16478         * lib/pipe2.c (pipe2): Move #ifs inside function.
16479
16480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16481
16482         quotearg: document limitations of quote_these_too
16483         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16484         those limitations are created.
16485         * lib/quotearg.h (set_char_quoting): Document that digits and
16486         letters that are special after backslash are not permitted.
16487         (quotearg_char): Cross-reference set_char_quoting documentation.
16488
16489 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16490
16491         quotearg: implement custom_quoting_style
16492         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16493         right_quote fields.
16494         (set_custom_quoting): New public function.
16495         (quotearg_buffer_restyled): Add left_quote and right_quote
16496         arguments, handle them very much like locale quoting, and update
16497         all uses.
16498         (quotearg_n_custom): New public function.
16499         (quotearg_n_custom_mem): New public function.
16500         (quotearg_custom): New public function.
16501         (quotearg_custom_mem): New public function.
16502         * lib/quotearg.h: Prototype and document new public functions.
16503         (enum quoting_style): For escape_quoting_style and
16504         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16505         ignored even though they're otherwise like c_quoting_style.
16506         Add custom_quoting_style member and document with comparison to
16507         clocale_quoting_style.
16508         * tests/test-quotearg.c (custom_quotes): New array.
16509         (custom_results): New array.
16510         (main): Extend to test custom quoting.
16511
16512 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16513
16514         quotearg: fix right quote escaping when it's in quote_these_too
16515         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16516         quote, be sure to prepend only one backslash.
16517         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16518         (main): Test it.
16519
16520 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16521
16522         quotearg-tests: test escaping of embedded locale quotes
16523         * tests/test-quotearg.c (struct result_strings): Add member for
16524         new input.
16525         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16526         (inputs): Add new input.
16527         (results_g): Add expected results.
16528         (flag_results): Likewise.
16529         (locale_results): Likewise.
16530         (compare_strings): Check those.
16531
16532 2009-08-23  Bruno Haible  <bruno@clisp.org>
16533
16534         Tests for module 'dup3'.
16535         * modules/dup3-tests: New file.
16536         * tests/test-dup3.c: New file.
16537
16538         New module 'dup3'.
16539         * lib/unistd.in.h (dup3): New declaration.
16540         * lib/dup3.c: New file.
16541         * m4/dup3.m4: New file.
16542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16543         HAVE_DUP3.
16544         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16545         * modules/dup3: New file.
16546         * doc/glibc-functions/dup3.texi: Mention the new module.
16547
16548 2009-08-23  Bruno Haible  <bruno@clisp.org>
16549
16550         Tweak the dup2 test.
16551         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16552         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16553         the test file is still empty. Fix argument order of lseek.
16554
16555 2009-08-23  Bruno Haible  <bruno@clisp.org>
16556
16557         Avoid test link errors when the modules getopt-gnu, gettext are used.
16558         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16560
16561 2009-08-23  Bruno Haible  <bruno@clisp.org>
16562
16563         Fix getdtablesize() on mingw.
16564         * lib/getdtablesize.c (getdtablesize): Implement differently.
16565         * lib/unistd.in.h (getdtablesize): Improve comment.
16566
16567 2009-08-23  Bruno Haible  <bruno@clisp.org>
16568
16569         New module 'mkostemp'.
16570         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16571         * lib/stdlib.in.h (mksotemp): New declaration.
16572         * lib/mkostemp.c: New file, from glibc with modifications.
16573         * lib/tempname.h (GT_FILE): Remove outdated comment.
16574         (gen_tempname): Add flags argument.
16575         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16576         (__GT_FILE): Map to 1.
16577         (small_open, large_open): Remove macros.
16578         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16579         * lib/mkstemp.c (mkstemp): Update.
16580         * lib/mkdtemp.c (mkdtemp): Likewise.
16581         * m4/mkostemp.m4: New file.
16582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16583         HAVE_MKOSTEMP.
16584         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16585         HAVE_MKOSTEMP.
16586         * modules/mkostemp: New file, based on modules/mkstemp.
16587         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16588         * NEWS: Mention the change.
16589
16590 2009-08-23  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16593         Reported by Eric Blake.
16594
16595 2009-08-23  Bruno Haible  <bruno@clisp.org>
16596
16597         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16598         Reported by Eric Blake.
16599
16600 2009-08-23  Bruno Haible  <bruno@clisp.org>
16601
16602         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16603         * modules/pipe2 (Depends-on): Likewise.
16604
16605 2009-08-23  Eric Blake  <ebb9@byu.net>
16606
16607         fcntl-h: add O_TTY_INIT support
16608         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16609         * tests/test-fcntl-h.c (o): Test it.
16610         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16611
16612         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16613         * modules/fcntl: Move <fcntl.h> header replacement...
16614         * modules/fcntl-h: ...to new name, so as not to collide with
16615         like-named function.
16616         * tests/test-fcntl.c: Rename...
16617         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16618         * modules/fcntl-tests: Rename...
16619         * modules/fcntl-h-tests: ...to this.  Update test file name.
16620         * modules/chdir-long (Depends-on): Update clients.
16621         * modules/chdir-safer (Depends-on): Likewise.
16622         * modules/fcntl-safer (Depends-on): Likewise.
16623         * modules/fts (Depends-on): Likewise.
16624         * modules/mkancesdirs (Depends-on): Likewise.
16625         * modules/mkdir-p (Depends-on): Likewise.
16626         * modules/open (Depends-on): Likewise.
16627         * modules/savewd (Depends-on): Likewise.
16628         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16629         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16630
16631 2009-08-22  Bruno Haible  <bruno@clisp.org>
16632
16633         * modules/binary-io (License): Relicense under LGPL.
16634         * modules/pipe2 (License): Likewise.
16635
16636 2009-08-22  Bruno Haible  <bruno@clisp.org>
16637
16638         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16639         return value.
16640         * lib/pipe-filter-gi.c (filter_init): Likewise.
16641         Reported by Eric Blake.
16642
16643 2009-08-22  Bruno Haible  <bruno@clisp.org>
16644
16645         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16646         * modules/pipe (Depends-on): Add pipe2.
16647
16648 2009-08-22  Bruno Haible  <bruno@clisp.org>
16649
16650         Tests for module 'pipe2'.
16651         * modules/pipe2-tests: New file.
16652         * tests/test-pipe2.c: New file.
16653
16654         New module 'pipe2'.
16655         * lib/unistd.in.h (pipe2): New declaration.
16656         * lib/pipe2.c: New file.
16657         * m4/pipe2.m4: New file.
16658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16659         HAVE_PIPE2.
16660         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16661         * modules/pipe2: New file.
16662         * doc/glibc-functions/pipe2.texi: Mention the new module.
16663
16664 2009-08-22  Bruno Haible  <bruno@clisp.org>
16665
16666         Reference some new glibc functions.
16667         * doc/glibc-functions/accept4.texi: New file.
16668         * doc/glibc-functions/dup3.texi: New file.
16669         * doc/glibc-functions/mkostemp.texi: New file.
16670         * doc/glibc-functions/pipe2.texi: New file.
16671         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16672         (Glibc sys/socket.h): Refer to accept4.
16673         (Glibc unistd.h): Refer to dup3, pipe2.
16674         Reported by Eric Blake.
16675
16676 2009-08-22  Jim Meyering  <meyering@redhat.com>
16677             Bruno Haible  <bruno@clisp.org>
16678
16679         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16680         This makes it so packages using automake-1.11's silent-rules option
16681         can print e.g., a single "GEN    configmake.h" line, rather than
16682         the 30+ statements that perform the job.  If you want to see the
16683         actual commands, you can still run "make V=1".
16684         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16685         so that make output is abbreviated when those variables are defined
16686         appropriately.
16687         * modules/argz: Likewise.
16688         * modules/arpa_inet: Likewise.
16689         * modules/byteswap: Likewise.
16690         * modules/configmake: Likewise.
16691         * modules/dirent: Likewise.
16692         * modules/errno: Likewise.
16693         * modules/fcntl: Likewise.
16694         * modules/float: Likewise.
16695         * modules/fnmatch: Likewise.
16696         * modules/getopt-posix: Likewise.
16697         * modules/glob: Likewise.
16698         * modules/iconv_open: Likewise.
16699         * modules/inttypes: Likewise.
16700         * modules/localcharset: Likewise.
16701         * modules/locale: Likewise.
16702         * modules/math: Likewise.
16703         * modules/netdb: Likewise.
16704         * modules/netinet_in: Likewise.
16705         * modules/poll: Likewise.
16706         * modules/posix_spawnp-tests: Likewise.
16707         * modules/sched: Likewise.
16708         * modules/search: Likewise.
16709         * modules/selinux-h: Likewise.
16710         * modules/signal: Likewise.
16711         * modules/spawn: Likewise.
16712         * modules/stdarg: Likewise.
16713         * modules/stdbool: Likewise.
16714         * modules/stddef: Likewise.
16715         * modules/stdint: Likewise.
16716         * modules/stdio: Likewise.
16717         * modules/stdlib: Likewise.
16718         * modules/string: Likewise.
16719         * modules/strings: Likewise.
16720         * modules/sys_file: Likewise.
16721         * modules/sys_ioctl: Likewise.
16722         * modules/sys_select: Likewise.
16723         * modules/sys_socket: Likewise.
16724         * modules/sys_stat: Likewise.
16725         * modules/sys_time: Likewise.
16726         * modules/sys_times: Likewise.
16727         * modules/sys_utsname: Likewise.
16728         * modules/sys_wait: Likewise.
16729         * modules/sysexits: Likewise.
16730         * modules/time: Likewise.
16731         * modules/unistd: Likewise.
16732         * modules/wchar: Likewise.
16733         * modules/wctype: Likewise.
16734
16735 2009-08-22  Jim Meyering  <meyering@redhat.com>
16736
16737         announce-gen: detect write failure
16738         * build-aux/announce-gen: Add Coda at end.
16739         Remove equivalent-but-more-verbose block at top.
16740
16741 2009-08-19  Akim Demaille  <demaille@gostai.com>
16742
16743         bootstrap: --help to stdout.
16744         * bootstrap (usage): Don't send --help to stderr.
16745         Use a here doc instead of a long string.
16746
16747 2009-08-21  Eric Blake  <ebb9@byu.net>
16748
16749         test-popen-safer: split from test-popen
16750         * tests/test-popen.c (main): Move...
16751         * tests/test-popen.h: ...into new file.
16752         * tests/test-popen-safer2.c: New file.
16753         * modules/popen-tests (Files): Add test-popen.h.
16754         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16755         Suggested by Bruno Haible.
16756
16757         test-fcntl-safer: split from test-open
16758         * tests/test-open.c (main): Move...
16759         * tests/test-open.h: ...into new file.
16760         * tests/test-fcntl-safer.c: New file.
16761         * modules/open-tests (Files): Add test-open.h.
16762         * modules/fcntl-safer-tests: New file.
16763         Suggested by Bruno Haible.
16764
16765         test-fopen-safer: split from test-fopen
16766         * tests/test-fopen.c (main): Move...
16767         * tests/test-fopen.h: ...into new file.
16768         * tests/test-fopen-safer.c: New file.
16769         * modules/fopen-tests (Files): Add test-fopen.h.
16770         * modules/fopen-safer-tests: New file.
16771         Suggested by Bruno Haible.
16772
16773 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16774
16775         popen-safer: test O_CLOEXEC at run-time.
16776         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16777
16778 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16779
16780         fcntl: move more flags to the header
16781         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16782         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16783         * lib/fcntl.in.h: Do both things here.
16784
16785 2009-08-21  Jim Meyering  <meyering@redhat.com>
16786
16787         consistently remove $@-t before redirecting to it
16788         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16789         * modules/alloca-opt: Likewise.
16790         * modules/byteswap: Likewise.
16791         * modules/fnmatch: Likewise.
16792         * modules/getopt-posix: Likewise.
16793         * modules/glob: Likewise.
16794         * modules/poll: Likewise.
16795         * modules/posix_spawnp-tests: Likewise.
16796         * modules/sys_socket: Likewise.
16797         * modules/sysexits: Likewise.
16798
16799 2009-08-21  Eric Blake  <ebb9@byu.net>
16800
16801         popen: simplify access to original popen
16802         * lib/popen.c (rpl_popen): No need to worry about popen being a
16803         macro.
16804         Reported by Bruno Haible.
16805
16806 2009-08-20  Eric Blake  <ebb9@byu.net>
16807
16808         build: avoid some compiler warnings
16809         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16810         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16811         type.
16812         (new_exclude_segment, excluded_file_pattern_p)
16813         (excluded_file_name_p): Reduce scope.
16814         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16815         old-style declaration.
16816
16817 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16818
16819         * tests/test-exclude1.sh: Handle Windows EOL.
16820         * tests/test-exclude2.sh: Likewise.
16821         * tests/test-exclude3.sh: Likewise.
16822         * tests/test-exclude4.sh: Likewise.
16823         * tests/test-exclude5.sh: Likewise.
16824         * tests/test-exclude6.sh: Likewise.
16825         * tests/test-exclude7.sh: Likewise.
16826
16827 2009-08-19  Akim Demaille  <demaille@gostai.com>
16828
16829         bootstrap: find sha1sum when named gsha1sum.
16830         * bootstrap (find_tool): New.
16831         ($SHA1SUM): New.
16832         Use it.
16833
16834 2009-08-20  Jim Meyering  <meyering@redhat.com>
16835
16836         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16837         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16838         expression that converts "." in a file name to "\." in the resulting
16839         regexp.  Start with a dummy statement, so that prior shell variable
16840         definitions are expanded portably.  Reported by Simon Josefsson.
16841
16842 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16843
16844         Fix polling for writeability of a screen buffer.
16845         * lib/poll.c: Distinguish input and screen buffers for the
16846         Win32 implementation.
16847         * lib/select.c: Likewise.
16848
16849 2009-08-19  Eric Blake  <ebb9@byu.net>
16850
16851         popen-safer: prevent popen from clobbering std descriptors
16852         * modules/popen-safer: New file.
16853         * lib/popen-safer.c: Likewise.
16854         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16855         * lib/stdio--.h (popen): Provide override.
16856         * lib/stdio-safer.h (popen_safer): Provide declaration.
16857         * tests/test-popen.c (includes): Partially test this.
16858         * modules/popen-safer-tests: New file, for more tests.
16859         * tests/test-popen-safer.c: Likewise.
16860         * MODULES.html.sh (file stream based Input/Output): Mention it.
16861
16862         tests: test some of the *-safer modules
16863         * modules/fopen-safer (Depends-on): Add fopen.
16864         * modules/fcntl-safer (Depends-on): Add fcntl.
16865         * modules/stdlib-safer (Depends-on): Add stdlib.
16866         (configure.ac): Set indicator.
16867         * modules/unistd-safer (configure.ac): Likewise.
16868         * modules/tmpfile-safer (configure.ac): Likewise.
16869         (Depends-on): Add tmpfile.
16870         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16871         active.
16872         * tests/test-fopen.c (includes): Test safer versions when they are
16873         in use.
16874         * tests/test-open.c (includes): Likewise.
16875
16876         popen: fix cygwin 1.5 bug when stdin closed
16877         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16878         * modules/popen: New file.
16879         * modules/popen-tests: Likewise.
16880         * tests/test-popen.c: Likewise.
16881         * m4/popen.m4: Likewise.
16882         * lib/popen.c: Likewise.
16883         * lib/stdio.in.h (popen): New declaration.
16884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16885         * modules/stdio (Makefile.am): Likewise.
16886         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16887
16888 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16889
16890         maint.mk: give full control over update-copyright exclusions
16891         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16892         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16893         (update-copyright): Don't force inclusion of top-level
16894         ChangeLog.  Don't force exclusion of all COPYING files, but make
16895         them the default exclusion instead.
16896
16897 2009-08-16  Bruno Haible  <bruno@clisp.org>
16898
16899         Fix test failures on Solaris 10.
16900         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16901         tests when Solaris iconv() is used.
16902         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16903         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16904         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16905         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16906         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16907
16908 2009-08-16  Bruno Haible  <bruno@clisp.org>
16909
16910         Fix test failures on Solaris 10.
16911         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16912         'tr' program and pass it as first argument.
16913         * tests/test-pipe-filter-gi1.sh: Likewise.
16914         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16915         program as first argument.
16916         * tests/test-pipe-filter-gi1.c (main): Likewise.
16917
16918 2009-08-16  Eric Blake  <ebb9@byu.net>
16919
16920         fpurge: fix previous commits
16921         * modules/fpurge (Makefile.am): Make replacement conditional,
16922         partially reverting 2007-04-29 change; missed in previous
16923         attempt.
16924         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16925         is missing.
16926
16927 2009-08-16  Bruno Haible  <bruno@clisp.org>
16928
16929         Clarify fpurge's effect on the file position.
16930         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16931         * tests/test-fpurge.c (main): Make a second pass for checking the file
16932         position.
16933
16934 2009-08-16  Bruno Haible  <bruno@clisp.org>
16935
16936         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16937         declaration of fpurge is missing.
16938         * tests/test-fpurge.c (main): Check that the file has not more contents
16939         than expected. Close the file before removing it.
16940
16941 2009-08-15  Eric Blake  <ebb9@byu.net>
16942
16943         fpurge: don't wrap working cygwin implementation
16944         * lib/fpurge.c (fpurge): Fix comment typo.
16945         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16946         1.7 to avoid replacement.
16947         * tests/test-fpurge.c (main): Enhance test.
16948
16949 2009-08-15  Eric Blake  <ebb9@byu.net>
16950         and Jim Meyering  <meyering@redhat.com>
16951
16952         test-update-copyright: skip if perl is insufficient
16953         * tests/test-update-copyright.sh: Failure to run maintainer tool
16954         should not cause testsuite failure on cygwin 1.5.
16955
16956 2009-08-14  Eric Blake  <ebb9@byu.net>
16957
16958         doc: mention more functions added in cygwin 1.7.0
16959         * doc/posix-headers/limits.texi (limits.h): Update for recent
16960         cygwin additions.
16961         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16962         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16963         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16964         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16965         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16966
16967 2009-08-14  Eric Blake  <ebb9@byu.net>
16968
16969         maint.mk: simplify update-copyright rule
16970         * top/maint.mk (update-copyright-local): Delete, and document how
16971         to do it in cfg.mk instead.
16972         (update-copyright-exclude-regexp): Delete, and document how to do
16973         it in .x-update-copyright instead.
16974         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16975         exclude ChangeLog.
16976
16977 2009-08-14  Bruno Haible  <bruno@clisp.org>
16978
16979         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16980
16981 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16982
16983         maint.mk: support update-copyright-env
16984         * top/maint.mk (update-copyright-env): Define place-holder.
16985         (update-copyright): Expand $(update-copyright-env) before
16986         invoking update-copyright.
16987
16988 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16989
16990         update-copyright: implement forced reformatting
16991         * build-aux/update-copyright: Implement and document
16992         UPDATE_COPYRIGHT_FORCE.
16993         * tests/test-update-copyright.sh: Test it.
16994
16995 2009-08-14  Eric Blake  <ebb9@byu.net>
16996         and Bruno Haible  <bruno@clisp.org>
16997
16998         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16999         * tests/test-locale.c: Revert previous patch related to NULL.
17000         * tests/test-stdio.c: Likewise.
17001         * tests/test-stdlib.c: Likewise.
17002         * tests/test-string.c: Likewise.
17003         * tests/test-unistd.c: Likewise.
17004         * modules/time-tests (Depends-on): Add verify.
17005         * modules/wchar-tests (Depends-on): Likewise.
17006         * tests/test-time.c: Test for NULL compliance.
17007         * tests/test-wchar.c: Likewise.
17008         * modules/locale (Depends-on): Add stddef.
17009         * modules/stdio (Depends-on): Likewise.
17010         * modules/stdlib (Depends-on): Likewise.
17011         * modules/string (Depends-on): Likewise.
17012         * modules/time (Depends-on): Likewise.
17013         * modules/unistd (Depends-on): Likewise.
17014         * modules/wchar (Depends-on): Likewise.
17015         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17016         * lib/stdlib.in.h (includes): Likewise.
17017         * lib/string.in.h (includes): Likewise.
17018         * lib/time.in.h (includes): Likewise.
17019         * lib/unistd.in.h (includes): Likewise.
17020         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17021         replaced.
17022         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17023         * m4/stddef_h.m4: New file.
17024         * modules/stddef: Likewise.
17025         * lib/stddef.in.h: Likewise.
17026         * modules/stddef-tests: Likewise.
17027         * tests/test-stddef.c: Likewise.
17028         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17029         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17030         * doc/posix-headers/locale.texi (locale.h): Likewise.
17031         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17032         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17033         * doc/posix-headers/string.texi (string.h): Likewise.
17034         * doc/posix-headers/time.texi (time.h): Likewise.
17035         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17036         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17037
17038 2009-08-14  Eric Blake  <ebb9@byu.net>
17039
17040         doc: improve git diff of texinfo files
17041         * .gitattributes: Add rule for *.texi files, with hint on how to
17042         use it.
17043         Copied from m4, and based on a report by Bruno Haible.
17044
17045 2009-08-14  Bruno Haible  <bruno@clisp.org>
17046
17047         Disable multithread support by default on Cygwin 1.5.x for real.
17048         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17049
17050 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17051
17052         update-copyright: much ado about intervals
17053         * build-aux/update-copyright: Implement and document
17054         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17055         of copyright year intervals.
17056         Also, document UPDATE_COPYRIGHT_YEAR.
17057         * tests/test-update-copyright.sh: Test it.
17058
17059         update-copyright: convert 2-digit to 4-digit years
17060         * build-aux/update-copyright: Implement and document.
17061         * tests/test-update-copyright.sh: Update.
17062
17063 2009-08-14  Jim Meyering  <meyering@redhat.com>
17064
17065         test-exclude: avoid coreutils "make check" failure
17066         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17067         just as in test-argmatch.c.
17068
17069 2009-08-13  Eric Blake  <ebb9@byu.net>
17070
17071         test-dup2: fix bad assumption
17072         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17073         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17074
17075         test-version-etc: fix CRLF portability issue
17076         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17077         recognize \r.
17078         * tests/test-argp-version-etc-1.sh: Likewise.
17079
17080         getopt: update client modules
17081         * modules/argp (Depends-on): Use getopt-gnu.
17082         * modules/git-merge-changelog (Depends-on): Likewise.
17083         * modules/long-options (Depends-on): Likewise.
17084         * modules/xstrtol (Depends-on): Likewise.
17085
17086 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17087
17088         * tests/test-version-etc.sh: Don't fail on different
17089         project/version.  Don't fail on CRLF differences.  Rewrite to use
17090         multiple -e instead of multiple sed forks, suggested by Eric Blake
17091         <ebb9@byu.net>.
17092         * tests/test-argp-version-etc-1.sh: Likewise.
17093
17094 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17095
17096         * tests/test-version-etc.sh: Don't fail on different
17097         project/version.
17098
17099 2009-08-12  Bruno Haible  <bruno@clisp.org>
17100
17101         Tests for modules 'getopt-posix', 'getopt-gnu'.
17102         * modules/getopt-posix-tests: New file.
17103         * tests/test-getopt.c: New file.
17104         * tests/test-getopt.h: New file.
17105         * tests/test-getopt_long.h: New file.
17106
17107         New modules 'getopt-posix', 'getopt-gnu'.
17108         * modules/getopt-gnu: New file, renamed from modules/getopt.
17109         * modules/getopt-posix: New file.
17110         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17111         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17112         (gl_GETOPT): Remove macro.
17113         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17114         Disable the test against BSD systems that declare optreset. Test
17115         against mingw bug. Test against lack of support of optional arguments
17116         on many platforms.
17117         * doc/glibc-headers/getopt.texi: Update module name and list of
17118         relevant platforms.
17119         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17120         'getopt-gnu' and more portability problems.
17121         * NEWS: Mention the changes.
17122
17123 2009-08-12  Bruno Haible  <bruno@clisp.org>
17124
17125         Ensure that optarg etc. get declared by <unistd.h>.
17126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17127         AC_USE_SYSTEM_EXTENSIONS.
17128         * modules/getopt (Depends-on): Add 'extensions'.
17129
17130 2009-08-12  Bruno Haible  <bruno@clisp.org>
17131
17132         Avoid test link errors.
17133         * modules/pipe-filter-ii-tests (Makefile.am): Define
17134         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17135         * modules/pipe-filter-gi-tests (Makefile.am): Define
17136         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17138
17139 2009-08-12  Bruno Haible  <bruno@clisp.org>
17140
17141         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17142         gl_GETOPT_SUBSTITUTE before.
17143         (gl_GETOPT): Use it.
17144         * m4/argp.m4 (gl_ARGP): Update.
17145         Reported by Sergey Poznyakoff.
17146
17147         * m4/getopt.m4: Reorder macros.
17148         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17149         (gl_GETOPT_SUBSTITUTE): Remove macro.
17150
17151 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17152
17153         Minor improvement in gitlog-to-changelog
17154
17155         * build-aux/gitlog-to-changelog: New option `--format' makes
17156         output format string configurable.
17157
17158 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17159
17160         Optimize exclude: use hash tables for non-wildcard patterns.
17161
17162         * lib/exclude.c: Include hash.h and mbuiter.h
17163         (struct exclude_pattern, exclude_segment): New data types.
17164         (struct exclude): Rewrite.
17165         (fnmatch_pattern_has_wildcards): New function.
17166         (new_exclude_segment, free_exclude_segment): New functions.
17167         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17168         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17169         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17170         * modules/exclude: Depend on hash and mbuiter.
17171
17172         * modules/exclude-tests: New file.
17173         * tests/test-exclude.c: New file.
17174         * tests/test-exclude1.sh: New file.
17175         * tests/test-exclude2.sh: New file.
17176         * tests/test-exclude3.sh: New file.
17177         * tests/test-exclude4.sh: New file.
17178         * tests/test-exclude5.sh: New file.
17179         * tests/test-exclude6.sh: New file.
17180         * tests/test-exclude7.sh: New file.
17181
17182 2009-08-12  Bruno Haible  <bruno@clisp.org>
17183
17184         Ensure that getopt() gets declared by <unistd.h>.
17185         * lib/unistd.in.h: Conditionally include getopt.h.
17186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17187         Set GNULIB_UNISTD_H_GETOPT.
17188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17189         GNULIB_UNISTD_H_GETOPT.
17190         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17191
17192 2009-08-12  Bruno Haible  <bruno@clisp.org>
17193
17194         Clarify logic.
17195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17196         gl_replace_getopt instead of GETOPT_H.
17197
17198 2009-08-12  Bruno Haible  <bruno@clisp.org>
17199
17200         * m4/getopt.m4: Add comments.
17201
17202 2009-08-12  Bruno Haible  <bruno@clisp.org>
17203
17204         Disable multithread support by default on Cygwin 1.5.x.
17205         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17206         set gl_use_threads=no if not specified otherwise.
17207
17208 2009-08-11  Bruno Haible  <bruno@clisp.org>
17209
17210         Avoid compilation error on NetBSD 5.0.
17211         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17212         * tests/test-stdio.c: Likewise.
17213         * tests/test-stdlib.c: Likewise.
17214         * tests/test-string.c: Likewise.
17215         * tests/test-unistd.c: Likewise.
17216         Reported by Greg Troxel <gdt@ir.bbn.com>
17217         at <https://savannah.gnu.org/support/?106973>.
17218
17219 2009-08-11  Bruno Haible  <bruno@clisp.org>
17220
17221         * modules/dup2-tests (Depends-on): Remove close.
17222
17223         Undo 2009-07-19 commit.
17224         * modules/acl-tests (Depends-on): Remove close.
17225         * modules/binary-io-tests (Depends-on): Likewise.
17226         * modules/closein-tests (Depends-on): Likewise.
17227         * modules/flock-tests (Depends-on): Likewise.
17228         * modules/fsync-tests (Depends-on): Likewise.
17229         * modules/lseek-tests (Depends-on): Likewise.
17230         * modules/pipe-tests (Depends-on): Likewise.
17231         * modules/posix_spawn-tests (Depends-on): Likewise.
17232         * modules/posix_spawnp-tests (Depends-on): Likewise.
17233         * modules/stat-time-tests (Depends-on): Likewise.
17234         * modules/yesno-tests (Depends-on): Likewise.
17235
17236 2009-08-10  Bruno Haible  <bruno@clisp.org>
17237
17238         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17239
17240 2009-08-10  Bruno Haible  <bruno@clisp.org>
17241
17242         Fix a gcc warning.
17243         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17244
17245 2009-08-10  Bruno Haible  <bruno@clisp.org>
17246
17247         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17248         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17249         not only the first time.
17250         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17251         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17252         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17253         is 1, not only the the first time.
17254
17255 2009-08-10  Bruno Haible  <bruno@clisp.org>
17256
17257         Make it possible to use module 'gethostname' without module 'close'.
17258         * lib/unistd.in.h (close): Evoke a link error only if
17259         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17261         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17262         * modules/unistd (Makefile.am): Substitute
17263         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17264         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17265         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17267         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17268         * modules/sys_ioctl (Makefile.am): Substitute
17269         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17270         * modules/socket (configure.ac): On native Windows, set
17271         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17272         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17273         Reported by Sam Steingold <sds@gnu.org>.
17274
17275 2009-08-10  Bruno Haible  <bruno@clisp.org>
17276
17277         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17278         * modules/ioctl (configure.ac): Likewise.
17279
17280 2009-08-10  Bruno Haible  <bruno@clisp.org>
17281
17282         Avoid collision between gnulib wrapper and libintl wrapper.
17283         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17284         already defined in intl/printf.c.
17285         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17286         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17287
17288 2009-08-09  Bruno Haible  <bruno@clisp.org>
17289
17290         Make <sys/select.h> really self-contained, also on Solaris 10.
17291         * lib/sys_select.in.h: Include <string.h>.
17292         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17293         Solaris 10 problem.
17294         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17295         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17296         Reported by Jim Meyering.
17297
17298 2009-08-09  Bruno Haible  <bruno@clisp.org>
17299
17300         Avoid warnings from 'aclocal' that are due to a use of macro name
17301         AM_XGETTEXT_OPTION that is not defined in automake.
17302         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17303         automake.
17304         * modules/error (configure.ac): Likewise.
17305         * modules/propername (configure.ac): Likewise.
17306         * modules/vasprintf (configure.ac): Likewise.
17307         * modules/verror (configure.ac): Likewise.
17308         * modules/xprintf (configure.ac): Likewise.
17309         * modules/xvasprintf (configure.ac): Likewise.
17310
17311 2009-08-08  Bruno Haible  <bruno@clisp.org>
17312
17313         Avoid compilation error in C++ mode.
17314         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17315         Reported by Sam Steingold <sds@gnu.org>.
17316
17317 2009-08-08  Bruno Haible  <bruno@clisp.org>
17318
17319         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17320         for the various Unix platforms.
17321         * doc/posix-headers/limits.texi: Update platforms list regarding
17322         HOST_NAME_MAX.
17323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17324
17325 2009-08-07  Jim Meyering  <meyering@redhat.com>
17326
17327         selinux-at: fix typo in a comment
17328         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17329         Spotted by Paolo Bonzini.
17330
17331         selinux-at: remove redundant m4 code, add documentation
17332         * modules/selinux-at (configure.ac): Remove redundant code.
17333         LIB_SELINUX is already set via the dependent module, selinux-h.
17334         (Include): Add quotes around selinux-at.h.
17335         * lib/selinux-at.h: Add documentation.
17336         Reported by Bruno Haible in
17337         http://marc.info/?l=gnulib-bug&m=124958988300749
17338
17339 2009-08-07  Bruno Haible  <bruno@clisp.org>
17340
17341         Avoid link error on MacOS X 10.3 and 10.4.
17342         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17343         on non-ELF systems.
17344         * lib/argp-pv.c (argp_program_version): Likewise.
17345         Reported by Simon Josefsson.
17346
17347 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17348
17349         * tests/test-version-etc.sh: Use $EXEEXT.
17350
17351 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17352
17353         update-copyright: update documentation to point to maint.mk
17354         * build-aux/update-copyright: Here.
17355
17356 2009-08-06  Jim Meyering  <meyering@redhat.com>
17357
17358         maint.mk: support update-copyright-local
17359         * top/maint.mk (update-copyright-local): Define place-holder.
17360         (update-copyright): Depend on $(update-copyright-local).
17361
17362 2009-08-06  Jim Meyering  <meyering@redhat.com>
17363
17364         selinux-at: new module
17365         Initially written for coreutils, this module will soon be
17366         used by findutils, too.
17367         * MODULES.html.sh [Misc]: Add selinux-at.
17368         * lib/selinux-at.h: New file, from coreutils.
17369         * lib/selinux-at.c: Likewise.
17370         * modules/selinux-at: Likewise.
17371         (License): Change from LGPL to GPL, since it depends
17372         on the GPL'd openat module.
17373
17374         doc: update README
17375         * README: Remove references to cogito.
17376         Remove cvs-repo-updating instructions from 2007.
17377         Don't imply that CVS is better if you have limited disk space.
17378
17379 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17380
17381         update-copyright: support C-style comments
17382         * build-aux/update-copyright: Implement and document.
17383         * tests/test-update-copyright.sh: Test.
17384
17385 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17386
17387         update-copyright: support omitted "(C)"
17388         * build-aux/update-copyright: Implement and document.  Also,
17389         allow variable whitespace before "(C)".
17390         * tests/test-update-copyright.sh: Test.
17391
17392 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17393
17394         update-copyright: don't trip on non-FSF copyright statements
17395         * build-aux/update-copyright: Fix so that the first correctly
17396         formatted FSF copyright statement is recognized no matter what
17397         appears before it.  Update documentation.
17398         * tests/test-update-copyright.sh: Test that.
17399
17400 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17401
17402         update-copyright: clean up code a little
17403         * build-aux/update-copyright: Append "_re" to the name of any
17404         variable holding a regular expression.
17405         Replace "old" and "new" with "stmt" in variable names.
17406         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17407         handled correctly.
17408         Format code more consistently.
17409
17410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17411
17412         update-copyright-tests: improve portability
17413         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17414         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17415
17416 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17417
17418         update-copyright: support @copyright{} and &copy;
17419         * build-aux/update-copyright: Implement and document.
17420         * tests/test-update-copyright.sh: Test.
17421
17422 2009-08-04  Jim Meyering  <meyering@redhat.com>
17423
17424         update-copyright-tests: correctly test EOL=\r\n handling
17425         * tests/test-update-copyright.sh: Put \r at the end of some lines
17426         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17427
17428         maint.mk: make update-copyright exclusion list more configurable
17429         * top/maint.mk (update-copyright): Default to excluding COPYING,
17430         but allow an override, in case someone does want to update that file.
17431
17432         maint.mk: don't update copyright date in COPYING
17433         * top/maint.mk (update-copyright): Exclude COPYING.
17434
17435         maint.mk: add a copyright-updating rule
17436         * top/maint.mk (update-copyright): New rule.
17437         Derived from coreutils/Makefile.am.
17438
17439         update-copyright: rename some variables
17440         * build-aux/update-copyright: Rename a few variables for clarity.
17441         Tweak syntax.  List Joel E. Denny as coauthor.
17442
17443 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17444
17445         update-copyright: fix bug for 2-digit last year and add tests
17446         * build-aux/update-copyright: Fix bug.
17447         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17448         specified.
17449         * modules/update-copyright-tests: New
17450         * tests/test-update-copyright.sh: New.
17451
17452 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17453
17454         update-copyright: handle leading tabs in line prefix
17455         * build-aux/update-copyright: Count leading tabs as 8 spaces
17456         when computing margin.  This helps with the formatting of
17457         ChangeLogs, for example.
17458         Fix documentation a little.
17459
17460 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17461
17462         update-copyright: support EOL=\r\n
17463         * build-aux/update-copyright: Implement that.
17464
17465 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17466
17467         update-copyright: automatically format copyright statements
17468         * build-aux/update-copyright: Implement that.
17469         Also, be a little more predictable and safer by always failing
17470         when the full copyright format is not perfectly recognized as an
17471         unbroken whole.  Discussed at
17472         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17473         Rewrite documentation.
17474
17475 2009-08-03  Bruno Haible  <bruno@clisp.org>
17476
17477         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17478
17479 2009-08-02  Bruno Haible  <bruno@clisp.org>
17480
17481         Tests for module 'uname'.
17482         * modules/uname-tests: New file.
17483         * tests/test-uname.c: New file.
17484
17485         New module 'uname'.
17486         * lib/uname.c: New file.
17487         * m4/uname.m4: New file.
17488         * modules/uname: New file.
17489         * doc/posix-functions/uname.texi: Mention the new module.
17490
17491 2009-08-02  Bruno Haible  <bruno@clisp.org>
17492
17493         Tests for module 'sys_utsname'.
17494         * modules/sys_utsname-tests: New file.
17495         * tests/test-sys_utsname.c: New file.
17496
17497         New module 'sys_utsname'.
17498         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17499         * m4/sys_utsname_h.m4: New file.
17500         * modules/sys_utsname: New file.
17501         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17502
17503 2009-08-02  Bruno Haible  <bruno@clisp.org>
17504
17505         Implicitly initialize the sockets library.
17506         * lib/gethostname.c: Include sockets.h.
17507         (rpl_gethostname): Invoke gl_sockets_startup.
17508         * lib/socket.c: Include sockets.h.
17509         (rpl_socket): Invoke gl_sockets_startup.
17510         * modules/gethostname (Depends-on): Add sockets.
17511         * modules/socket (Depends-on): Likewise.
17512         * tests/test-poll.c: Don't include sockets.h.
17513         (main): Don't invoke gl_sockets_startup.
17514         * tests/test-select.c: Don't include sockets.h.
17515         (main): Don't invoke gl_sockets_startup.
17516
17517 2009-08-02  Bruno Haible  <bruno@clisp.org>
17518
17519         Allow multiple calls to gl_sockets_startup.
17520         * lib/sockets.c (initialized_sockets_version): New variable.
17521         (gl_sockets_startup): Do nothing if already called for this or a higher
17522         version.
17523         (gl_sockets_cleanup): Reset initialized_sockets_version.
17524
17525 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17526
17527         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17528         different project/version.
17529
17530 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17531             Bruno Haible  <bruno@clisp.org>
17532
17533         Tests for module 'pipe-filter-gi'.
17534         * modules/pipe-filter-gi-tests: New file.
17535         * tests/test-pipe-filter-gi1.sh: New file.
17536         * tests/test-pipe-filter-gi1.c: New file.
17537         * tests/test-pipe-filter-gi2.sh: New file.
17538         * tests/test-pipe-filter-gi2-main.c: New file.
17539         * tests/test-pipe-filter-gi2-child.c: New file.
17540
17541         New module 'pipe-filter-gi'.
17542         * lib/pipe-filter-gi.c: New file.
17543         * modules/pipe-filter-gi: New file.
17544
17545 2009-08-02  Bruno Haible  <bruno@clisp.org>
17546             Paolo Bonzini  <bonzini@gnu.org>
17547
17548         Tests for module 'pipe-filter-ii'.
17549         * modules/pipe-filter-ii-tests: New file.
17550         * tests/test-pipe-filter-ii1.sh: New file.
17551         * tests/test-pipe-filter-ii1.c: New file.
17552         * tests/test-pipe-filter-ii2.sh: New file.
17553         * tests/test-pipe-filter-ii2-main.c: New file.
17554         * tests/test-pipe-filter-ii2-child.c: New file.
17555
17556         New module 'pipe-filter-ii'.
17557         * lib/pipe-filter.h: New file.
17558         * lib/pipe-filter-ii.c: New file.
17559         * lib/pipe-filter-aux.h: New file.
17560         * modules/pipe-filter-ii: New file.
17561
17562 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17563
17564         * lib/gc-libgcrypt.c: Change copyright to FSF.
17565         * lib/gc-gnulib.c: Likewise.
17566
17567 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17568
17569         * lib/gethostname.c: Include limits.h.
17570
17571 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17572             Bruno Haible  <bruno@clisp.org>
17573
17574         Ensure HOST_NAME_MAX as part of the gethostname module.
17575         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17576         define also HOST_NAME_MAX.
17577         * tests/test-gethostname.c: Include <limits.h>.
17578         (main): Check also HOST_NAME_MAX.
17579         * doc/posix-headers/limits.texi: Document the mingw problem.
17580
17581 2009-08-02  Bruno Haible  <bruno@clisp.org>
17582
17583         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17584         Add comments.
17585
17586 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17587
17588         * lib/gethostname.c: Add Windows wrapper.
17589         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17590         * modules/gethostname: Depend on sys_socket & errno, for also
17591         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17592         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17593
17594 2009-07-31  Jim Meyering  <meyering@redhat.com>
17595
17596         getloadavg: fix symbol name in comment
17597         * lib/getloadavg.c: Correct a typo I introduced when adding
17598         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17599         Matt Kraai spotted the problem.
17600
17601 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17602
17603         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17604         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17605         code also if ! defined N_NAME_POINTER.
17606         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17607         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17608         but the n_name member is a 12-byte array.
17609
17610 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17611
17612         update-copyright: generalize comment handling
17613         * build-aux/update-copyright: Handle copyright statements
17614         within more comment styles.
17615         Document usage.
17616         Report any file with an external copyright holder or parse failure.
17617
17618 2009-07-29  Jim Meyering  <meyering@redhat.com>
17619
17620         mktime: correct setting of REPLACE_MKTIME
17621         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17622
17623         update-copyright: new module
17624         * modules/update-copyright: New file.
17625         * build-aux/update-copyright: New file.
17626         * MODULES.html.sh (maint+release support): Add update-copyright.
17627
17628 2009-07-27  Bruno Haible  <bruno@clisp.org>
17629
17630         Fix compilation error when <ctime> is used and mktime is replaced.
17631         * lib/time.in.h (mktime): New declaration.
17632         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17633         REPLACE_MKTIME instead of defining mktime in config.h.
17634         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17635         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17636         Reported by Ross McFarland <rwmcfa1@neces.com>.
17637
17638 2009-07-27  Bruno Haible  <bruno@clisp.org>
17639
17640         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17641         Reported by Matt Kraai <mkraai@beckman.com>.
17642
17643 2009-07-25  Jim Meyering  <meyering@redhat.com>
17644
17645         maint.mk: avoid warnings about missing files
17646         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17647         diagnostic when .prev-version does not exist.
17648         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17649         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17650         nonexistent cfg.mk.
17651         Suggestions from Simon Josefsson.
17652
17653 2009-07-25  Bruno Haible  <bruno@clisp.org>
17654
17655         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17656         defined as macros. Needed on QNX 6.4.1.
17657         Reported by Matt Kraai <mkraai@beckman.com>.
17658
17659 2009-07-23  Jim Meyering  <meyering@redhat.com>
17660
17661         maint.mk: invoke "make dist" with a working value of XZ_OPT
17662         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17663
17664 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17665
17666         Make fseeko.c compile on QNX.
17667         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17668
17669 2009-07-22  Peter Simons  <simons@cryp.to>
17670
17671         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17672         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17673         * lib/md4.h: Likewise.
17674         * lib/md5.h: Likewise.
17675         * lib/sha1.h: Likewise.
17676         * lib/sha256.h: Likewise.
17677         * lib/sha512.h: Likewise.
17678
17679         tests-sha1: don't assign literal string to 'char *' variable
17680         * tests/test-sha1.c (main): Declare locals with "const" to match
17681         attributes of the right hand side.
17682
17683 2009-07-21  Eric Blake  <ebb9@byu.net>
17684
17685         dup2: fix more mingw problems
17686         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17687         fd to itself.
17688         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17689         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17690         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17691         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17692         care of mingw bugs.
17693
17694 2009-07-21  Jim Meyering  <meyering@redhat.com>
17695
17696         vc-list-files: avoid failure when /bin/sh is dash
17697         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17698         On some Debian based systems, /bin/sh is a symlink to dash, and running
17699         this command would omit the "/" following each 'tests' prefix:
17700           dash -x build-aux/vc-list-files -C . tests
17701         That is because bash and dash work differently:
17702           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17703           bash ok
17704           dash odd
17705
17706 2009-07-21  Eric Blake  <ebb9@byu.net>
17707
17708         dup2-tests: test previous patch
17709         * modules/dup2-tests: New file.
17710         * tests/test-dup2.c: Likewise.
17711         * tests/test-open.c (main): Avoid unspecified behavior.
17712         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17713         test.
17714
17715         dup2: work around mingw and cygwin 1.5 bug
17716         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17718         * modules/unistd (Makefile.am): Substitute it.
17719         * lib/unistd.in.h (dup2): Declare the replacement.
17720         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17721         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17722         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17723         * modules/execute (Depends-on): Add dup2.
17724         * modules/fseterr (Depends-on): Likewise.
17725         * modules/pipe (Depends-on): Likewise.
17726         * modules/posix_spawn-internal (Depends-on): Likewise.
17727
17728 2009-07-21  Bruno Haible  <bruno@clisp.org>
17729
17730         * modules/.gitattributes: New file.
17731
17732 2009-07-20  Bruno Haible  <bruno@clisp.org>
17733
17734         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17735         (main): Use it.
17736
17737 2009-07-20  Eric Blake  <ebb9@byu.net>
17738
17739         test-pipe: make a bit more robust.
17740         * tests/test-pipe.c (myerr): Allow error messages regardless of
17741         what we do to stderr.
17742         (test_pipe): Rearrange to avoid deadlock.
17743         (child_main): Try a larger read, to ensure we avoided deadlock.
17744         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17745         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17746         if misused.
17747
17748 2009-07-19  Jim Meyering  <meyering@redhat.com>
17749
17750         fts: avoid false-positive cycle-detection
17751         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17752         for each new command line argument.
17753
17754 2009-07-19  Bruno Haible  <bruno@clisp.org>
17755
17756         Fix build error on mingw with the modules sys_select and unistd.
17757         * modules/acl-tests (Depends-on): Add close.
17758         * modules/binary-io-tests (Depends-on): Likewise.
17759         * modules/closein-tests (Depends-on): Likewise.
17760         * modules/flock-tests (Depends-on): Likewise.
17761         * modules/fsync-tests (Depends-on): Likewise.
17762         * modules/lseek-tests (Depends-on): Likewise.
17763         * modules/pipe-tests (Depends-on): Likewise.
17764         * modules/posix_spawn-tests (Depends-on): Likewise.
17765         * modules/posix_spawnp-tests (Depends-on): Likewise.
17766         * modules/stat-time-tests (Depends-on): Likewise.
17767         * modules/yesno-tests (Depends-on): Likewise.
17768
17769 2009-07-19  Bruno Haible  <bruno@clisp.org>
17770
17771         Unify conditionals.
17772         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17773         macros, not at the compiler macros.
17774         * lib/pipe.c: Likewise.
17775         * lib/execute.c: Likewise.
17776         * lib/spawni.c: Likewise.
17777
17778 2009-07-19  Bruno Haible  <bruno@clisp.org>
17779
17780         Fix handling of closed stdin/stdout/stderr on mingw.
17781         * lib/w32spawn.h: Include unistd.h.
17782         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17783         file descriptor with O_NOINHERIT flag.
17784         (fd_safer_noinherit): New function, based on fd-safer.c.
17785         (dup_safer_noinherit): New function, based on dup-safer.c.
17786         (undup_safer_noinherit): New function.
17787         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17788         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17789         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17790         instead of fd_safer.
17791         * tests/test-pipe.c: Include <windows.h>.
17792         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17793
17794         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17795         from main.
17796         (test_pipe): Pass an extra argument for disambiguation.
17797         (main): Invoke parent_main or child_main.
17798
17799         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17800         consistently.
17801
17802 2009-07-18  Eric Blake  <ebb9@byu.net>
17803
17804         test-pipe: fix mingw build
17805         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17806
17807 2009-07-18  Bruno Haible  <bruno@clisp.org>
17808
17809         * modules/pipe-tests (Makefile.am): Fix typo.
17810
17811 2009-07-18  Eric Blake  <ebb9@byu.net>
17812
17813         error: fix mingw build
17814         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17815         Reported by Bruno Haible.
17816
17817         error: avoid undefined use of stdout
17818         * lib/error.c (error, error_at_line): Check that fd 1 is open
17819         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17820         is handling faults and the close_stdout module wants to report the
17821         detection of closed stdout as an error.
17822
17823 2009-07-17  Eric Blake  <ebb9@byu.net>
17824
17825         pipe: be robust in face of closed fds
17826         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17827         should cause child to misbehave.
17828         * modules/pipe-tests: New module.
17829         * tests/test-pipe.c: New file.
17830         * tests/test-pipe.sh: New file.
17831         Reported by Akim Demaille.
17832
17833 2009-07-14  Bruno Haible  <bruno@clisp.org>
17834
17835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17836         Reported by anonymous kc.
17837
17838 2009-07-07  Jim Meyering  <meyering@redhat.com>
17839
17840         maint.mk: don't look for translatable strings in *.m4 or *.mk
17841         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17842         when searching for translatable strings.
17843
17844 2009-07-05  Jim Meyering  <meyering@redhat.com>
17845
17846         remove superfluous parentheses in STREQ definition
17847         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17848         * lib/getugroups.c (STREQ): Likewise.
17849         * lib/fnmatch.c (STREQ): Likewise.
17850         Spotted by Bruno Haible.
17851
17852 2009-07-04  Jim Meyering  <meyering@redhat.com>
17853
17854         argv-iter: new module
17855         * MODULES.html.sh: Add argv-iter.
17856         * lib/argv-iter.c, lib/argv-iter.h: New files.
17857         * modules/argv-iter: New file.
17858         * modules/argv-iter-tests: New file.
17859         * tests/test-argv-iter.c: Test it.
17860
17861 2009-07-04  Bruno Haible  <bruno@clisp.org>
17862
17863         Fix assertion.
17864         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17865         contains more exact copies of a given entry than file2, leave the extra
17866         copies unpaired rather than aborting.
17867         Reported by Eric Blake.
17868
17869 2009-07-02  Bruno Haible  <bruno@clisp.org>
17870
17871         Speedup git-merge-changelog for git cherry-pick.
17872         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17873         (entries_mapping_get): New function, extracted from compute_mapping.
17874         (entries_mapping_reverse_get): New function.
17875         (compute_mapping): Add a 'full' argument. Return the result in a
17876         'struct entries_mapping'.
17877         (main): Update. Access the mappings through entries_mapping_get.
17878         Reported by Eric Blake.
17879
17880 2009-07-02  Bruno Haible  <bruno@clisp.org>
17881
17882         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17883         best_i.
17884
17885 2009-07-02  Bruno Haible  <bruno@clisp.org>
17886
17887         Speed up approximate search for matching ChangeLog entries.
17888         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17889         argument. Call fstrcmp_bounded instead of fstrcmp.
17890         (compute_mapping, try_split_merged_entry, main): Update callers.
17891
17892 2009-07-02  Bruno Haible  <bruno@clisp.org>
17893
17894         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17895
17896 2009-06-30  Bruno Haible  <bruno@clisp.org>
17897
17898         Reduce the number of uc_is_cased calls.
17899         * lib/unicase.h (casing_suffix_context_t): Add
17900         'first_char_except_ignorable' field.
17901         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17902         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17903         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17904         Update initializer.
17905         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17906         case-ignorable characters.
17907         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17908         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17909         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17910         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17911         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17912
17913 2009-06-30  Bruno Haible  <bruno@clisp.org>
17914
17915         Tests for module 'unicase/ignorable'.
17916         * modules/unicase/ignorable-tests: New file.
17917         * tests/unicase/test-ignorable.c: New file, generated by
17918         gen-uni-tables.
17919
17920         Tests for module 'unicase/cased'.
17921         * modules/unicase/cased-tests: New file.
17922         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17923         * tests/unicase/test-predicate-part1.h: New file, derived from
17924         tests/unictype/test-predicate-part1.h.
17925         * tests/unicase/test-predicate-part2.h: New file, same as
17926         tests/unictype/test-predicate-part2.h.
17927
17928         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17929         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17930         (output_casing_properties): New function.
17931         (main): Call it.
17932         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17933         * lib/unicase/cased.c: Include unictype/bitmap.h.
17934         (uc_is_cased): Define through a bitmap lookup.
17935         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17936         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17937         (uc_is_case_ignorable): Define through a bitmap lookup.
17938         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17939         lib/unictype/bitmap.h.
17940         (Depends-on): Add inline. Clean up.
17941         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17942         lib/unictype/bitmap.h.
17943         (Depends-on): Add inline. Clean up.
17944         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17945         recognition.
17946         * tests/unicase/test-u16-tolower.c (main): Likewise.
17947         * tests/unicase/test-u32-tolower.c (main): Likewise.
17948
17949 2009-06-30  Bruno Haible  <bruno@clisp.org>
17950
17951         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17952         * lib/unicase/u16-casemap.c: Likewise.
17953         * lib/unicase/u32-casemap.c: Likewise.
17954
17955 2009-06-29  Bruno Haible  <bruno@clisp.org>
17956
17957         Define u32_casefold as a wrapper around u32_ct_casefold.
17958         * lib/unicase/u32-casefold.c: Update.
17959         * modules/unicase/u32-casefold (Depends-on): Add
17960         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17961         unicase/empty-suffix-context. Clean up.
17962
17963         Define u16_casefold as a wrapper around u16_ct_casefold.
17964         * lib/unicase/u16-casefold.c: Update.
17965         * modules/unicase/u16-casefold (Depends-on): Add
17966         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17967         unicase/empty-suffix-context. Clean up.
17968
17969         Define u8_casefold as a wrapper around u8_ct_casefold.
17970         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17971         * lib/unicase/u8-casefold.c: Update.
17972         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17973         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17974
17975         Define u32_totitle as a wrapper around u32_ct_totitle.
17976         * lib/unicase/u32-totitle.c: Update.
17977         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17978         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17979
17980         Define u16_totitle as a wrapper around u16_ct_totitle.
17981         * lib/unicase/u16-totitle.c: Update.
17982         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17983         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17984
17985         Define u8_totitle as a wrapper around u8_ct_totitle.
17986         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17987         functions.
17988         (FUNC): Delegate to U_CT_TOTITLE.
17989         * lib/unicase/u8-totitle.c: Update.
17990         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17991         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17992
17993         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17994         invocation.
17995         * modules/unicase/u32-tolower (Depends-on): Add
17996         unicase/empty-prefix-context, unicase/empty-suffix-context.
17997
17998         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17999         invocation.
18000         * modules/unicase/u16-tolower (Depends-on): Add
18001         unicase/empty-prefix-context, unicase/empty-suffix-context.
18002
18003         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18004         * modules/unicase/u8-tolower (Depends-on): Add
18005         unicase/empty-prefix-context, unicase/empty-suffix-context.
18006
18007         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18008         invocation.
18009         * modules/unicase/u32-toupper (Depends-on): Add
18010         unicase/empty-prefix-context, unicase/empty-suffix-context.
18011
18012         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18013         invocation.
18014         * modules/unicase/u16-toupper (Depends-on): Add
18015         unicase/empty-prefix-context, unicase/empty-suffix-context.
18016
18017         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18018         * modules/unicase/u8-toupper (Depends-on): Add
18019         unicase/empty-prefix-context, unicase/empty-suffix-context.
18020
18021         New module 'unicase/u32-ct-casefold'.
18022         * lib/unicase/u32-ct-casefold.c: New file.
18023         * modules/unicase/u32-ct-casefold: New file.
18024
18025         New module 'unicase/u16-ct-casefold'.
18026         * lib/unicase/u16-ct-casefold.c: New file.
18027         * modules/unicase/u16-ct-casefold: New file.
18028
18029         New module 'unicase/u8-ct-casefold'.
18030         * lib/unicase/u8-ct-casefold.c: New file.
18031         * lib/unicase/u-ct-casefold.h: New file, derived from
18032         lib/unicase/u-casefold.h.
18033         * modules/unicase/u8-ct-casefold: New file.
18034
18035         New module 'unicase/u32-ct-totitle'.
18036         * lib/unicase/u32-ct-totitle.c: New file.
18037         * modules/unicase/u32-ct-totitle: New file.
18038
18039         New module 'unicase/u16-ct-totitle'.
18040         * lib/unicase/u16-ct-totitle.c: New file.
18041         * modules/unicase/u16-ct-totitle: New file.
18042
18043         New module 'unicase/u8-ct-totitle'.
18044         * lib/unicase/u8-ct-totitle.c: New file.
18045         * lib/unicase/u-ct-totitle.h: New file, derived from
18046         lib/unicase/u-totitle.h.
18047         * modules/unicase/u8-ct-totitle: New file.
18048
18049         New module 'unicase/u32-ct-tolower'.
18050         * lib/unicase/u32-ct-tolower.c: New file.
18051         * modules/unicase/u32-ct-tolower: New file.
18052
18053         New module 'unicase/u16-ct-tolower'.
18054         * lib/unicase/u16-ct-tolower.c: New file.
18055         * modules/unicase/u16-ct-tolower: New file.
18056
18057         New module 'unicase/u8-ct-tolower'.
18058         * lib/unicase/u8-ct-tolower.c: New file.
18059         * modules/unicase/u8-ct-tolower: New file.
18060
18061         New module 'unicase/u32-ct-toupper'.
18062         * lib/unicase/u32-ct-toupper.c: New file.
18063         * modules/unicase/u32-ct-toupper: New file.
18064
18065         New module 'unicase/u16-ct-toupper'.
18066         * lib/unicase/u16-ct-toupper.c: New file.
18067         * modules/unicase/u16-ct-toupper: New file.
18068
18069         New module 'unicase/u8-ct-toupper'.
18070         * lib/unicase/u8-ct-toupper.c: New file.
18071         * modules/unicase/u8-ct-toupper: New file.
18072
18073         Add context arguments to u*_casemap functions.
18074         * lib/unicase/unicasemap.h: Include unicase.h.
18075         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18076         suffix_context arguments.
18077         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18078         functions.
18079         (FUNC): Add prefix_context and suffix_context arguments. Use
18080         uc_is_cased and uc_is_case_ignorable.
18081         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18082         * lib/unicase/u16-casemap.c: Likewise.
18083         * lib/unicase/u32-casemap.c: Likewise.
18084         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18085         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18086         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18087         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18088         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18089         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18090
18091         New module 'unicase/u32-suffix-context'.
18092         * lib/unicase/u32-suffix-context.c: New file.
18093         * modules/unicase/u32-suffix-context: New file.
18094
18095         New module 'unicase/u16-suffix-context'.
18096         * lib/unicase/u16-suffix-context.c: New file.
18097         * modules/unicase/u16-suffix-context: New file.
18098
18099         New module 'unicase/u8-suffix-context'.
18100         * lib/unicase/u8-suffix-context.c: New file.
18101         * lib/unicase/u-suffix-context.h: New file.
18102         * modules/unicase/u8-suffix-context: New file.
18103
18104         New module 'unicase/empty-suffix-context'.
18105         * lib/unicase/empty-suffix-context.c: New file.
18106         * modules/unicase/empty-suffix-context: New file.
18107
18108         New module 'unicase/u32-prefix-context'.
18109         * lib/unicase/u32-prefix-context.c: New file.
18110         * modules/unicase/u32-prefix-context: New file.
18111
18112         New module 'unicase/u16-prefix-context'.
18113         * lib/unicase/u16-prefix-context.c: New file.
18114         * modules/unicase/u16-prefix-context: New file.
18115
18116         New module 'unicase/u8-prefix-context'.
18117         * lib/unicase/u8-prefix-context.c: New file.
18118         * lib/unicase/u-prefix-context.h: New file.
18119         * lib/unicase/context.h: New file.
18120         * modules/unicase/u8-prefix-context: New file.
18121
18122         New module 'unicase/empty-prefix-context'.
18123         * lib/unicase/empty-prefix-context.c: New file.
18124         * modules/unicase/empty-prefix-context: New file.
18125
18126         New module 'unicase/ignorable'.
18127         * lib/unicase/ignorable.c: New file.
18128         * modules/unicase/ignorable: New file.
18129
18130         New module 'unicase/cased'.
18131         * lib/unicase/caseprop.h: New file.
18132         * lib/unicase/cased.c: New file.
18133         * modules/unicase/cased: New file.
18134
18135         New functions for case mapping of substrings.
18136         * lib/unicase.h (casing_prefix_context_t): New type.
18137         (unicase_empty_prefix_context): New variable.
18138         (u8_casing_prefix_context, u16_casing_prefix_context,
18139         u32_casing_prefix_context, u8_casing_prefixes_context,
18140         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18141         declarations.
18142         (casing_suffix_context_t): New type.
18143         (unicase_empty_suffix_context): New variable.
18144         (u8_casing_suffix_context, u16_casing_suffix_context,
18145         u32_casing_suffix_context, u8_casing_suffixes_context,
18146         u16_casing_suffixes_context, u32_casing_suffixes_context,
18147         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18148         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18149         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18150         declarations.
18151
18152 2009-06-28  Jim Meyering  <meyering@redhat.com>
18153
18154         boostrap: indent only with spaces
18155         * build-aux/bootstrap: Indent only with spaces, never TABs.
18156
18157         bootstrap: split long lines
18158         * build-aux/bootstrap: Keep line length < 80.
18159
18160         bootstrap: sync from coreutils
18161         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18162         just as autoreconf does.  Verify a list of prerequisite
18163         package-name,version-number pairs if defined in bootstrap.conf.
18164         Refer to README-prereq, if prerequisites are not satisfied.
18165
18166 2009-06-27  Eric Blake  <ebb9@byu.net>
18167
18168         tests: add test for bogus NULL definition
18169         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18170         * tests/test-stdlib.c: Likewise.
18171         * tests/test-string.c: Likewise.
18172         * tests/test-locale.c: Likewise.
18173         * tests/test-unistd.c: Likewise.
18174         * modules/stdio-tests (Depends-on): Add verify.
18175         * modules/stdlib-tests (Depends-on): Likewise.
18176         * modules/string-tests (Depends-on): Likewise.
18177         * modules/locale-tests (Depends-on): Likewise.
18178         * modules/unistd-tests (Depends-on): Likewise.
18179
18180 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18181
18182         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18183         self-explaining comment.
18184         * m4/selinux-selinux-h: Update serial.
18185         (gl_LIBSELINUX): New macro, adding a warning for missing development
18186         packages to code extracted from...
18187         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18188         Add warning for missing development packages here, too.
18189
18190 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18191
18192         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18193
18194 2009-06-25  Eric Blake  <ebb9@byu.net>
18195
18196         version-etc: fix regression
18197         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18198         gcc.
18199         (version_etc): Use it, to catch bugs with trailing NULL.
18200         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18201         (version_etc_va): Fix logic bug.
18202         * modules/version-etc-tests: Add test.
18203         * tests/test-version-etc.c: New file.
18204         * tests/test-version-etc.sh: Likewise.
18205
18206 2009-06-25  Sam Steingold  <sds@gnu.org>
18207
18208         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18209         mbtowc declaration.
18210
18211 2009-06-25  Eric Blake  <ebb9@byu.net>
18212
18213         fpurge: migrate into <stdio.h>
18214         * lib/fpurge.h: Delete...
18215         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18216         * lib/fpurge.c (fpurge): Change declaring header.
18217         * modules/fpurge (Files): Drop deleted file.
18218         (Depends-on): Add stdio.
18219         (configure.ac): Set witness.
18220         * modules/stdio (Makefile.am): Support fpurge macros.
18221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18222         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18223         * lib/fflush.c: Update client.
18224         * tests/test-fpurge.c: Likewise.
18225         * NEWS: Mention the change.
18226
18227 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18228
18229         * lib/argp-version-etc.c (program_authors): Add const
18230         qualifier.
18231         * lib/version-etc.c: Fix typos in the comments.
18232         * modules/argp-version-etc: Depends on version-etc.
18233
18234 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18235
18236         argp-version-etc: new module.
18237
18238         * lib/argp-version-etc.c: New file.
18239         * lib/argp-version-etc.h: New file.
18240         * modules/argp-version-etc: New file.
18241         * modules/argp-version-etc-tests: New file.
18242         * tests/test-argp-version-etc.c: New test.
18243         * tests/test-argp-version-etc-1.sh: New test.
18244
18245 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18246
18247         Provide additional interfaces and documentation for version-etc
18248         module.
18249
18250         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18251         interfaces.
18252         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18253         prototypes.
18254
18255 2009-06-24  Bruno Haible  <bruno@clisp.org>
18256
18257         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18258         HAVE_LIB${NAME} macro.
18259         Reported by Sam Steingold <sds@gnu.org>.
18260
18261 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18262
18263         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18264         needed.
18265
18266 2009-06-21  Bruno Haible  <bruno@clisp.org>
18267
18268         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18269         work.
18270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18271         together with LIB${NAME}, LTLIB${NAME}.
18272         Reported by Sam Steingold <sds@gnu.org>.
18273
18274 2009-06-20  Jim Meyering  <meyering@redhat.com>
18275
18276         tests: make sc_require_test_exit_idiom more generic
18277         * top/maint.mk (Exit_witness_file): New overridable variable.
18278         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18279         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18280
18281 2009-06-19  Jim Meyering  <meyering@redhat.com>
18282
18283         hash: reverse order of src/dst parameters in an internal interface
18284         * lib/hash.c (transfer_entries): Reverse order of parameters to
18285         put DST before SRC.  Adjust callers.
18286
18287         tests: test-hash: avoid wholesale duplication
18288         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18289         Instead, use a loop and add a single conditional.
18290
18291         tests: test-hash: allow seed selection via a command line argument
18292         * tests/test-hash.c (get_seed): New function.
18293         (main): Use it.
18294
18295 2009-06-19  Eric Blake  <ebb9@byu.net>
18296
18297         hash: avoid memory leak on allocation failure
18298         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18299         failure.  Factor repeated algorithm...
18300         (transfer_entries): ...into new helper routine.
18301         (hash_delete): React to hash_rehash return value.
18302
18303         hash: reduce memory pressure in hash_rehash no-op case
18304         * lib/hash.c (next_prime): Avoid overflow.
18305         (hash_initialize): Factor bucket size computation...
18306         (compute_bucket_size): ...into new helper function.
18307         (hash_rehash): Use new function and open coding to reduce memory
18308         pressure, and avoid a memory leak in USE_OBSTACK code.
18309         Reported by Jim Meyering.
18310
18311 2009-06-18  Eric Blake  <ebb9@byu.net>
18312
18313         hash: make rotation more obvious
18314         * modules/hash (Depends-on): Add bitrotate and stdint.
18315         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18316         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18317         (SIZE_MAX): Rely on headers for definition.
18318         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18319         (raw_hasher): Use rotr_sz.
18320         Suggested by Jim Meyering.
18321
18322         hash: fix memory leak in last patch
18323         * lib/hash.c (hash_rehash): Avoid memory leak.
18324
18325         hash: avoid no-op rehashing
18326         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18327
18328         hash: provide default callback functions
18329         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18330         (hash_initialize): Use them as defaults.
18331         * tests/test-hash.c (main): Test this.
18332
18333         hash: minor optimization
18334         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18335         when possible.
18336         (hash_initialize): Document this promise.
18337         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18338         * tests/test-hash.c (hash_compare_strings): Test this.
18339
18340 2009-06-18  Bruno Haible  <bruno@clisp.org>
18341
18342         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18343         going to be replaced anyway.
18344
18345 2009-06-18  Bruno Haible  <bruno@clisp.org>
18346
18347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18348         in one place.
18349         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18350         be replaced anyway.
18351
18352 2009-06-18  Eric Blake  <ebb9@byu.net>
18353
18354         hash: check for resize before insertion
18355         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18356         threshold before insertion, so that a pathological hash_rehash
18357         that fills every bucket can still trigger another rehash.
18358
18359 2009-06-18  Jim Meyering  <meyering@redhat.com>
18360
18361         hash-tests: add a loop around the small tests
18362         * tests/test-hash.c (main): Repeat small tests with selected
18363         small initial table sizes.
18364
18365 2009-06-17  Eric Blake  <ebb9@byu.net>
18366
18367         hash: minor cleanups
18368         * lib/hash.h (hash_entry): Make opaque, by moving...
18369         * lib/hash.c (hash_entry): ...here.
18370         (hash_insert): Clarify restrictions on what can be inserted.
18371         (hash_get_next): Clarify when it is safe to remove an element
18372         during traversal.
18373         (check_tuning): Skip verification when tuning is known safe.
18374         (hash_initialize): Clarify restrictions on tuning.
18375
18376 2009-06-17  Jim Meyering  <jim@meyering.net>
18377         and Eric Blake  <ebb9@byu.net>
18378
18379         hash-tests: new module
18380         * modules/hash-tests: New file.
18381         * tests/test-hash.c: New file.
18382
18383 2009-06-17  Eric Blake  <ebb9@byu.net>
18384
18385         strstr-simple: document new module
18386         * MODULES.html.sh: Document new module.
18387
18388         strstr, strcasestr: replace on platforms with broken memchr
18389         * modules/strstr: Split into...
18390         * modules/strstr-simple: ...new module that does not care about
18391         performance, but does care about glibc bug.
18392         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18393         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18394         if platform memchr is broken, per Debian bug 521737.
18395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18396         memchr.
18397         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18398         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18399         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18400         * modules/mountlist (Depends-on): Add strstr-simple.
18401         * modules/gen-uni-tables (Depends-on): Likewise.
18402         * modules/argz (Depends-on): Add strstr.
18403
18404 2009-06-17  Bruno Haible  <bruno@clisp.org>
18405
18406         * modules/posix_spawn-internal (Depends-on): Add errno.
18407
18408 2009-06-17  Bruno Haible  <bruno@clisp.org>
18409
18410         Define missing ESTALE on Interix 3.5.
18411         * lib/errno.in.h (ESTALE): Assign a value if missing.
18412         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18413         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18414         missing.
18415         * doc/posix-headers/errno.texi: Mention the Interix bug.
18416         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18417
18418 2009-06-15  Eric Blake  <ebb9@byu.net>
18419
18420         memchr, memchr2: add valgrind exception
18421         * lib/memchr.valgrind: New file.
18422         * lib/memchr2.valgrind: New file.
18423         * modules/memchr (Files): Distribute valgrind file.
18424         * modules/memchr2 (Files): Likewise.
18425
18426         docs: memchr is no longer obsolete
18427         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18428         * lib/string.in.h (memchr): Simplify logic.
18429
18430 2009-06-14  Jim Meyering  <meyering@redhat.com>
18431
18432         link-follow: fix the "checking..." message to not mention trailing slash
18433         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18434         never considered trailing slashes.
18435
18436 2009-06-14  Bruno Haible  <bruno@clisp.org>
18437
18438         * m4/memchr.m4: Mention also the bug on IA-64.
18439         * doc/posix-functions/memchr.texi: Likewise.
18440
18441 2009-06-12  Eric Blake  <ebb9@byu.net>
18442
18443         memchr: detect broken x86_64 and alpha implementations
18444         * modules/memchr-tests (Depends-on): Move mmap detection...
18445         * modules/memchr (Depends-on): ...here.
18446         (configure.ac): Set indicator.
18447         * lib/string.in.h (memchr): Declare replacement.
18448         * modules/string (Makefile.am): Trigger replacement.
18449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18450         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18451         bugs.
18452         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18453         * modules/getpagesize (License): Relax license.
18454
18455 2009-06-11  Bruno Haible  <bruno@clisp.org>
18456
18457         * lib/idpriv.h: Add more references.
18458
18459 2009-06-08  Bruno Haible  <bruno@clisp.org>
18460
18461         Tests for module 'idpriv-droptemp'.
18462         * modules/idpriv-droptemp-tests: New file.
18463         * tests/test-idpriv-droptemp.sh: New file.
18464         * tests/test-idpriv-droptemp.su.sh: New file.
18465         * tests/test-idpriv-droptemp.c: New file.
18466
18467         New module 'idpriv-droptemp'.
18468         * lib/idpriv-droptemp.c: New file.
18469         * modules/idpriv-droptemp: New file.
18470
18471 2009-06-08  Bruno Haible  <bruno@clisp.org>
18472
18473         Tests for module 'idpriv-drop'.
18474         * modules/idpriv-drop-tests: New file.
18475         * tests/test-idpriv-drop.sh: New file.
18476         * tests/test-idpriv-drop.su.sh: New file.
18477         * tests/test-idpriv-drop.c: New file.
18478
18479         New module 'idpriv-drop'.
18480         * lib/idpriv.h: New file.
18481         * lib-idpriv-drop.c: New file.
18482         * m4/idpriv.m4: New file.
18483         * modules/idpriv-drop: New file.
18484
18485 2009-06-08  Bruno Haible  <bruno@clisp.org>
18486
18487         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18494
18495 2009-06-08  Eric Blake  <ebb9@byu.net>
18496
18497         test-strstr: use memory fence, when possible
18498         * tests/test-strstr.c (main): Use memory fence, in order to be
18499         more likely to trigger Debian bug 521737.
18500         * modules/strstr-tests (Files): Pull in additional files.
18501
18502         memchr: no longer obsolete, for wider field testing
18503         * modules/memchr (Status, Notice): Delete, this module is no
18504         longer obsolete.
18505         * modules/vasnprintf (Depends-on): Add memchr.
18506
18507 2009-06-07  Jim Meyering  <meyering@redhat.com>
18508
18509         hash: declare some functions with the warn_unused_result attribute
18510         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18511
18512 2009-06-07  Bruno Haible  <bruno@clisp.org>
18513
18514         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18515         Reported by Eric Blake.
18516
18517 2009-06-06  Eric Blake  <ebb9@byu.net>
18518
18519         test-alignof: fix typo with long double
18520         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18521         compiler error.
18522
18523 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18524
18525         Escape non-texinfo { and }s.
18526         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18527         markup error.
18528
18529 2009-06-04  Jim Meyering  <meyering@redhat.com>
18530
18531         gitlog-to-changelog: don't infloop on an empty commit log
18532         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18533         Reported by Boris Petersen <transacid@centerim.org>.
18534
18535 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18536
18537         version-etc: extend for packagers
18538         Add three new configure options, intended for packagers:
18539           --with-packager="packager name"
18540           --with-packager-version="packager-specific version"
18541           --with-packager-bug-reports="packager bug reporting"
18542         An example with coreutils:
18543           $ ./configure \
18544             --with-packager=Gentoo \
18545             --with-packager-bug-report=http://bugs.gentoo.org/ \
18546             --with-packager-version="patchset 1.6"
18547           $ ./src/ls --version | head -n2
18548           ls (GNU coreutils) 7.1-dirty
18549           Packaged by Gentoo (patchset 1.6)
18550         Note that the bug reporting info via --help doesn't show up because
18551         coreutils uses its own custom emit_bug_reporting_address() implementation
18552         in src/system.h.  If it didn't, it'd look like:
18553           $ ./src/ls --help | tail -n4
18554           Report bugs to <bug-coreutils@gnu.org>.
18555           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18556           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18557           General help using GNU software: <http://www.gnu.org/gethelp/>.
18558         * lib/version-etc.c: Print new information, if provided.
18559         * m4/version-etc.m4: New file.
18560         * modules/version-etc (Files): Add m4/version-etc.m4.
18561         (configure.ac): Add gl_VERSION_ETC.
18562
18563 2009-05-31  Bruno Haible  <bruno@clisp.org>
18564
18565         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18566         and 'int64_t'.
18567         * modules/alignof-tests (Dependencies): Add stdint.
18568         Reported by Eric Blake.
18569
18570 2009-05-31  Bruno Haible  <bruno@clisp.org>
18571
18572         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18573         restriction due to compiler bugs.
18574         Reported by Eric Blake.
18575
18576 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18577             Bruno Haible  <bruno@clisp.org>
18578
18579         Fix test-alignof failure.
18580         * lib/alignof.h (alignof_slot): New macro.
18581         (alignof_type): New macro, with the same semantics as the previous
18582         'alignof'.
18583         (alignof): Alias to alignof_slot.
18584         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18585         check that the results are usable as constant expressions.
18586
18587 2009-05-31  Bruno Haible  <bruno@clisp.org>
18588
18589         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18590         * tests/test-memchr.c (main): Check that memchr does not read past the
18591         first occurrence of the byte.
18592         * tests/test-strstr.c (main): Update comment.
18593         Suggested by Eric Blake.
18594
18595 2009-05-30  Bruno Haible  <bruno@clisp.org>
18596
18597         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18598         detail how to use dumpbin.
18599         Reported by David Byron <dbyron@dbyron.com>.
18600
18601 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18602
18603         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18604
18605 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18606
18607         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18608
18609 2009-05-28  Bruno Haible  <bruno@clisp.org>
18610
18611         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18612         build-aux/ files.
18613
18614 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18615
18616         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18617
18618 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18619
18620         * gnulib-tool (sed_transform_main_lib_file)
18621         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18622         regexps.
18623
18624 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18625
18626         * tests/test-strstr.c: Add another self-test.
18627         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18628         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18629
18630 2009-05-23  Bruno Haible  <bruno@clisp.org>
18631
18632         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18633         change.
18634
18635 2009-05-21  Bruno Haible  <bruno@clisp.org>
18636
18637         Simplify use of mode_t varargs.
18638         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18639         uses 'mode_t' or 'int'.
18640         * lib/openat.c (openat): Likewise.
18641         * lib/open-safer.c (open_safer): Likewise.
18642         * m4/mode_t.m4: New file.
18643         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18644         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18645         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18646         * modules/open (Files): Add m4/mode_t.m4.
18647         * modules/openat (Files): Likewise.
18648         * modules/fcntl-safer (Files): Likewise.
18649         Suggested by Eric Blake.
18650
18651 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18652
18653         * doc/glibc-functions/fallocate.texi: New file.
18654         * doc/gnulib.texi: Include it.
18655
18656 2009-05-21  Eric Blake  <ebb9@byu.net>
18657             Bruno Haible  <bruno@clisp.org>
18658
18659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18660         invocations.
18661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18662
18663 2009-05-21  Eric Blake  <ebb9@byu.net>
18664             Bruno Haible  <bruno@clisp.org>
18665
18666         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18667         include_next. Fix of 2008-11-20 commit.
18668         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18669         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18670         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18671         NEXT_MATH_H.
18672         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18673         instead of NEXT_MATH_H.
18674
18675 2009-05-21  Bruno Haible  <bruno@clisp.org>
18676
18677         Avoid redefinition warnings for SIZE_MAX.
18678         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18679         Reported by Simon Josefsson.
18680
18681 2009-05-21  Bruno Haible  <bruno@clisp.org>
18682
18683         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18684         AC_CACHE_VAL.
18685
18686 2009-05-20  Bruno Haible  <bruno@clisp.org>
18687
18688         Make zeroptr.h work on mingw.
18689         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18690         mprotect.
18691         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18692         * modules/memchr2-tests (configure.ac): Likewise.
18693         * modules/memcmp-tests (configure.ac): Likewise.
18694         * modules/memmem-tests (configure.ac): Likewise.
18695         * modules/memrchr-tests (configure.ac): Likewise.
18696         Reported by Simon Josefsson.
18697
18698 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18699
18700         * tests/test-glob.c: Include string.h for strcmp prototype.
18701
18702 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18703
18704         * modules/getdelim (Depends-on): Add explicit stdint, although it
18705         was implicitly already pulled in via realloc-posix.
18706         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18707
18708 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18709
18710         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18711         G. Christensen" <tgc@jupiterrise.com>.
18712         * m4/sys_socket_h.m4: Check for sa_family_t.
18713         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18714         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18715         * tests/test-sys_socket.c: Check that sa_family_t works.
18716
18717 2009-05-18  Eric Blake  <ebb9@byu.net>
18718
18719         maint.mk: allow gnulib_dir in VPATH build
18720         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18721
18722 2009-05-15  Jim Meyering  <meyering@redhat.com>
18723
18724         maint.mk: Give gnulib_dir a default definition.
18725         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18726         Thus, most packages no longer need to specify this variable in cfg.mk
18727
18728 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18729
18730         rename.m4: fix typos that would make non-mingw cross-configure fail
18731         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18732
18733 2009-05-13  Eric Blake  <ebb9@byu.net>
18734
18735         mmap-anon: avoid out-of-order autoconf expansion
18736         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18737         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18738         * modules/memchr-tests (Depends-on): Add extensions.
18739         * modules/memchr2-tests (Depends-on): Add extensions.
18740         * modules/memcmp-tests (Depends-on): Add extensions.
18741         * modules/memmem-tests (Depends-on): Add extensions.
18742         * modules/memrchr-tests (Depends-on): Add extensions.
18743
18744 2009-05-13  Bruno Haible  <bruno@clisp.org>
18745
18746         Make some tests ISO C 99 compliant.
18747         * tests/zerosize-ptr.h: New file.
18748         * tests/test-memchr.c: Include zerosize-ptr.h.
18749         (main): Use a zero-size object pointer instead of NULL.
18750         * tests/test-memchr2.c: Include zerosize-ptr.h.
18751         (main): Use a zero-size object pointer instead of NULL.
18752         * tests/test-memcmp.c: Include zerosize-ptr.h.
18753         (main): Use a zero-size object pointer instead of NULL.
18754         * tests/test-memmem.c: Include zerosize-ptr.h.
18755         (main): Use a zero-size object pointer instead of NULL.
18756         * tests/test-memrchr.c: Include zerosize-ptr.h.
18757         (main): Use a zero-size object pointer instead of NULL.
18758         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18759         m4/mmap-anon.m4.
18760         (Depends-on): Add getpagesize.
18761         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18762         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18763         m4/mmap-anon.m4.
18764         (Depends-on): Add getpagesize.
18765         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18766         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18767         m4/mmap-anon.m4.
18768         (Depends-on): Add getpagesize.
18769         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18770         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18771         m4/mmap-anon.m4.
18772         (Depends-on): Add getpagesize.
18773         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18774         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18775         m4/mmap-anon.m4.
18776         (Depends-on): Add getpagesize.
18777         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18778
18779 2009-05-12  Bruno Haible  <bruno@clisp.org>
18780
18781         Tests for module 'alignof'.
18782         * modules/alignof-tests: New file.
18783         * tests/test-alignof.c: New file.
18784
18785 2009-05-12  Bruno Haible  <bruno@clisp.org>
18786
18787         Fix alignof macro.
18788         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18789         vendor compilers that are always correct.
18790
18791 2009-05-12  Bruno Haible  <bruno@clisp.org>
18792
18793         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18794         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18795         not whether its fully works.
18796
18797 2009-05-12  Bruno Haible  <bruno@clisp.org>
18798
18799         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18800
18801 2009-05-12  Jim Meyering  <meyering@redhat.com>
18802
18803         * top/maint.mk: Adjust backslash alignment.
18804
18805 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18806
18807         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18808
18809 2009-05-11  Eric Blake  <ebb9@byu.net>
18810
18811         argp: avoid undefined behavior
18812         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18813         macros.
18814
18815 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18816
18817         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18818         user.name to prevent git commit from complaining.
18819
18820 2009-05-10  Bruno Haible  <bruno@clisp.org>
18821
18822         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18823         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18824         it rewrites every file name only once.
18825         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18826
18827 2009-05-08  Bruno Haible  <bruno@clisp.org>
18828
18829         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18830         instead of 'max'.
18831
18832 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18833
18834         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18835         sockaddr_storage test.
18836
18837 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18838
18839         * modules/sys_socket (Makefile.am): Substitute
18840         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18841         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18842         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18843         * tests/test-sys_socket.c: Check sockaddr_storage.
18844
18845 2009-05-08  Bruno Haible  <bruno@clisp.org>
18846
18847         New module 'alignof'.
18848         * lib/alignof.h: New file.
18849         * modules/alignof: New file.
18850
18851 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18852             Bruno Haible  <bruno@clisp.org>
18853
18854         Fix test-file-has-acl on FreeBSD.
18855         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18856         mask is implicitly added.
18857         * tests/test-file-has-acl.c: Include <signal.h>.
18858         (main): Terminate the test after 5 seconds.
18859         * modules/acl-tests (configure.ac): Check for alarm function.
18860
18861 2009-05-04  Bruno Haible  <bruno@clisp.org>
18862
18863         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18864         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18865         * modules/errno (configure.ac): Drop AC_REQUIRE.
18866         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18867         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18868
18869 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18870
18871         * modules/glob-tests: New module.
18872         * tests/test-glob.c: Add.
18873
18874 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18875
18876         * modules/fnmatch-tests: New module.
18877         * tests/test-fnmatch.c: Add.
18878
18879 2009-05-04  Eric Blake  <ebb9@byu.net>
18880
18881         maint: make the new no-submodule-changes rule VPATH-safe
18882         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18883
18884 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18885             Bruno Haible  <bruno@clisp.org>
18886
18887         acl: Fix infinite loop on FreeBSD.
18888         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18889         of return value from acl_get_entry.
18890         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18891         Likewise.
18892
18893 2009-05-03  Bruno Haible  <bruno@clisp.org>
18894
18895         * lib/acl-internal.h (acl_entries): Clarify return value.
18896         * lib/acl_entries.c (acl_entries): Likewise.
18897
18898 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18899
18900         Bug fix in acl module.
18901         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18902
18903 2009-05-03  Bruno Haible  <bruno@clisp.org>
18904
18905         Create gperf-generated file in the source dir, not in the build dir.
18906         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18907         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18908         * modules/unicase/locale-language (unicase/locale-languages.h):
18909         Likewise.
18910         * modules/unicase/special-casing (unicase/special-casing-table.h):
18911         Likewise.
18912         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18913         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18914         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18915         Reported by Ralf Wildenhues.
18916
18917 2009-05-03  Bruno Haible  <bruno@clisp.org>
18918
18919         * modules/fnmatch (Description, configure.ac): Taken from
18920         fnmatch-posix.
18921         * modules/fnmatch-posix: Turn into a symbolic reference to the
18922         'fnmatch' module, and deprecate.
18923         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18924
18925 2009-05-03  Bruno Haible  <bruno@clisp.org>
18926
18927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18928         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18929         Reported by Ralf Wildenhues.
18930
18931 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18932
18933         * m4/fnmatch.m4: Fix fnmatch re-define.
18934
18935 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18936
18937         priv-set: new module and tests; adapt write-any-file
18938         * lib/priv-set.c: New file.
18939         * lib/priv-set.h: New file.
18940         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18941         * lib/write-any-file.c: Simplify by using priv-set module.
18942         * m4/priv-set.m4: New file.
18943         * modules/priv-set: New file.
18944         * modules/unlinkdir: Add dependency on priv-set module.
18945         * modules/write-any-file: Likewise.
18946
18947         Tests for module 'priv-set'.
18948         * modules/priv-set-tests: New file.
18949         * tests/test-priv-set.c: New file.
18950
18951 2009-05-03  Jim Meyering  <meyering@redhat.com>
18952             Bruno Haible  <bruno@clisp.org>
18953
18954         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18955         use the converted UTF-8 variant of the name instead.
18956
18957 2009-05-03  Jim Meyering  <meyering@redhat.com>
18958
18959         tests: tighten some getdate tests
18960         * tests/test-getdate.c (main): Tighten tests: require equality,
18961         not just greater than.  Set TZ envvar to UTC0.
18962
18963 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18964
18965         getdate: correctly interpret "next monday" when run on a Monday
18966         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18967         that e.g., "next tues" (when run on a tuesday) results in a date
18968         that is one week in the future, and not today's date.
18969         I.e., add a week when the wday is the same as the current one.
18970         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18971         and earlier by Martin Bernreuther and Jan Minář.
18972         * tests/test-getdate.c (main): Check that "next DAY" is always in
18973         the future and that "last DAY" is always in the past.
18974
18975 2009-05-02  Jim Meyering  <meyering@redhat.com>
18976
18977         build: ensure that a release build fails when a submodule is unclean
18978         * top/maint.mk (no-submodule-changes): New rule.
18979         (alpha beta major): Depend on it.
18980
18981 2009-05-02  Bruno Haible  <bruno@clisp.org>
18982
18983         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18984         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18985         shell variable gl_fnmatch_required to detect which variant is
18986         requested.
18987         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18988         gl_FUNC_FNMATCH_POSIX.
18989         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18990         exclude fnmatch-posix.
18991
18992 2009-05-02  Bruno Haible  <bruno@clisp.org>
18993
18994         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18995         * modules/mbsrtowcs (License): Change to LGPLv2+.
18996         * modules/strnlen1 (License): Likewise.
18997         Reported by Simon Josefsson.
18998
18999 2009-05-02  Bruno Haible  <bruno@clisp.org>
19000
19001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19002         "cross".
19003         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19004         gnulib-tool was called with option --source-base=lib.
19005
19006 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19007
19008         Use automake *-local hooks without commands, for extensibility.
19009         * modules/localcharset (Makefile.am): Rename install-exec-local
19010         rule to install-exec-localcharset, and make it a prerequisite of
19011         install-exec-local.  Likewise, rename the uninstall-local rule to
19012         uninstall-localcharset, and make it a prerequisite of the former.
19013
19014 2009-05-01  Bruno Haible  <bruno@clisp.org>
19015
19016         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19017         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19018         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19020         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19021         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19022         m4/locale-zh.m4, m4/codeset.m4.
19023
19024         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19025         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19026         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19027         m4/locale-zh.m4.
19028
19029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19030         REPLACE_WCRTOMB if mbstate_t must be replaced.
19031         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19032         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19033
19034 2009-05-01  Bruno Haible  <bruno@clisp.org>
19035
19036         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19037         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19038         dngettext, dcngettext, textdomain, bindtextdomain,
19039         bind_textdomain_codeset): Undefine before redefining.
19040
19041 2009-04-30  Bruno Haible  <bruno@clisp.org>
19042
19043         Fix bug introduced on 2009-04-25.
19044         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19045         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19046         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19047         is defined.
19048         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19049         is defined.
19050         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19051         is defined.
19052         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19053
19054 2009-04-28  Bruno Haible  <bruno@clisp.org>
19055
19056         Comment tweaks.
19057         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19058         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19059         * lib/unicase.h (u*_casexfrm): Likewise.
19060         Reported by Paolo Bonzini.
19061
19062 2009-04-28  Bruno Haible  <bruno@clisp.org>
19063
19064         Fix a compilation error.
19065         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19066         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19067         Reported by Jim Meyering.
19068
19069 2009-04-27  Bruno Haible  <bruno@clisp.org>
19070
19071         New module 'libunistring'.
19072         * modules/libunistring: New file.
19073         * m4/libunistring.m4: New file.
19074         * MODULES.html.sh (Unicode string functions): Add it.
19075
19076 2009-04-27  Eric Blake  <ebb9@byu.net>
19077
19078         maint.mk: allow package-specific header to provide <config.h>
19079         * top/maint.mk (sc_require_config_h): New variable.
19080         (sc_require_config_h, sc_require_config_h_first): Use it.
19081
19082 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19083
19084         * top/maint.mk (sc_avoid_if_before_free): Except
19085         useless-if-before-free script.
19086
19087 2009-04-27  Eric Blake  <ebb9@byu.net>
19088
19089         maintainer-makefile: depend on all required helper scripts
19090         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19091         useless-if-before-free.
19092         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19093         version, rather than assuming gnulib checkout is available.
19094         Reported by Simen Josefsson.
19095
19096 2009-04-26  Bruno Haible  <bruno@clisp.org>
19097
19098         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19099         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19100         "../" or "..".
19101
19102 2009-04-26  Bruno Haible  <bruno@clisp.org>
19103
19104         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19105         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19106         AC_LIB_HAVE_LINKFLAGS.
19107
19108 2009-04-26  Bruno Haible  <bruno@clisp.org>
19109
19110         Simplify calling convention of u*_conv_from_encoding.
19111         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19112         u32_conv_from_encoding): Expect a resultbuf argument and return the
19113         result directly as a pointer.
19114         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19115         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19116         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19117         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19118         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19119         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19120         Update.
19121         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19122         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19123         * lib/vasnprintf.c (VASNPRINTF): Update.
19124         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19125         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19126         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19127         * NEWS: Mention the change.
19128
19129 2009-04-26  Bruno Haible  <bruno@clisp.org>
19130
19131         Simplify calling convention of u*_conv_to_encoding.
19132         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19133         u32_conv_to_encoding): Expect a resultbuf argument and return the
19134         result directly as a pointer.
19135         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19136         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19137         freeing scaled_offsets if mem_iconveha failed.
19138         * lib/unicase/u-casexfrm.h (FUNC): Update.
19139         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19140         * lib/vasnprintf.c (VASNPRINTF): Update.
19141         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19142         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19143         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19144         * NEWS: Mention the change.
19145
19146 2009-04-26  Bruno Haible  <bruno@clisp.org>
19147
19148         Avoid test failures on AIX and OSF/1.
19149         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19150         malloc(0).
19151         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19152         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19153         Likewise.
19154         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19155         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19156         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19157         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19158         * doc/posix-functions/malloc.texi: Document the portability problem
19159         related to malloc(0).
19160
19161 2009-04-26  Bruno Haible  <bruno@clisp.org>
19162
19163         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19164         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19165         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19166
19167 2009-04-25  Bruno Haible  <bruno@clisp.org>
19168
19169         Avoid link error when creating a namespace clean library.
19170         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19171         as macro with arguments if already defined as an alias.
19172         * lib/signbitf.c (gl_signbitf): Don't undefine.
19173         * lib/signbitd.c (gl_signbitd): Don't undefine.
19174         * lib/signbitl.c (gl_signbitl): Don't undefine.
19175
19176 2009-04-25  Jim Meyering  <meyering@redhat.com>
19177
19178         vc-list-files: fix another quoting bug
19179         * build-aux/vc-list-files: Avoid sed backslash expansion
19180         of pathological directory names.
19181
19182 2009-04-25  Eric Blake  <ebb9@byu.net>
19183
19184         vc-list-files: fix shell quoting error
19185         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19186         timestamp.
19187
19188 2009-04-25  Jim Meyering  <meyering@redhat.com>
19189
19190         vc-list-files: restore lost functionality with subdir argument
19191         * build-aux/vc-list-files: When given a non-"." sub-directory
19192         argument, substitute the $dir/ prefix back onto each resulting name.
19193         Otherwise, coreutils' root_tests check would fail.
19194
19195 2009-04-24  Eric Blake  <ebb9@byu.net>
19196
19197         vc-list-files: ignore git symlinks
19198         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19199         than ls-files, to ignore git symlinks.
19200
19201         maint.mk: import improvements from m4
19202         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19203         (move_if_change): Delete unused macro.
19204         (news-date-check, vc-diff-check): Support VPATH builds.
19205         (announcement): Likewise.  Split --bootstrap-tools list...
19206         (boostrap-tools): ...into separate list, which can be overridden
19207         in cfg.mk.
19208         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19209         requiring dependency on useless-if-before-free module.
19210         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19211         Support VPATH builds.
19212
19213 2009-04-24  Jim Meyering  <meyering@redhat.com>
19214
19215         maint.mk: remove coreutils-specific rules and variables
19216         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19217         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19218         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19219
19220         maint.mk: remove obsolete rule
19221         * top/maint.mk (rel-check): Remove rule.
19222         (WGET, WGETFLAGS): Remove now-unused variables.
19223
19224 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19225
19226         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19227         consistency.
19228
19229         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19230         '$(PATH_SEPARATOR)' instead of ':'.
19231
19232 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19233
19234         * lib/getopt1.c (main): Use 'const' for static array.
19235
19236 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19237
19238         * top/maint.mk: Sync with coreutils.
19239         * NEWS: Explain incompatibilities.
19240
19241 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19242             Bruno Haible  <bruno@clisp.org>
19243
19244         Fix cross-compilation results.
19245         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19246         statement, as third argument of AC_TRY_RUN.
19247         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19248         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19249         Likewise.
19250         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19251         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19252         Likewise.
19253         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19254         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19255         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19256
19257 2009-04-20  Bruno Haible  <bruno@clisp.org>
19258
19259         Avoid test failure on mingw.
19260         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19261
19262 2009-04-20  Bruno Haible  <bruno@clisp.org>
19263
19264         Avoid compilation error on mingw.
19265         * modules/localename-tests (Depends-on): Add locale.
19266
19267 2009-04-19  Bruno Haible  <bruno@clisp.org>
19268
19269         Support for building a shared library on Windows platforms.
19270         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19271         (main): Test the presence of UNINORM_NFC here.
19272         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19273         (main): Test the presence of UNINORM_NFD here.
19274         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19275         (main): Test the presence of UNINORM_NFKC here.
19276         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19277         (main): Test the presence of UNINORM_NFKD here.
19278
19279 2009-04-19  Bruno Haible  <bruno@clisp.org>
19280
19281         Avoid a compiler warning.
19282         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19283         Change type of variable 'sequence'.
19284
19285 2009-04-19  Bruno Haible  <bruno@clisp.org>
19286
19287         * modules/configmake (Makefile.am): When the contents of configmake.h
19288         does not change, arrange to preserve its modification time.
19289
19290 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19291
19292         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19293         gettext domain.
19294
19295 2009-04-16  Jim Meyering  <meyering@redhat.com>
19296
19297         useless-if-before-free: improve conversion code
19298         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19299         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19300
19301 2009-04-14  Bruno Haible  <bruno@clisp.org>
19302
19303         * modules/fcntl (Depends-on): Add extensions.
19304         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19305
19306 2009-04-12  Ben Pfaff  <blp@gnu.org>
19307
19308         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19309         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19310
19311 2009-03-20  Ben Pfaff  <blp@gnu.org>
19312
19313         Make rename replace existing destinations on Windows.
19314         * m4/rename.m4: Add test for Mingw.
19315         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19316         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19317         * doc/posix-functions/rename.texi: Document.
19318
19319 2009-04-10  Bruno Haible  <bruno@clisp.org>
19320
19321         New include file "iconveh.h".
19322         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19323         * lib/striconveh.h: Include it.
19324         (enum iconv_ilseq_handler): Remove definition.
19325         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19326         striconveh.h.
19327         * lib/striconveha.c: Include striconveh.h.
19328         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19329         * modules/striconveh (Files): Add lib/iconveh.h.
19330         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19331         lib/striconveh.h.
19332
19333 2009-04-10  Bruno Haible  <bruno@clisp.org>
19334
19335         * lib/uniconv.h: Update comment.
19336
19337 2009-04-10  Bruno Haible  <bruno@clisp.org>
19338
19339         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19340         always.
19341         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19342         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19343         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19344         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19345         "unistring-notinline.h", so that the function gets defined always.
19346         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19347         * lib/unistr/u8-uctomb.c: Likewise.
19348         * lib/unistr/u16-mbtouc.c: Likewise.
19349         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19350         * lib/unistr/u16-uctomb.c: Likewise.
19351         * lib/unistr/u32-mbtouc.c: Likewise.
19352         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19353         * lib/unistr/u32-uctomb.c: Likewise.
19354
19355 2009-04-10  Bruno Haible  <bruno@clisp.org>
19356
19357         Mark 'utime' obsolete.
19358         * modules/utime (Status, Notice): New sections.
19359         Suggested by Jim Meyering.
19360
19361         Fix cross-compile guess for utime test.
19362         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19363         autoconf.
19364         * doc/posix-functions/utime.texi: Give more precisions.
19365         Reported by Jan <ipif@ymail.com>.
19366
19367 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19368
19369         filevercmp: correct today's change
19370         * lib/filevercmp.c: Also handle coreutils' test inputs.
19371         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19372
19373         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19374         for reporting it.
19375         * lib/filevercmp.c: Special handle for "", "." and "..".
19376         * tests/test-filevercmp.c: Enlarge the set suite.
19377
19378 2009-04-07  Jim Meyering  <meyering@redhat.com>
19379
19380         useless-if-before-free: show how to remove braced useless free, too
19381         * build-aux/useless-if-before-free: still only in a comment, though.
19382
19383 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19384
19385         maint.mk: import changes to syntax-check macros from coreutils
19386         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19387         Use them in the relevant macros.
19388
19389 2009-04-06  Bruno Haible  <bruno@clisp.org>
19390
19391         Fix unportable use of bit-fields.
19392         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19393         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19394         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19395
19396 2009-04-06  Bruno Haible  <bruno@clisp.org>
19397
19398         Avoid test failures on AIX and OSF/1.
19399         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19400         that malloc(0) = NULL.
19401         * tests/unicase/test-u8-tolower.c (check): Likewise.
19402         * tests/unicase/test-u8-totitle.c (check): Likewise.
19403         * tests/unicase/test-u8-toupper.c (check): Likewise.
19404         * tests/unicase/test-u16-casefold.c (check): Likewise.
19405         * tests/unicase/test-u16-tolower.c (check): Likewise.
19406         * tests/unicase/test-u16-totitle.c (check): Likewise.
19407         * tests/unicase/test-u16-toupper.c (check): Likewise.
19408         * tests/unicase/test-u32-casefold.c (check): Likewise.
19409         * tests/unicase/test-u32-tolower.c (check): Likewise.
19410         * tests/unicase/test-u32-totitle.c (check): Likewise.
19411         * tests/unicase/test-u32-toupper.c (check): Likewise.
19412         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19413         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19414         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19415         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19416         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19417         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19418         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19419         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19420         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19421         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19422         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19423         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19424
19425 2009-04-05  Bruno Haible  <bruno@clisp.org>
19426
19427         Work around an autoconf limitation.
19428         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19429         comment line if it would be longer than 3 KB.
19430
19431 2009-04-05  Bruno Haible  <bruno@clisp.org>
19432
19433         Avoid test failure with libiconv-1.13.
19434         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19435         of the expected test results.
19436
19437 2009-04-05  Bruno Haible  <bruno@clisp.org>
19438
19439         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19440         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19441         that it should be installed.
19442
19443 2009-04-05  Bruno Haible  <bruno@clisp.org>
19444
19445         * gnulib-tool: New option --copy-file.
19446         (func_usage): Document it.
19447         (func_dest_tmpfilename): Moved out of func_import.
19448         (func_add_file, func_update_file): New functions, extracted from
19449         func_import.
19450         (func_import): Update.
19451
19452 2009-04-05  Karl Berry  <karl@gnu.org>
19453
19454         * README: prominently mention gnulib-tool.
19455         Rearrange sections so getting the code is near the top.
19456
19457 2009-04-05  Bruno Haible  <bruno@clisp.org>
19458
19459         * lib/unicase.h: Mention u*_cmp2.
19460         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19461         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19462         * lib/unicase/ulc-casecmp.c: Likewise.
19463         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19464         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19465         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19466         unistr/u8-cmp.
19467         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19468         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19469         unistr/u16-cmp.
19470         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19471         unistr/u32-cmp.
19472
19473         * lib/uninorm.h: Mention u*_cmp2.
19474         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19475         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19476         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19477         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19478         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19479         unistr/u8-cmp.
19480         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19481         unistr/u16-cmp.
19482         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19483         unistr/u32-cmp.
19484
19485         New module 'unistr/u32-cmp2'.
19486         * lib/unistr/u32-cmp2.c: New file.
19487         * modules/unistr/u32-cmp2: New file.
19488
19489         New module 'unistr/u16-cmp2'.
19490         * lib/unistr/u16-cmp2.c: New file.
19491         * modules/unistr/u16-cmp2: New file.
19492
19493         New module 'unistr/u8-cmp2'.
19494         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19495         * lib/unistr/u8-cmp2.c: New file.
19496         * lib/unistr/u-cmp2.h: New file.
19497         * modules/unistr/u8-cmp2: New file.
19498
19499 2009-04-05  Bruno Haible  <bruno@clisp.org>
19500
19501         * lib/unictype.h (uc_property_is_valid): New macro.
19502         * tests/unictype/test-pr_byname.c (main): Use it.
19503
19504         * lib/unistr.h: Doc fixes.
19505         * lib/uniconv.h: Doc fixes.
19506         * lib/unictype.h: Doc fixes.
19507
19508 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19509
19510         Port coreutils 7.2 to Solaris 8.
19511
19512         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19513         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19514         for Solaris 8.  This is a bit of a hack, as it means it's the
19515         caller's responsibility to add -lnsl if needed, but most likely it
19516         won't be needed since only getaddrinfo uses this and getaddrinfo
19517         isn't needed on Solaris 8.
19518
19519         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19520         problem to Solaris 8 encountered with coreutils 7.2, which
19521         resulted in a message "fnmatch.c:292: warning: passing argument 4
19522         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19523         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19524
19525 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19526
19527         * m4/ld-version-script.m4: Add FIXME comment.
19528
19529 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19530
19531         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19532         SOVERSION variable.
19533
19534 2009-04-02  Bruno Haible  <bruno@clisp.org>
19535
19536         * Makefile (info, html, dvi, pdf): Combine the rules.
19537         Suggested by Jim Meyering.
19538
19539 2009-04-01  Bruno Haible  <bruno@clisp.org>
19540
19541         * Makefile (info, html, dvi, pdf): New targets.
19542         Reported by Reuben Thomas <rrt@sc3d.org>.
19543
19544 2009-04-01  Bruno Haible  <bruno@clisp.org>
19545
19546         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19547         can be put into PATH.
19548         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19549
19550 2009-04-01  Bruno Haible  <bruno@clisp.org>
19551
19552         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19553
19554 2009-04-01  Bruno Haible  <bruno@clisp.org>
19555
19556         Rename module 'visibility'.
19557         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19558         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19559         * doc/gnulib.texi: Update.
19560         * MODULES.html.sh (Misc): Update.
19561         * NEWS: Mention the change.
19562
19563 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19564
19565         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19566         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19567         Eric Blake <ebb9@byu.net> for review.
19568         * MODULES.html.sh: Add lib-msvc-compat.
19569         * doc/gnulib.texi: Link to new section.
19570         * m4/ld-output-def.m4: New file.
19571         * doc/ld-output-def.texi: New file.
19572
19573 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19574
19575         Rename ld-version-script to lib-symbol-versions.  Suggested by
19576         Bruno Haible <bruno@clisp.org>.
19577         * modules/ld-version-script: Renamed to lib-symbol-versions.
19578         * doc/ld-version-script.texi: Fix module name.
19579         * MODULES.html.sh: Add lib-symbol-versions.
19580
19581 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19582
19583         * modules/u64-tests: New file.
19584         * tests/test-u64.c: New file.
19585
19586 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19587
19588         * MODULES.html.sh: Mention u64.
19589         * modules/u64: New module.
19590         * modules/crypto/sha512: Depend on u64 module instead of providing
19591         u64.h.
19592
19593 2009-03-27  Eric Blake  <ebb9@byu.net>
19594
19595         test-strerror: make debugging EAI_SYSTEM easier
19596         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19597         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19598         failure was EAI_SYSTEM.
19599
19600 2009-03-25  Bruno Haible  <bruno@clisp.org>
19601
19602         Fix a problem with --enable-relocatable on Solaris 7.
19603         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19604         since 2008-02-24.
19605
19606 2009-03-25  Eric Blake  <ebb9@byu.net>
19607
19608         test-sockets: avoid gcc warning
19609         * tests/test-sockets.c (main): Silence compiler warning.
19610
19611 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19612
19613         New modules nproc, pthread, contributed by Glen Lenker.
19614
19615         * MODULES.html.sh: Add pthread, nproc.
19616         * lib/nproc.c: New file.
19617         * lib/nproc.h: New file.
19618         * lib/pthread.in.h: New file.
19619         * m4/pthread.m4: New file.
19620         * modules/nproc: New file.
19621         * modules/pthread: New file.
19622
19623 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19624
19625         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19626         New variable.
19627
19628 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19629
19630         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19631         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19632         * tests/test-filevercmp.c: Add tests for backup suffixes.
19633
19634 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19635
19636         * modules/stdlib (Depends-on): Add stdint, needed when defining
19637         struct random_data on, for example, HP-UX 10.20.  Reported by
19638         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19639
19640 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19641
19642         * lib/readline.c (readline): Call fflush on stdout after printing
19643         prompt.
19644
19645 2009-03-20  Bruno Haible  <bruno@clisp.org>
19646
19647         Remove dependency from 'close' module to -lws2_32 on native Windows.
19648         * lib/close-hook.h: New file.
19649         * lib/close-hook.c: New file.
19650         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19651         w32sock.h.
19652         (_gl_close_fd_maybe_socket): Remove function.
19653         (rpl_close): Invoke execute_all_close_hooks instead of
19654         _gl_close_fd_maybe_socket.
19655         * lib/sockets.c: Include close-hook.h, w32sock.h.
19656         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19657         (close_sockets_hook): New variable.
19658         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19659         (gl_sockets_cleanup): Unregister it.
19660         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19661         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19662         * modules/close-hook: New file.
19663         * modules/close (Files): Remove lib/w32sock.h.
19664         (Depends-on): Add close-hook.
19665         (Link): Remove section.
19666         * modules/sockets (Files): Add lib/w32sock.h.
19667         (Depends-on): Add close-hook.
19668         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19669         invocation.
19670         * NEWS: Mention that LIB_CLOSE is gone.
19671
19672 2009-03-23  Eric Blake  <ebb9@byu.net>
19673
19674         signal-tests: test previous patch
19675         * tests/test-signal.c: New file.
19676         * modules/signal-tests: Likewise.
19677
19678         signal.h: always support 'volatile sig_atomic_t'
19679         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19680         (gl_SIGNAL_H_DEFAULTS): Add a default.
19681         * modules/signal (Makefile.am): Substitute if needed.
19682         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19683         users can blindly add volatile.
19684         * doc/posix-headers/signal.texi (signal.h): Document it.
19685         Reported by Matthew Woehlke.
19686
19687 2009-03-23  Jim Meyering  <meyering@redhat.com>
19688
19689         pathmax: PATH_MAX: use pathconf only when available
19690         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19691         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19692         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19693         This avoids a link failure in a PSP cross-compilation environment
19694         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19695
19696         * lib/vasnprintf.c (divide): Fix typo in comment.
19697
19698 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19699
19700         * gnulib-tool (func_filter_filelist): Fix comment.
19701
19702 2009-03-20  Bruno Haible  <bruno@clisp.org>
19703
19704         Make sockets.h self-contained.
19705         * lib/sockets.c: Include sockets.h first.
19706         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19707
19708 2009-03-19  Eric Blake  <ebb9@byu.net>
19709
19710         doc: mention more functions added in cygwin 1.7.0
19711         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19712         addition.
19713         * doc/posix-functions/log2f.texi: Likewise.
19714
19715 2009-03-19  Jim Meyering  <meyering@redhat.com>
19716
19717         fsusage: avoid syntax error due to statement-before-declaration
19718         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19719         after all declarations.  Reported by Matthew Woehlke in
19720         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19721
19722 2009-03-18  Eric Blake  <ebb9@byu.net>
19723
19724         build-aux/compile: sync from automake
19725         * build-aux/compile: New file, from automake.
19726         * config/srclist.txt: Mention build-aux/compile.
19727
19728 2009-03-17  Bruno Haible  <bruno@clisp.org>
19729
19730         * lib/git-merge-changelog.c: Fix typo in comment.
19731         Reported by Reuben Thomas <rrt@sc3d.org>.
19732
19733 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19734
19735         * m4/regex.m4: update and improve help for
19736         --without-included-regex.
19737
19738 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19739
19740         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19741         failure on missing include files.
19742
19743 2009-03-17  Eric Blake  <ebb9@byu.net>
19744
19745         doc: mention more functions added in cygwin 1.7.0
19746         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19747         addition.
19748         * doc/posix-functions/fwscanf.texi: Likewise.
19749         * doc/posix-functions/swprintf.texi: Likewise.
19750         * doc/posix-functions/swscanf.texi: Likewise.
19751         * doc/posix-functions/vfwprintf.texi: Likewise.
19752         * doc/posix-functions/vfwscanf.texi: Likewise.
19753         * doc/posix-functions/vswprintf.texi: Likewise.
19754         * doc/posix-functions/vswscanf.texi: Likewise.
19755         * doc/posix-functions/vwprintf.texi: Likewise.
19756         * doc/posix-functions/vwscanf.texi: Likewise.
19757         * doc/posix-functions/wcscasecmp.texi: Likewise.
19758         * doc/posix-functions/wcsdup.texi: Likewise.
19759         * doc/posix-functions/wcsftime.texi: Likewise.
19760         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19761         * doc/posix-functions/wprintf.texi: Likewise.
19762         * doc/posix-functions/wscanf.texi: Likewise.
19763         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19764
19765 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19766
19767         maint.mk: really add $(AM_MAKEFLAGS)
19768         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19769         was inadvertently omitted in the last commit.
19770         Spotted by Bruno Haible.
19771
19772         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19773         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19774         $(AM_MAKEFLAGS)' rather than plain `make'.
19775
19776         gnulib-tool: execute $MAKE not make
19777         * gnulib-tool: Default $MAKE to 'make'.
19778         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19779         than make.  Initialize $MAKE in the do-autobuild script.
19780
19781         gnulib-tool: use $MAKE not make in generated files
19782         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19783         make, in generated files.  Initialize $MAKE in the do-autobuild
19784         script.
19785
19786         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19787
19788         GNUmakefile: disable parallelism only for multiple, recursive targets
19789         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19790         additions in the Makefile.
19791         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19792         by Automake.
19793         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19794         are listed on the command line and at least one of them is
19795         listed in $(ALL_RECURSIVE_TARGETS).
19796
19797 2009-03-14  Bruno Haible  <bruno@clisp.org>
19798
19799         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19800         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19801         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19802         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19803         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19804         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19805         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19806         unistr/u8-uctomb.
19807         * modules/unistr/u8-strchr (Depends-on): Likewise.
19808         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19809         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19810         unistr/u16-uctomb.
19811         * modules/unistr/u16-strchr (Depends-on): Likewise.
19812         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19813
19814 2009-03-12  Bruno Haible  <bruno@clisp.org>
19815
19816         Work around select() bug on Interix 3.5.
19817         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19818         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19819         * m4/select.m4: New file.
19820         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19821         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19822         * modules/select (Files): Add m4/select.m4.
19823         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19824         * modules/nanosleep (Depends-on): Add select.
19825         * modules/poll (Depends-on): Likewise.
19826         * doc/posix-functions/select.texi: Mention the Interix bug.
19827         Reported by Markus Duft <mduft@gentoo.org>.
19828
19829         * lib/select.c: Renamed from lib/winsock-select.c.
19830         * modules/select (Files): Add lib/select.c, remove
19831         lib/winsock-select.c.
19832         (configure.ac): Update.
19833
19834 2009-03-12  Jim Meyering  <meyering@redhat.com>
19835
19836         avoid gcc warnings about unused macro definitions
19837         * lib/readtokens.c (STREQ): Remove unused definition.
19838         * lib/xmalloc.c (SIZE_MAX): Likewise.
19839         * lib/openat-die.c (N_): Likewise.
19840         * lib/mountlist.c (SIZE_MAX): Remove definition.
19841         Instead, include <stdint.h>.
19842         * lib/readutmp.c: Likewise.
19843         * modules/readutmp (Depends-on): Add stdint.
19844         * modules/mountlist (Depends-on): Add stdint.
19845         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19846
19847 2009-03-10  Bruno Haible  <bruno@clisp.org>
19848
19849         Tests for module 'mbmemcasecoll'.
19850         * modules/mbmemcasecoll-tests: New file.
19851         * tests/test-mbmemcasecoll1.sh: New file.
19852         * tests/test-mbmemcasecoll2.sh: New file.
19853         * tests/test-mbmemcasecoll3.sh: New file.
19854         * tests/test-mbmemcasecoll.c: New file.
19855
19856         New module 'mbmemcasecoll'.
19857         * lib/mbmemcasecoll.h: New file.
19858         * lib/mbmemcasecoll.c: New file.
19859         * modules/mbmemcasecoll: New file.
19860
19861         * tests/test-mbmemcasecmp.h: New file, extracted from
19862         tests/test-mbmemcasecmp.c.
19863         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19864         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19865         (main): Update.
19866         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19867
19868 2009-03-09  Bruno Haible  <bruno@clisp.org>
19869
19870         Tests for module 'mbmemcasecmp'.
19871         * modules/mbmemcasecmp-tests: New file.
19872         * tests/test-mbmemcasecmp1.sh: New file.
19873         * tests/test-mbmemcasecmp2.sh: New file.
19874         * tests/test-mbmemcasecmp3.sh: New file.
19875         * tests/test-mbmemcasecmp.c: New file.
19876
19877         New module 'mbmemcasecmp'.
19878         * lib/mbmemcasecmp.h: New file.
19879         * lib/mbmemcasecmp.c: New file.
19880         * modules/mbmemcasecmp: New file.
19881
19882 2009-03-09  Bruno Haible  <bruno@clisp.org>
19883
19884         Tests for module 'unicase/ulc-casecoll'.
19885         * modules/unicase/ulc-casecoll-tests: New file.
19886         * tests/unicase/test-ulc-casecoll1.sh: New file.
19887         * tests/unicase/test-ulc-casecoll2.sh: New file.
19888         * tests/unicase/test-ulc-casecoll.c: New file.
19889
19890         New module 'unicase/ulc-casecoll'.
19891         * lib/unicase.h (ulc_casecoll): New declaration.
19892         * lib/unicase/ulc-casecoll.c: New file.
19893         * modules/unicase/ulc-casecoll: New file.
19894
19895         New module 'unicase/ulc-casexfrm'.
19896         * lib/unicase.h (ulc_casexfrm): New declaration.
19897         * lib/unicase/ulc-casexfrm.c: New file.
19898         * modules/unicase/ulc-casexfrm: New file.
19899
19900 2009-03-09  Bruno Haible  <bruno@clisp.org>
19901
19902         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19903         invocations.
19904
19905         * m4/mbscasecmp.m4: Remove file.
19906         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19907         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19908
19909         * m4/mbscasestr.m4: Remove file.
19910         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19911         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19912
19913         * m4/mbschr.m4: Remove file.
19914         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19915         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19916
19917         * m4/mbscspn.m4: Remove file.
19918         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19919         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19920
19921         * m4/mbslen.m4: Remove file.
19922         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19923         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19924
19925         * m4/mbsncasecmp.m4: Remove file.
19926         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19927         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19928
19929         * m4/mbsnlen.m4: Remove file.
19930         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19931         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19932
19933         * m4/mbspbrk.m4: Remove file.
19934         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19935         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19936
19937         * m4/mbspcasecmp.m4: Remove file.
19938         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19939         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19940
19941         * m4/mbsrchr.m4: Remove file.
19942         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19943         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19944
19945         * m4/mbssep.m4: Remove file.
19946         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19947         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19948
19949         * m4/mbsspn.m4: Remove file.
19950         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19951         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19952
19953         * m4/mbsstr.m4: Remove file.
19954         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19955         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19956
19957         * m4/mbstok_r.m4: Remove file.
19958         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19959         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19960
19961         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19962
19963         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19964         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19965
19966         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19967
19968 2009-03-08  Bruno Haible  <bruno@clisp.org>
19969
19970         Tests for module 'unicase/ulc-casecmp'.
19971         * modules/unicase/ulc-casecmp-tests: New file.
19972         * tests/unicase/test-ulc-casecmp1.sh: New file.
19973         * tests/unicase/test-ulc-casecmp2.sh: New file.
19974         * tests/unicase/test-ulc-casecmp.c: New file.
19975
19976         New module 'unicase/ulc-casecmp'.
19977         * lib/unicase.h (ulc_casecmp): New declaration.
19978         * lib/unicase/ulc-casecmp.c: New file.
19979         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19980         'const SRC_UNIT *'.
19981         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19982         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19983         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19984         * modules/unicase/ulc-casecmp: New file.
19985
19986         Tests for module 'unicase/u32-is-cased'.
19987         * modules/unicase/u32-is-cased-tests: New file.
19988         * tests/unicase/test-u32-is-cased.c: New file.
19989
19990         Tests for module 'unicase/u16-is-cased'.
19991         * modules/unicase/u16-is-cased-tests: New file.
19992         * tests/unicase/test-u16-is-cased.c: New file.
19993
19994         Tests for module 'unicase/u8-is-cased'.
19995         * modules/unicase/u8-is-cased-tests: New file.
19996         * tests/unicase/test-u8-is-cased.c: New file.
19997         * tests/unicase/test-is-cased.h: New file.
19998
19999         New module 'unicase/u32-is-cased'.
20000         * lib/unicase/u32-is-cased.c: New file.
20001         * modules/unicase/u32-is-cased: New file.
20002
20003         New module 'unicase/u16-is-cased'.
20004         * lib/unicase/u16-is-cased.c: New file.
20005         * modules/unicase/u16-is-cased: New file.
20006
20007         New module 'unicase/u8-is-cased'.
20008         * lib/unicase/u8-is-cased.c: New file.
20009         * lib/unicase/u-is-cased.h: New file.
20010         * modules/unicase/u8-is-cased: New file.
20011
20012         Tests for module 'unicase/u32-is-casefolded'.
20013         * modules/unicase/u32-is-casefolded-tests: New file.
20014         * tests/unicase/test-u32-is-casefolded.c: New file.
20015
20016         Tests for module 'unicase/u16-is-casefolded'.
20017         * modules/unicase/u16-is-casefolded-tests: New file.
20018         * tests/unicase/test-u16-is-casefolded.c: New file.
20019
20020         Tests for module 'unicase/u8-is-casefolded'.
20021         * modules/unicase/u8-is-casefolded-tests: New file.
20022         * tests/unicase/test-u8-is-casefolded.c: New file.
20023         * tests/unicase/test-is-casefolded.h: New file.
20024
20025         New module 'unicase/u32-is-casefolded'.
20026         * lib/unicase/u32-is-casefolded.c: New file.
20027         * modules/unicase/u32-is-casefolded: New file.
20028
20029         New module 'unicase/u16-is-casefolded'.
20030         * lib/unicase/u16-is-casefolded.c: New file.
20031         * modules/unicase/u16-is-casefolded: New file.
20032
20033         New module 'unicase/u8-is-casefolded'.
20034         * lib/unicase/u8-is-casefolded.c: New file.
20035         * modules/unicase/u8-is-casefolded: New file.
20036
20037         Tests for module 'unicase/u32-is-titlecase'.
20038         * modules/unicase/u32-is-titlecase-tests: New file.
20039         * tests/unicase/test-u32-is-titlecase.c: New file.
20040
20041         Tests for module 'unicase/u16-is-titlecase'.
20042         * modules/unicase/u16-is-titlecase-tests: New file.
20043         * tests/unicase/test-u16-is-titlecase.c: New file.
20044
20045         Tests for module 'unicase/u8-is-titlecase'.
20046         * modules/unicase/u8-is-titlecase-tests: New file.
20047         * tests/unicase/test-u8-is-titlecase.c: New file.
20048         * tests/unicase/test-is-titlecase.h: New file.
20049
20050         New module 'unicase/u32-is-titlecase'.
20051         * lib/unicase/u32-is-titlecase.c: New file.
20052         * modules/unicase/u32-is-titlecase: New file.
20053
20054         New module 'unicase/u16-is-titlecase'.
20055         * lib/unicase/u16-is-titlecase.c: New file.
20056         * modules/unicase/u16-is-titlecase: New file.
20057
20058         New module 'unicase/u8-is-titlecase'.
20059         * lib/unicase/u8-is-titlecase.c: New file.
20060         * modules/unicase/u8-is-titlecase: New file.
20061
20062         Tests for module 'unicase/u32-is-lowercase'.
20063         * modules/unicase/u32-is-lowercase-tests: New file.
20064         * tests/unicase/test-u32-is-lowercase.c: New file.
20065
20066         Tests for module 'unicase/u16-is-lowercase'.
20067         * modules/unicase/u16-is-lowercase-tests: New file.
20068         * tests/unicase/test-u16-is-lowercase.c: New file.
20069
20070         Tests for module 'unicase/u8-is-lowercase'.
20071         * modules/unicase/u8-is-lowercase-tests: New file.
20072         * tests/unicase/test-u8-is-lowercase.c: New file.
20073         * tests/unicase/test-is-lowercase.h: New file.
20074
20075         New module 'unicase/u32-is-lowercase'.
20076         * lib/unicase/u32-is-lowercase.c: New file.
20077         * modules/unicase/u32-is-lowercase: New file.
20078
20079         New module 'unicase/u16-is-lowercase'.
20080         * lib/unicase/u16-is-lowercase.c: New file.
20081         * modules/unicase/u16-is-lowercase: New file.
20082
20083         New module 'unicase/u8-is-lowercase'.
20084         * lib/unicase/u8-is-lowercase.c: New file.
20085         * modules/unicase/u8-is-lowercase: New file.
20086
20087         Tests for module 'unicase/u32-is-uppercase'.
20088         * modules/unicase/u32-is-uppercase-tests: New file.
20089         * tests/unicase/test-u32-is-uppercase.c: New file.
20090
20091         Tests for module 'unicase/u16-is-uppercase'.
20092         * modules/unicase/u16-is-uppercase-tests: New file.
20093         * tests/unicase/test-u16-is-uppercase.c: New file.
20094
20095         Tests for module 'unicase/u8-is-uppercase'.
20096         * modules/unicase/u8-is-uppercase-tests: New file.
20097         * tests/unicase/test-u8-is-uppercase.c: New file.
20098         * tests/unicase/test-is-uppercase.h: New file.
20099
20100         New module 'unicase/u32-is-uppercase'.
20101         * lib/unicase/u32-is-uppercase.c: New file.
20102         * modules/unicase/u32-is-uppercase: New file.
20103
20104         New module 'unicase/u16-is-uppercase'.
20105         * lib/unicase/u16-is-uppercase.c: New file.
20106         * modules/unicase/u16-is-uppercase: New file.
20107
20108         New module 'unicase/u8-is-uppercase'.
20109         * lib/unicase/u8-is-uppercase.c: New file.
20110         * modules/unicase/u8-is-uppercase: New file.
20111
20112         New module 'unicase/u32-is-invariant'.
20113         * lib/unicase/u32-is-invariant.c: New file.
20114         * modules/unicase/u32-is-invariant: New file.
20115
20116         New module 'unicase/u16-is-invariant'.
20117         * lib/unicase/u16-is-invariant.c: New file.
20118         * modules/unicase/u16-is-invariant: New file.
20119
20120         New module 'unicase/u8-is-invariant'.
20121         * lib/unicase/u8-is-invariant.c: New file.
20122         * lib/unicase/invariant.h: New file.
20123         * lib/unicase/u-is-invariant.h: New file.
20124         * modules/unicase/u8-is-invariant: New file.
20125
20126         Tests for module 'unicase/u32-casecoll'.
20127         * modules/unicase/u32-casecoll-tests: New file.
20128         * tests/unicase/test-u32-casecoll.c: New file.
20129
20130         Tests for module 'unicase/u16-casecoll'.
20131         * modules/unicase/u16-casecoll-tests: New file.
20132         * tests/unicase/test-u16-casecoll.c: New file.
20133
20134         Tests for module 'unicase/u8-casecoll'.
20135         * modules/unicase/u8-casecoll-tests: New file.
20136         * tests/unicase/test-u8-casecoll.c: New file.
20137
20138         New module 'unicase/u32-casecoll'.
20139         * lib/unicase/u32-casecoll.c: New file.
20140         * modules/unicase/u32-casecoll: New file.
20141
20142         New module 'unicase/u16-casecoll'.
20143         * lib/unicase/u16-casecoll.c: New file.
20144         * modules/unicase/u16-casecoll: New file.
20145
20146         New module 'unicase/u8-casecoll'.
20147         * lib/unicase/u8-casecoll.c: New file.
20148         * lib/unicase/u-casecoll.h: New file.
20149         * modules/unicase/u8-casecoll: New file.
20150
20151         New module 'unicase/u32-casexfrm'.
20152         * lib/unicase/u32-casexfrm.c: New file.
20153         * modules/unicase/u32-casexfrm: New file.
20154
20155         New module 'unicase/u16-casexfrm'.
20156         * lib/unicase/u16-casexfrm.c: New file.
20157         * modules/unicase/u16-casexfrm: New file.
20158
20159         New module 'unicase/u8-casexfrm'.
20160         * lib/unicase/u8-casexfrm.c: New file.
20161         * lib/unicase/u-casexfrm.h: New file.
20162         * modules/unicase/u8-casexfrm: New file.
20163
20164         Tests for module 'unicase/u32-casecmp'.
20165         * modules/unicase/u32-casecmp-tests: New file.
20166         * tests/unicase/test-u32-casecmp.c: New file.
20167
20168         Tests for module 'unicase/u16-casecmp'.
20169         * modules/unicase/u16-casecmp-tests: New file.
20170         * tests/unicase/test-u16-casecmp.c: New file.
20171
20172         Tests for module 'unicase/u8-casecmp'.
20173         * modules/unicase/u8-casecmp-tests: New file.
20174         * tests/unicase/test-u8-casecmp.c: New file.
20175         * tests/unicase/test-casecmp.h: New file.
20176
20177         New module 'unicase/u32-casecmp'.
20178         * lib/unicase/u32-casecmp.c: New file.
20179         * modules/unicase/u32-casecmp: New file.
20180
20181         New module 'unicase/u16-casecmp'.
20182         * lib/unicase/u16-casecmp.c: New file.
20183         * modules/unicase/u16-casecmp: New file.
20184
20185         New module 'unicase/u8-casecmp'.
20186         * lib/unicase/u8-casecmp.c: New file.
20187         * lib/unicase/u-casecmp.h: New file.
20188         * modules/unicase/u8-casecmp: New file.
20189
20190         Tests for module 'unicase/u32-casefold'.
20191         * modules/unicase/u32-casefold-tests: New file.
20192         * tests/unicase/test-u32-casefold.c: New file.
20193
20194         Tests for module 'unicase/u16-casefold'.
20195         * modules/unicase/u16-casefold-tests: New file.
20196         * tests/unicase/test-u16-casefold.c: New file.
20197
20198         Tests for module 'unicase/u8-casefold'.
20199         * modules/unicase/u8-casefold-tests: New file.
20200         * tests/unicase/test-u8-casefold.c: New file.
20201
20202         New module 'unicase/u32-casefold'.
20203         * lib/unicase/u32-casefold.c: New file.
20204         * modules/unicase/u32-casefold: New file.
20205
20206         New module 'unicase/u16-casefold'.
20207         * lib/unicase/u16-casefold.c: New file.
20208         * modules/unicase/u16-casefold: New file.
20209
20210         New module 'unicase/u8-casefold'.
20211         * lib/unicase/u8-casefold.c: New file.
20212         * lib/unicase/u-casefold.h: New file.
20213         * modules/unicase/u8-casefold: New file.
20214
20215         New module 'unicase/tocasefold'.
20216         * lib/unicase/casefold.h: New file.
20217         * lib/unicase/tocasefold.c: New file.
20218         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20219         * modules/unicase/tocasefold: New file.
20220
20221         Tests for module 'unicase/u32-totitle'.
20222         * modules/unicase/u32-totitle-tests: New file.
20223         * tests/unicase/test-u32-totitle.c: New file.
20224
20225         Tests for module 'unicase/u16-totitle'.
20226         * modules/unicase/u16-totitle-tests: New file.
20227         * tests/unicase/test-u16-totitle.c: New file.
20228
20229         Tests for module 'unicase/u8-totitle'.
20230         * modules/unicase/u8-totitle-tests: New file.
20231         * tests/unicase/test-u8-totitle.c: New file.
20232
20233         New module 'unicase/u32-totitle'.
20234         * lib/unicase/u32-totitle.c: New file.
20235         * modules/unicase/u32-totitle: New file.
20236
20237         New module 'unicase/u16-totitle'.
20238         * lib/unicase/u16-totitle.c: New file.
20239         * modules/unicase/u16-totitle: New file.
20240
20241         New module 'unicase/u8-totitle'.
20242         * lib/unicase/u8-totitle.c: New file.
20243         * lib/unicase/u-totitle.h: New file.
20244         * modules/unicase/u8-totitle: New file.
20245
20246         Tests for module 'unicase/u32-tolower'.
20247         * modules/unicase/u32-tolower-tests: New file.
20248         * tests/unicase/test-u32-tolower.c: New file.
20249
20250         Tests for module 'unicase/u16-tolower'.
20251         * modules/unicase/u16-tolower-tests: New file.
20252         * tests/unicase/test-u16-tolower.c: New file.
20253
20254         Tests for module 'unicase/u8-tolower'.
20255         * modules/unicase/u8-tolower-tests: New file.
20256         * tests/unicase/test-u8-tolower.c: New file.
20257
20258         New module 'unicase/u32-tolower'.
20259         * lib/unicase/u32-tolower.c: New file.
20260         * modules/unicase/u32-tolower: New file.
20261
20262         New module 'unicase/u16-tolower'.
20263         * lib/unicase/u16-tolower.c: New file.
20264         * modules/unicase/u16-tolower: New file.
20265
20266         New module 'unicase/u8-tolower'.
20267         * lib/unicase/u8-tolower.c: New file.
20268         * modules/unicase/u8-tolower: New file.
20269
20270         Tests for module 'unicase/u32-toupper'.
20271         * modules/unicase/u32-toupper-tests: New file.
20272         * tests/unicase/test-u32-toupper.c: New file.
20273
20274         Tests for module 'unicase/u16-toupper'.
20275         * modules/unicase/u16-toupper-tests: New file.
20276         * tests/unicase/test-u16-toupper.c: New file.
20277
20278         Tests for module 'unicase/u8-toupper'.
20279         * modules/unicase/u8-toupper-tests: New file.
20280         * tests/unicase/test-u8-toupper.c: New file.
20281
20282         New module 'unicase/u32-toupper'.
20283         * lib/unicase/u32-toupper.c: New file.
20284         * modules/unicase/u32-toupper: New file.
20285
20286         New module 'unicase/u16-toupper'.
20287         * lib/unicase/u16-toupper.c: New file.
20288         * modules/unicase/u16-toupper: New file.
20289
20290         New module 'unicase/u8-toupper'.
20291         * lib/unicase/u8-toupper.c: New file.
20292         * modules/unicase/u8-toupper: New file.
20293
20294         New module 'unicase/u32-casemap'.
20295         * lib/unicase/u32-casemap.c: New file.
20296         * modules/unicase/u32-casemap: New file.
20297
20298         New module 'unicase/u16-casemap'.
20299         * lib/unicase/u16-casemap.c: New file.
20300         * modules/unicase/u16-casemap: New file.
20301
20302         New module 'unicase/u8-casemap'.
20303         * lib/unicase/unicasemap.h: New file.
20304         * lib/unicase/u8-casemap.c: New file.
20305         * lib/unicase/u-casemap.h: New file.
20306         * modules/unicase/u8-casemap: New file.
20307
20308         New module 'unicase/special-casing'.
20309         * lib/unicase/special-casing.h: New file.
20310         * lib/unicase/special-casing.c: New file.
20311         * lib/unicase/special-casing-table.gperf: New file, generated by
20312         gen-uni-tables.c.
20313         * modules/unicase/special-casing: New file.
20314
20315         Tests for module 'unicase/locale-language'.
20316         * modules/unicase/locale-language-tests: New file.
20317         * tests/unicase/test-locale-language.sh: New file.
20318         * tests/unicase/test-locale-language.c: New file.
20319
20320         New module 'unicase/locale-language'.
20321         * lib/unicase/locale-language.c: New file.
20322         * lib/unicase/locale-languages.gperf: New file.
20323         * modules/unicase/locale-language: New file.
20324
20325         Generate more tables for case conversion and case folding.
20326         * lib/gen-uni-tables.c (SCC_*): New enum items.
20327         (struct special_casing_rule): New type.
20328         (casing_rules, num_casing_rules, allocated_casing_rules): New
20329         variables.
20330         (add_casing_rule, fill_casing_rules): New functions.
20331         (struct casefold_rule): New type.
20332         (casefolding_rules, num_casefolding_rules,
20333         allocated_casefolding_rules): New variables.
20334         (fill_casefolding_rules): New function.
20335         (unicode_casefold): New variable.
20336         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20337         sort_casing_rules, output_casing_rules): New functions.
20338         (main): Accept to more arguments: SpecialCasing.txt and
20339         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20340         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20341         Output mapping for casefolding.
20342
20343         * lib/unicase.h: Include stdbool.h, uninorm.h.
20344         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20345         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20346         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20347         arguments.
20348         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20349         resultp arguments.
20350         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20351         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20352         resultp arguments.
20353         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20354         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20355         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20356         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20357         declarations.
20358         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20359
20360 2009-03-08  Bruno Haible  <bruno@clisp.org>
20361
20362         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20363         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20364         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20365         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20366
20367 2009-03-07  Bruno Haible  <bruno@clisp.org>
20368
20369         Adjust u*_normcmp, u*_normcoll API.
20370         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20371         u16_normcoll, u32_normcoll): Change failure conventions.
20372         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20373         errno and return -1.
20374         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20375
20376 2009-03-07  Bruno Haible  <bruno@clisp.org>
20377
20378         Tests for module 'uninorm/u32-normcoll'.
20379         * modules/uninorm/u32-normcoll-tests: New file.
20380         * tests/uninorm/test-u32-normcoll.c: New file.
20381
20382         Tests for module 'uninorm/u16-normcoll'.
20383         * modules/uninorm/u16-normcoll-tests: New file.
20384         * tests/uninorm/test-u16-normcoll.c: New file.
20385
20386         Tests for module 'uninorm/u8-normcoll'.
20387         * modules/uninorm/u8-normcoll-tests: New file.
20388         * tests/uninorm/test-u8-normcoll.c: New file.
20389
20390 2009-03-07  Bruno Haible  <bruno@clisp.org>
20391
20392         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20393         tests/uninorm/test-u32-normcmp.c.
20394         * tests/uninorm/test-u32-normcmp.c: Include it.
20395         (test_nonascii): New function, extracted from main. Add some more
20396         tests.
20397         (main): Invoke test_ascii and test_nonascii.
20398         * modules/uninorm/u32-normcmp-tests (Files): Add
20399         tests/uninorm/test-u32-normcmp.h.
20400         (Depends-on): Remove uninorm/u32-normcmp.
20401
20402         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20403         tests/uninorm/test-u16-normcmp.c.
20404         * tests/uninorm/test-u16-normcmp.c: Include it.
20405         (test_nonascii): New function, extracted from main. Add some more
20406         tests.
20407         (main): Invoke test_ascii and test_nonascii.
20408         * modules/uninorm/u16-normcmp-tests (Files): Add
20409         tests/uninorm/test-u16-normcmp.h.
20410         (Depends-on): Remove uninorm/u16-normcmp.
20411
20412         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20413         tests/uninorm/test-u8-normcmp.c.
20414         * tests/uninorm/test-u8-normcmp.c: Include it.
20415         (test_nonascii): New function, extracted from main. Add some more
20416         tests.
20417         (main): Invoke test_ascii and test_nonascii.
20418         * modules/uninorm/u8-normcmp-tests (Files): Add
20419         tests/uninorm/test-u8-normcmp.h.
20420         (Depends-on): Remove uninorm/u8-normcmp.
20421
20422 2009-03-07  Bruno Haible  <bruno@clisp.org>
20423
20424         New module 'uninorm/u32-normcoll'.
20425         * lib/uninorm/u32-normcoll.c: New file.
20426         * modules/uninorm/u32-normcoll: New file.
20427
20428         New module 'uninorm/u16-normcoll'.
20429         * lib/uninorm/u16-normcoll.c: New file.
20430         * modules/uninorm/u16-normcoll: New file.
20431
20432         New module 'uninorm/u8-normcoll'.
20433         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20434         declarations.
20435         * lib/uninorm/u8-normcoll.c: New file.
20436         * lib/uninorm/u-normcoll.h: New file.
20437         * modules/uninorm/u8-normcoll: New file.
20438
20439         New module 'uninorm/u32-normxfrm'.
20440         * lib/uninorm/u32-normxfrm.c: New file.
20441         * modules/uninorm/u32-normxfrm: New file.
20442
20443         New module 'uninorm/u16-normxfrm'.
20444         * lib/uninorm/u16-normxfrm.c: New file.
20445         * modules/uninorm/u16-normxfrm: New file.
20446
20447         New module 'uninorm/u8-normxfrm'.
20448         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20449         declarations.
20450         * lib/uninorm/u8-normxfrm.c: New file.
20451         * lib/uninorm/u-normxfrm.h: New file.
20452         * modules/uninorm/u8-normxfrm: New file.
20453
20454 2009-03-07  Bruno Haible  <bruno@clisp.org>
20455
20456         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20457         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20458         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20459
20460 2009-03-07  Bruno Haible  <bruno@clisp.org>
20461
20462         New module 'memxfrm'.
20463         * lib/memxfrm.h: New file.
20464         * lib/memxfrm.c: New file.
20465         * modules/memxfrm: New file.
20466
20467 2009-03-07  Bruno Haible  <bruno@clisp.org>
20468
20469         New module 'memcmp2'.
20470         * lib/memcmp2.h: New file.
20471         * lib/memcmp2.c: New file.
20472         * modules/memcmp2: New file.
20473
20474 2009-03-07  Bruno Haible  <bruno@clisp.org>
20475
20476         Tests for module 'uninorm/decomposing-form'.
20477         * modules/uninorm/decomposing-form-tests: New file.
20478         * tests/uninorm/test-decomposing-form.c: New file.
20479
20480         New module 'uninorm/decomposing-form'.
20481         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20482         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20483         Add 'decomposing_variant' field.
20484         * lib/uninorm/decomposing-form.c: New file.
20485         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20486         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20487         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20488         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20489         * modules/uninorm/decomposing-form: New file.
20490         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20491         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20492
20493 2009-03-07  Bruno Haible  <bruno@clisp.org>
20494
20495         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20496         strings.
20497
20498 2009-03-06  Bruno Haible  <bruno@clisp.org>
20499
20500         Tests for module 'uninorm/u32-normcmp'.
20501         * tests/uninorm/test-u32-normcmp.c: New file.
20502         * modules/uninorm/u32-normcmp-tests: New file.
20503
20504         Tests for module 'uninorm/u16-normcmp'.
20505         * tests/uninorm/test-u16-normcmp.c: New file.
20506         * modules/uninorm/u16-normcmp-tests: New file.
20507
20508         Tests for module 'uninorm/u8-normcmp'.
20509         * tests/uninorm/test-u8-normcmp.c: New file.
20510         * modules/uninorm/u8-normcmp-tests: New file.
20511
20512         New module 'uninorm/u32-normcmp'.
20513         * lib/uninorm/u32-normcmp.c: New file.
20514         * modules/uninorm/u32-normcmp: New file.
20515
20516         New module 'uninorm/u16-normcmp'.
20517         * lib/uninorm/u16-normcmp.c: New file.
20518         * modules/uninorm/u16-normcmp: New file.
20519
20520         New module 'uninorm/u8-normcmp'.
20521         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20522         declarations.
20523         * lib/uninorm/u8-normcmp.c: New file.
20524         * lib/uninorm/u-normcmp.h: New file.
20525         * modules/uninorm/u8-normcmp: New file.
20526
20527 2009-03-06  Bruno Haible  <bruno@clisp.org>
20528
20529         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20530         Reported by Eric Blake.
20531
20532 2009-03-06  Eric Blake  <ebb9@byu.net>
20533             Bruno Haible  <bruno@clisp.org>
20534
20535         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20536         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20537         condition.
20538         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20539         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20540         condition.
20541         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20542
20543 2009-03-06  Eric Blake  <ebb9@byu.net>
20544
20545         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20546         to avoid compiler warnings.
20547         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20548
20549 2009-03-05  Bruno Haible  <bruno@clisp.org>
20550
20551         * tests/test-ftell.c (main): Disable test beyond end of file on
20552         FreeMiNT.
20553         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20554
20555 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20556
20557         * lib/filevercmp.c: Move hidden files up in ordering.
20558         * tests/test-filevercmp.c: Add tests for hidden files.
20559
20560 2009-03-04  Bruno Haible  <bruno@clisp.org>
20561
20562         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20563         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20564         AM_CFLAGS.
20565         Reported by Simon Josefsson.
20566
20567 2009-03-03  Bruno Haible  <bruno@clisp.org>
20568
20569         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20570         Reported by Simon Josefsson.
20571
20572         * doc/ld-version-script.texi: Update node reference.
20573
20574 2009-03-03  Bruno Haible  <bruno@clisp.org>
20575
20576         * modules/visibility (License): Change to 'unlimited'.
20577         Suggested by Simon Josefsson.
20578
20579 2009-03-03  Jim Meyering  <meyering@redhat.com>
20580
20581         unlinkdir: cannot_unlink_dir may modify process state
20582         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20583         it's neither thread-safe nor appropriate for use in a library.
20584
20585 2009-03-03  Eric Blake  <ebb9@byu.net>
20586
20587         test-closein: silence test under Darwin
20588         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20589         care if it dies from EPIPE or EBADF.
20590
20591 2009-03-03  Bruno Haible  <bruno@clisp.org>
20592
20593         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20594         earlier.
20595         * doc/visibility.texi: Fix @node and @section.
20596
20597 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20598
20599         * doc/gnulib.texi: Link to sections for ld version script and
20600         visibility.
20601         * doc/visibility.texi: Add @node and @section.
20602         * modules/ld-version-script: New module.
20603         * m4/ld-version-script.m4: New file.
20604         * doc/ld-version-script.texi: New file.
20605
20606 2009-03-02  David Lutterkort  <lutter@redhat.com>
20607
20608         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20610
20611 2009-03-02  Bruno Haible  <bruno@clisp.org>
20612
20613         * doc/visibility.texi: Mention libtool's -export-symbols option.
20614
20615 2009-03-02  Jim Meyering  <meyering@redhat.com>
20616
20617         announce-gen: new option: --no-print-checksums
20618         * build-aux/announce-gen (usage): Describe it.
20619         (print_checksums): Print a newline here, not in the [*] footnote.
20620         (main): Honor it.
20621
20622 2009-03-01  Bruno Haible  <bruno@clisp.org>
20623
20624         Use socklen_t in the native Windows replacements prototypes.
20625         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20626         instead of 'int'.
20627         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20628         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20629         * modules/getsockopt (Depends-on): Add socklen.
20630         * modules/setsockopt (Depends-on): Add socklen.
20631
20632 2009-03-01  Bruno Haible  <bruno@clisp.org>
20633
20634         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20635         least 4.2.
20636
20637 2009-03-01  Eric Blake  <ebb9@byu.net>
20638             Bruno Haible  <bruno@clisp.org>
20639
20640         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20641         error messages.
20642         * lib/wait-process.c (wait_subprocess): Omit error message about
20643         deadly signal sent to the child of termsigp != NULL.
20644
20645 2009-03-01  Eric Blake  <ebb9@byu.net>
20646
20647         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20648
20649 2009-03-01  Bruno Haible  <bruno@clisp.org>
20650
20651         Avoid a gcc warning.
20652         * tests/test-sched.c (b): Make global.
20653         Reported by Eric Blake.
20654
20655 2009-01-19  Martin Lambers  <marlam@marlam.de>
20656
20657         Provide POSIX semantics for socket timeout options on W32.
20658         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20659         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20660         * modules/setsockopt: Depend on sys_time module for struct timeval.
20661         * modules/getsockopt: Depend on sys_time module for struct timeval.
20662
20663 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20664
20665         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20666         __USE_GNU, for consistency with netdb.in.h.
20667         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20668
20669 2009-03-01  Bruno Haible  <bruno@clisp.org>
20670
20671         More support for FreeMiNT.
20672         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20673         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20674
20675 2009-03-01  Bruno Haible  <bruno@clisp.org>
20676
20677         More support for FreeMiNT.
20678         * lib/fpurge.c (fpurge): Correct last commit.
20679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20680
20681 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20682
20683         Fix unportable awk script in vc-list-files.
20684         * build-aux/vc-list-files: In the replacement awk script, use
20685         substr with a second argument of 1, not zero.
20686         Report by Simon Josefsson.
20687
20688 2009-02-28  Bruno Haible  <bruno@clisp.org>
20689
20690         More support for FreeMiNT.
20691         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20692         to FreeMiNT today.
20693         * lib/fwriting.c (fwriting): Likewise.
20694         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20695
20696 2009-02-28  Bruno Haible  <bruno@clisp.org>
20697
20698         * tests/test-freadseek.c (main): Disable test beyond end of file on
20699         FreeMiNT.
20700         * tests/test-ftello.c (main): Likewise.
20701         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20702
20703 2009-02-28  Bruno Haible  <bruno@clisp.org>
20704
20705         Add tentative support for FreeMiNT.
20706         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20707         * lib/fpurge.c (fpurge): Likewise.
20708         * lib/freadable.c (freadable): Likewise.
20709         * lib/freading.c (freading): Likewise.
20710         * lib/freadptr.c (freadptr): Likewise.
20711         * lib/freadseek.c (freadptrinc): Likewise.
20712         * lib/fseeko.c (rpl_fseeko): Likewise.
20713         * lib/fseterr.c (fseterr): Likewise.
20714         * lib/fwritable.c (fwritable): Likewise.
20715         * lib/fwriting.c (fwriting): Likewise.
20716         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20717         Hourihane.
20718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20719
20720 2009-02-28  Bruno Haible  <bruno@clisp.org>
20721
20722         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20723         SIGCHLD.
20724         Reported by Jim Meyering.
20725
20726 2009-02-28  Bruno Haible  <bruno@clisp.org>
20727
20728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20729         Mention the results of these tests on various platforms.
20730         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20731         order.
20732         * doc/posix-functions/printf.texi: Likewise.
20733         * doc/posix-functions/snprintf.texi: Likewise.
20734         * doc/posix-functions/sprintf.texi: Likewise.
20735         * doc/posix-functions/vfprintf.texi: Likewise.
20736         * doc/posix-functions/vprintf.texi: Likewise.
20737         * doc/posix-functions/vsnprintf.texi: Likewise.
20738         * doc/posix-functions/vsprintf.texi: Likewise.
20739         * doc/glibc-functions/obstack_printf.texi: Likewise.
20740         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20741
20742 2009-02-28  Bruno Haible  <bruno@clisp.org>
20743
20744         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20745         Reported by Loïc Minier <lool@dooz.org>.
20746
20747 2009-02-27  Bruno Haible  <bruno@clisp.org>
20748
20749         * gnulib-tool (func_import): Make the sed expression used to create the
20750         sed script for updating the .gitignore file POSIX compliant.
20751         Reported by Eric Blake.
20752
20753 2009-02-27  Bruno Haible  <bruno@clisp.org>
20754
20755         * gnulib-tool (sed): Don't alias as "sed --posix".
20756         Reported by Eric Blake.
20757
20758 2009-02-27  Bruno Haible  <bruno@clisp.org>
20759
20760         Avoid test link errors.
20761         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20762         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20763         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20764         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20766
20767 2009-02-27  Bruno Haible  <bruno@clisp.org>
20768
20769         Avoid spurious "(cached)" in configure output.
20770         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20771         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20772         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20773         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20774         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20775         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20776         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20777         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20778         Reported by Eric Blake.
20779
20780 2009-02-27  Eric Blake  <ebb9@byu.net>
20781
20782         printf: fix regression in previous patch
20783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20784
20785 2009-02-27  Bruno Haible  <bruno@clisp.org>
20786
20787         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20788         value.
20789         * lib/stdint.in.h: Likewise.
20790         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20791
20792 2009-02-27  Eric Blake  <ebb9@byu.net>
20793
20794         doc: mention more functions added in cygwin 1.7.0
20795         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20796         addition.
20797         * doc/posix-functions/open_wmemstream.texi: Likewise.
20798         * doc/posix-functions/wcsnlen.texi: Likewise.
20799         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20800         * doc/posix-functions/wcstod.texi: Likewise.
20801         * doc/posix-functions/wcstof.texi: Likewise.
20802         * doc/posix-functions/wcstoimax.texi: Likewise.
20803         * doc/posix-functions/wcstok.texi: Likewise.
20804         * doc/posix-functions/wcstoumax.texi: Likewise.
20805
20806         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20808         * doc/posix-functions/fprintf.texi: Update.
20809         * doc/posix-functions/printf.texi: Update.
20810         * doc/posix-functions/snprintf.texi: Update.
20811         * doc/posix-functions/sprintf.texi: Update.
20812         * doc/posix-functions/vfprintf.texi: Update.
20813         * doc/posix-functions/vprintf.texi: Update.
20814         * doc/posix-functions/vsnprintf.texi: Update.
20815         * doc/posix-functions/vsprintf.texi: Update.
20816         * doc/glibc-functions/obstack_printf.texi: Update.
20817         * doc/glibc-functions/obstack_vprintf.texi: Update.
20818
20819 2009-02-26  Eric Blake  <ebb9@byu.net>
20820
20821         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20822         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20823         compilation bug by using runtime conversion.
20824         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20826         * modules/ceill-tests (Files): Use nan.h.
20827         * modules/floorl-tests (Files): Likewise.
20828         * modules/frexpl-tests (Files): Likewise.
20829         * modules/isnanl-tests (Files): Likewise.
20830         * modules/ldexpl-tests (Files): Likewise.
20831         * modules/roundl-tests (Files): Likewise.
20832         * modules/truncl-tests (Files): Likewise.
20833         * tests/test-ceill.c (main): Use a working NaN.
20834         * tests/test-floorl.c (main): Likewise.
20835         * tests/test-frexpl.c (main): Likewise.
20836         * tests/test-isnan.c (test_long_double): Likewise.
20837         * tests/test-isnanl.h (main): Likewise.
20838         * tests/test-ldexpl.h (main): Likewise.
20839         * tests/test-roundl.h (main): Likewise.
20840         * tests/test-truncl.h (main): Likewise.
20841         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20842
20843 2009-02-26  Eric Blake  <ebb9@byu.net>
20844             Bruno Haible  <bruno@clisp.org>
20845
20846         Work around a *printf bug with %ls on Solaris.
20847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20848         precision is specified, sprintf stops converting the wide string
20849         argument when the number of bytes that have been produced by this
20850         conversion equals or exceeds the precision.
20851         * doc/posix-functions/fprintf.texi: Update.
20852         * doc/posix-functions/printf.texi: Update.
20853         * doc/posix-functions/snprintf.texi: Update.
20854         * doc/posix-functions/sprintf.texi: Update.
20855         * doc/posix-functions/vfprintf.texi: Update.
20856         * doc/posix-functions/vprintf.texi: Update.
20857         * doc/posix-functions/vsnprintf.texi: Update.
20858         * doc/posix-functions/vsprintf.texi: Update.
20859         * doc/glibc-functions/obstack_printf.texi: Update.
20860         * doc/glibc-functions/obstack_vprintf.texi: Update.
20861
20862 2009-02-26  Eric Blake  <ebb9@byu.net>
20863
20864         stdlib: favor compiler check of random.h
20865         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20866         to avoid an ObjC random.h installed by Swarm.
20867
20868 2009-02-26  Bruno Haible  <bruno@clisp.org>
20869
20870         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20871         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20872         Reported by Gary V. Vaughan <gary@gnu.org>.
20873
20874 2009-02-26  Bruno Haible  <bruno@clisp.org>
20875
20876         Fix *printf behaviour regarding the %ls directive.
20877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20878         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20879         NEED_PRINTF_DIRECTIVE_LS.
20880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20881         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20883         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20884         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20885         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20886         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20891         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20895         * doc/posix-functions/fprintf.texi: Update.
20896         * doc/posix-functions/printf.texi: Update.
20897         * doc/posix-functions/snprintf.texi: Update.
20898         * doc/posix-functions/sprintf.texi: Update.
20899         * doc/posix-functions/vfprintf.texi: Update.
20900         * doc/posix-functions/vprintf.texi: Update.
20901         * doc/posix-functions/vsnprintf.texi: Update.
20902         * doc/posix-functions/vsprintf.texi: Update.
20903         * doc/glibc-functions/obstack_printf.texi: Update.
20904         * doc/glibc-functions/obstack_vprintf.texi: Update.
20905         Reported by Eric Blake.
20906
20907 2009-02-25  Bruno Haible  <bruno@clisp.org>
20908
20909         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20910         with known value.
20911         Reported by Gary V. Vaughan <gary@gnu.org>.
20912
20913 2009-02-25  Bruno Haible  <bruno@clisp.org>
20914
20915         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20916         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20917         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20918         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20919         Reported by Gary V. Vaughan <gary@gnu.org>.
20920
20921 2009-02-25  Bruno Haible  <bruno@clisp.org>
20922
20923         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20924         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20925         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20926         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20927         Reported by Gary V. Vaughan <gary@gnu.org>.
20928
20929 2009-02-25  Eric Blake  <ebb9@byu.net>
20930
20931         tests: skip fseek/ftell tests if ungetc is broken
20932         * m4/ungetc.m4: New file.
20933         * modules/fseek-tests: Split test, so ungetc dependency is
20934         separate from rest of test.
20935         * modules/fseeko-tests: Likewise.
20936         * modules/ftell-tests: Likewise.
20937         * modules/ftello-tests: Likewise.
20938         * tests/test-fseek.c (main): Isolate ungetc dependency.
20939         * tests/test-fseeko.c (main): Likewise.
20940         * tests/test-ftell.c (main): Likewise.
20941         * tests/test-ftello.c (main): Likewise.
20942         * tests/test-fseek2.sh: New file.
20943         * tests/test-fseeko2.sh: Likewise.
20944         * tests/test-ftell2.sh: Likewise.
20945         * tests/test-ftello2.sh: Likewise.
20946
20947 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20948
20949         test-getaddrinfo: fix usage of skip return code 77
20950         * tests/test-gettaddrinfo.c: Return skip code 77 only
20951         for first occurance of skip (4x77 is not 77)
20952
20953 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20954
20955         strtod: avoid C99 decl-after-statement
20956         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20957
20958 2009-02-24  Eric Blake  <ebb9@byu.net>
20959
20960         strtod: detect HP-UX 11.31 bug
20961         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20962         Reported by Gary V. Vaughan.
20963
20964 2009-02-23  Bruno Haible  <bruno@clisp.org>
20965
20966         Fix invalid read past end of memory block.
20967         * lib/vasnprintf.c (DCHAR_SET): Define.
20968         (local_wcslen): Define only when needed.
20969         (local_strnlen, local_wcsnlen): New functions.
20970         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20971         directives that involve a conversion ourselves.
20972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20973         wcsnlen, mbrtowc, wcrtomb.
20974         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20975         * tests/test-vasprintf-posix.c (test_function): Likewise.
20976         * tests/test-snprintf-posix.h (test_function): Likewise.
20977         * tests/test-sprintf-posix.h (test_function): Likewise.
20978         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20979
20980 2009-02-22  Bruno Haible  <bruno@clisp.org>
20981
20982         Implement new clarified decomposition of Hangul syllables.
20983         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20984         of type LTV, return only a pairwise decomposition.
20985         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20986         Likewise.
20987         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20988         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20989         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20990
20991 2009-02-22  Bruno Haible  <bruno@clisp.org>
20992
20993         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20994         zero-length results and shrink excess allocated memory.
20995         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20996         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20997         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20998         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20999         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21000         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21001         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21002         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21003         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21004         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21005         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21006         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21007
21008 2009-02-21  Bruno Haible  <bruno@clisp.org>
21009
21010         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21011         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21012         spaces after a period. Put a space between a macro name and its
21013         argument list. Trivial rewordings.
21014         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21015         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21016         (main): Return 0 explicitly.
21017
21018 2009-02-21  Bruno Haible  <bruno@clisp.org>
21019
21020         Tests for module 'uninorm/filter'.
21021         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21022         * modules/uninorm/filter-tests: New file.
21023
21024         New module 'uninorm/filter'.
21025         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21026         uninorm_filter_flush, uninorm_filter_free): New declarations.
21027         * lib/uninorm/uninorm-filter.c: New file.
21028         * modules/uninorm/filter: New file.
21029
21030 2009-02-21  Bruno Haible  <bruno@clisp.org>
21031
21032         Tests for module 'uninorm/nfkc'.
21033         * tests/uninorm/test-nfkc.c: New file.
21034         * tests/uninorm/test-u8-nfkc.c: New file.
21035         * tests/uninorm/test-u16-nfkc.c: New file.
21036         * tests/uninorm/test-u32-nfkc.c: New file.
21037         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21038         * tests/uninorm/test-u32-nfkc-big.c: New file.
21039         * modules/uninorm/nfkc-tests: New file.
21040
21041         New module 'uninorm/nfkc'.
21042         * lib/uninorm/nfkc.c: New file.
21043         * modules/uninorm/nfkc: New file.
21044
21045         Tests for module 'uninorm/nfkd'.
21046         * tests/uninorm/test-nfkd.c: New file.
21047         * tests/uninorm/test-u8-nfkd.c: New file.
21048         * tests/uninorm/test-u16-nfkd.c: New file.
21049         * tests/uninorm/test-u32-nfkd.c: New file.
21050         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21051         * tests/uninorm/test-u32-nfkd-big.c: New file.
21052         * modules/uninorm/nfkd-tests: New file.
21053
21054         New module 'uninorm/nfkd'.
21055         * lib/uninorm/nfkd.c: New file.
21056         * modules/uninorm/nfkd: New file.
21057
21058         Tests for module 'uninorm/nfc'.
21059         * tests/uninorm/test-nfc.c: New file.
21060         * tests/uninorm/test-u8-nfc.c: New file.
21061         * tests/uninorm/test-u16-nfc.c: New file.
21062         * tests/uninorm/test-u32-nfc.c: New file.
21063         * tests/uninorm/test-u32-nfc-big.sh: New file.
21064         * tests/uninorm/test-u32-nfc-big.c: New file.
21065         * modules/uninorm/nfc-tests: New file.
21066
21067         New module 'uninorm/nfc'.
21068         * lib/uninorm/nfc.c: New file.
21069         * modules/uninorm/nfc: New file.
21070
21071         Tests for module 'uninorm/nfd'.
21072         * tests/uninorm/test-nfd.c: New file.
21073         * tests/uninorm/test-u8-nfd.c: New file.
21074         * tests/uninorm/test-u16-nfd.c: New file.
21075         * tests/uninorm/test-u32-nfd.c: New file.
21076         * tests/uninorm/test-u32-nfd-big.sh: New file.
21077         * tests/uninorm/test-u32-nfd-big.c: New file.
21078         * tests/uninorm/test-u32-normalize-big.h: New file.
21079         * tests/uninorm/test-u32-normalize-big.c: New file.
21080         * tests/uninorm/NormalizationTest.txt: New file, created from
21081         Unicode 5.1.0 NormalizationTest.txt.
21082         * modules/uninorm/nfd-tests: New file.
21083
21084         New module 'uninorm/nfd'.
21085         * lib/uninorm/nfd.c: New file.
21086         * modules/uninorm/nfd: New file.
21087
21088         New module 'uninorm/u32-normalize'.
21089         * lib/uninorm/u32-normalize.c: New file.
21090         * modules/uninorm/u32-normalize: New file.
21091
21092         New module 'uninorm/u16-normalize'.
21093         * lib/uninorm/u16-normalize.c: New file.
21094         * modules/uninorm/u16-normalize: New file.
21095
21096         New module 'uninorm/u8-normalize'.
21097         * lib/uninorm/u8-normalize.c: New file.
21098         * lib/uninorm/normalize-internal.h: New file.
21099         * lib/uninorm/u-normalize-internal.h: New file.
21100         * modules/uninorm/u8-normalize: New file.
21101
21102         New module 'uninorm/decompose-internal'.
21103         * lib/uninorm/decompose-internal.c: New file.
21104         * modules/uninorm/decompose-internal: New file.
21105
21106         Tests for module 'uninorm/composition'.
21107         * tests/uninorm/test-composition.c: New file.
21108         * modules/uninorm/composition-tests: New file.
21109
21110         New module 'uninorm/composition'.
21111         * lib/uninorm/composition.c: New file.
21112         * lib/uninorm/composition-table.gperf: New file, generated by
21113         gen-uni-tables.
21114         * modules/uninorm/composition: New file.
21115
21116         Tests for module 'uninorm/compat-decomposition'.
21117         * tests/uninorm/test-compat-decomposition.c: New file.
21118         * modules/uninorm/compat-decomposition-tests: New file.
21119
21120         New module 'uninorm/compat-decomposition'.
21121         * lib/uninorm/decompose-internal.h: New file.
21122         * lib/uninorm/compat-decomposition.c: New file.
21123         * modules/uninorm/compat-decomposition: New file.
21124
21125         Tests for module 'uninorm/canonical-decomposition'.
21126         * tests/uninorm/test-canonical-decomposition.c: New file.
21127         * modules/uninorm/canonical-decomposition-tests: New file.
21128
21129         New module 'uninorm/canonical-decomposition'.
21130         * lib/uninorm/canonical-decomposition.c: New file.
21131         * modules/uninorm/canonical-decomposition: New file.
21132
21133         Tests for module 'uninorm/decomposition'.
21134         * tests/uninorm/test-decomposition.c: New file.
21135         * modules/uninorm/decomposition-tests: New file.
21136
21137         New module 'uninorm/decomposition'.
21138         * lib/uninorm/decomposition.c: New file.
21139         * modules/uninorm/decomposition: New file.
21140
21141         New module 'uninorm/decomposition-table'.
21142         * lib/uninorm/decomposition-table.h: New file.
21143         * lib/uninorm/decomposition-table.c: New file.
21144         * lib/uninorm/decomposition-table1.h: New file, generated by
21145         gen-uni-tables.
21146         * lib/uninorm/decomposition-table2.h: New file, generated by
21147         gen-uni-tables.
21148         * modules/uninorm/decomposition-table: New file.
21149
21150         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21151         (UC_DECOMP_*): New enumeration items.
21152         (get_decomposition): New function.
21153         (struct decomp_table): New type.
21154         (output_decomposition, output_decomposition_tables): New functions.
21155         (unicode_composition_exclusions): New variable.
21156         (fill_composition_exclusions, debug_output_composition_tables): New
21157         functions.
21158         (main): Accept one more argument. Invoke fill_composition_exclusions.
21159         Output decomposition and composition tables.
21160
21161         New module 'uninorm/base'.
21162         * lib/uninorm.h: New file.
21163         * lib/unictype.h: Update comment.
21164         * modules/uninorm/base: New file.
21165
21166 2009-02-21  David Lutterkort  <lutter@redhat.com>
21167
21168         Tests for module 'safe-alloc'.
21169         * tests/test-safe-alloc.c: New file.
21170         * modules/safe-alloc-tests: New file.
21171
21172         New module 'safe-alloc'.
21173         * lib/safe-alloc.h: New file.
21174         * lib/safe-alloc.c: New file.
21175         * m4/safe-alloc.m4: New file.
21176         * modules/safe-alloc: New file.
21177         * doc/safe-alloc.texi: New file.
21178         * doc/gnulib.texi: Include it.
21179         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21180         safe-alloc.
21181
21182 2009-02-18  Bruno Haible  <bruno@clisp.org>
21183
21184         Fix link error on non-glibc systems.
21185         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21186         variable.
21187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21188
21189 2009-02-18  Jim Meyering  <meyering@redhat.com>
21190
21191         fts: avoid used-uninitialized error due to recent change
21192         * lib/fts.c (fts_read): Guard uses of the new member,
21193         parent->fts_n_dirs_remaining, since it's not relevant for
21194         the parent of a directory specified on the command-line.
21195
21196 2009-02-17  James Youngman  <jay@gnu.org>
21197             Bruno Haible  <bruno@clisp.org>
21198
21199         * m4/include_next.m4: Reformulate comment.
21200
21201 2009-02-16  Jim Meyering  <meyering@redhat.com>
21202
21203         fts: add #if guards so that the fts_lgpl module still builds
21204         * lib/fts.c: Guard just-added hash-table-using parts with
21205         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21206         Reported by Simon Josefsson.
21207
21208 2009-02-15  Bruno Haible  <bruno@clisp.org>
21209
21210         * modules/array-mergesort-tests: New file.
21211         * tests/test-array-mergesort.c: New file.
21212
21213         New module 'array-mergesort'.
21214         * modules/array-mergesort: New file.
21215         * lib/array-mergesort.h: New file.
21216
21217 2009-02-15  Bruno Haible  <bruno@clisp.org>
21218
21219         Fix 2009-02-07 commit.
21220         * lib/gen-uni-tables.c (output_predicate, output_category,
21221         output_combclass, output_bidi_category, output_decimal_digit,
21222         output_digit, output_numeric, output_mirror, output_scripts,
21223         output_ident_category, output_simple_mapping): Fix format directives.
21224         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21225
21226 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21227
21228         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21229         fixes are available from IBM.
21230
21231 2009-02-13  Jim Meyering  <meyering@redhat.com>
21232
21233         fts: arrange not to stat non-directories in more cases
21234         This makes GNU find (when it doesn't need to stat each file)
21235         *much* more efficient at traversing reiserfs file systems.
21236         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21237         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21238         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21239         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21240         (leaf_optimization_applies): New function.
21241         (LCO_hash, LCO_compare): New helper functions.
21242         (link_count_optimize_ok): New function.
21243         (fts_stat): Initialize new member (if dir).
21244         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21245         we've just stat'ed a directory.  Skip the stat call when possible.
21246         ---
21247         Note this AFS-related exchange:
21248         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21249         and note find's pioctl call in find/fstype.c.
21250         But that is necessary only if you want to enable the
21251         optimization for AFS, and for now, I don't.
21252
21253         fts: move a function definition "up" (no semantic change)
21254         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21255         "up" to precede upcoming use of a related function.
21256
21257 2009-02-11  Jim Meyering  <meyering@redhat.com>
21258
21259         fts: correct internal computation of nlinks (optimization-related)
21260         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21261         whether the current entry is a directory, so don't test it.
21262
21263 2009-02-10  Bruno Haible  <bruno@clisp.org>
21264
21265         Tests for module 'uniwbrk/ulc-wordbreaks'.
21266         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21267         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21268         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21269
21270         Tests for module 'uniwbrk/u32-wordbreaks'.
21271         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21272         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21273
21274         Tests for module 'uniwbrk/u16-wordbreaks'.
21275         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21276         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21277
21278         Tests for module 'uniwbrk/u8-wordbreaks'.
21279         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21280         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21281
21282 2009-02-10  Bruno Haible  <bruno@clisp.org>
21283
21284         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21285         property.
21286         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21287         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21288         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21289
21290 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21291
21292         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21293         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21294
21295 2009-02-10  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21298         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21299         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21300         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21301         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21302         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21303
21304 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21305
21306         * lib/sockets.h (gl_fd_to_handle): New function.
21307
21308         * tests/test-sockets.c: Call gl_fd_to_handle.
21309
21310 2009-02-09  Bruno Haible  <bruno@clisp.org>
21311
21312         * doc/havelib.texi: Document the conventions on bi-arch systems.
21313
21314 2009-02-08  Bruno Haible  <bruno@clisp.org>
21315
21316         Document the AC_LIB_LINKFLAGS macro.
21317         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21318         * doc/gnulib.texi: Include it.
21319
21320 2009-02-08  Bruno Haible  <bruno@clisp.org>
21321
21322         Fix wrong order of sections, compared to TOC.
21323         * doc/gnulib.texi: Include relocatable-maint.texi after the
21324         "Regular expressions" node, not before.
21325
21326 2009-02-08  Bruno Haible  <bruno@clisp.org>
21327
21328         Tests for module 'unicase/totitle'.
21329         * modules/unicase/totitle-tests: New file.
21330
21331         Tests for module 'unicase/tolower'.
21332         * modules/unicase/tolower-tests: New file.
21333
21334         Tests for module 'unicase/toupper'.
21335         * modules/unicase/toupper-tests: New file.
21336         * tests/unicase/test-mapping-part1.h: New file.
21337         * tests/unicase/test-mapping-part2.h: New file.
21338
21339         New module 'unicase/totitle'.
21340         * modules/unicase/totitle: New file.
21341         * lib/unicase/totitle.c: New file.
21342
21343         New module 'unicase/tolower'.
21344         * modules/unicase/tolower: New file.
21345         * lib/unicase/tolower.c: New file.
21346
21347         New module 'unicase/toupper'.
21348         * modules/unicase/toupper: New file.
21349         * lib/unicase/toupper.c: New file.
21350         * lib/unicase/simple-mapping.h: New file.
21351
21352         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21353         (mapping_table): New structure.
21354         (output_simple_mapping): New function.
21355         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21356         * modules/gen-uni-tables (Description): Update.
21357         * lib/unicase/toupper.h: New file, automatically generated by
21358         gen-uni-tables.
21359         * lib/unicase/tolower.h: New file, automatically generated by
21360         gen-uni-tables.
21361         * lib/unicase/totitle.h: New file, automatically generated by
21362         gen-uni-tables.
21363         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21364         gen-uni-tables.
21365         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21366         gen-uni-tables.
21367         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21368         gen-uni-tables.
21369
21370         New module 'unicase/base'.
21371         * modules/unicase/base: New file.
21372         * lib/unicase.h: New file.
21373
21374 2009-02-08  Bruno Haible  <bruno@clisp.org>
21375
21376         New module 'uniwbrk/ulc-wordbreaks'.
21377         * modules/uniwbrk/ulc-wordbreaks: New file.
21378         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21379
21380         New module 'uniwbrk/u32-wordbreaks'.
21381         * modules/uniwbrk/u32-wordbreaks: New file.
21382         * lib/uniwbrk/u32-wordbreaks.c: New file.
21383
21384         New module 'uniwbrk/u16-wordbreaks'.
21385         * modules/uniwbrk/u16-wordbreaks: New file.
21386         * lib/uniwbrk/u16-wordbreaks.c: New file.
21387
21388         New module 'uniwbrk/u8-wordbreaks'.
21389         * modules/uniwbrk/u8-wordbreaks: New file.
21390         * lib/uniwbrk/u8-wordbreaks.c: New file.
21391         * lib/uniwbrk/u-wordbreaks.h: New file.
21392
21393         New module 'uniwbrk/table'.
21394         * modules/uniwbrk/table: New file.
21395         * lib/uniwbrk/wbrktable.h: New file.
21396         * lib/uniwbrk/wbrktable.c: New file.
21397
21398         New module 'uniwbrk/wordbreak-property'.
21399         * modules/uniwbrk/wordbreak-property: New file.
21400         * lib/uniwbrk/wordbreak-property.c: New file.
21401
21402         * lib/gen-uni-tables.c (WBP_*): New enum items.
21403         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21404         (unicode_org_wbp): New variable.
21405         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21406         New functions.
21407         (wbp_table): New structure.
21408         (output_wbp, output_wbrk_tables): New functions.
21409         (main): Accept additional argument. Invoke fill_org_wbp,
21410         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21411         output_wbrk_tables.
21412         * modules/gen-uni-tables (Description): Update.
21413         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21414         gen-uni-tables.
21415
21416         New module 'uniwbrk/base'.
21417         * modules/uniwbrk/base: New file.
21418         * lib/uniwbrk.h: New file.
21419
21420 2009-02-08  Bruno Haible  <bruno@clisp.org>
21421
21422         Update to Unicode 5.1.0.
21423         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21424         U+2185..U+2188.
21425         (is_property_default_ignorable_code_point): Don't include characters
21426         of category Cc or Cs and not-a-characters.
21427         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21428         U+0D79, U+109E, U+109F, U+A60C.
21429         * lib/unictype/bidi_of.h: Regenerated.
21430         * lib/unictype/blocks.h: Regenerated.
21431         * lib/unictype/categ_C.h: Regenerated.
21432         * lib/unictype/categ_Cf.h: Regenerated.
21433         * lib/unictype/categ_Cn.h: Regenerated.
21434         * lib/unictype/categ_L.h: Regenerated.
21435         * lib/unictype/categ_Ll.h: Regenerated.
21436         * lib/unictype/categ_Lm.h: Regenerated.
21437         * lib/unictype/categ_Lo.h: Regenerated.
21438         * lib/unictype/categ_Lu.h: Regenerated.
21439         * lib/unictype/categ_M.h: Regenerated.
21440         * lib/unictype/categ_Mc.h: Regenerated.
21441         * lib/unictype/categ_Me.h: Regenerated.
21442         * lib/unictype/categ_Mn.h: Regenerated.
21443         * lib/unictype/categ_N.h: Regenerated.
21444         * lib/unictype/categ_Nd.h: Regenerated.
21445         * lib/unictype/categ_Nl.h: Regenerated.
21446         * lib/unictype/categ_No.h: Regenerated.
21447         * lib/unictype/categ_P.h: Regenerated.
21448         * lib/unictype/categ_Pd.h: Regenerated.
21449         * lib/unictype/categ_Pe.h: Regenerated.
21450         * lib/unictype/categ_Pf.h: Regenerated.
21451         * lib/unictype/categ_Pi.h: Regenerated.
21452         * lib/unictype/categ_Po.h: Regenerated.
21453         * lib/unictype/categ_Ps.h: Regenerated.
21454         * lib/unictype/categ_S.h: Regenerated.
21455         * lib/unictype/categ_Sk.h: Regenerated.
21456         * lib/unictype/categ_Sm.h: Regenerated.
21457         * lib/unictype/categ_So.h: Regenerated.
21458         * lib/unictype/categ_of.h: Regenerated.
21459         * lib/unictype/combining.h: Regenerated.
21460         * lib/unictype/ctype_alnum.h: Regenerated.
21461         * lib/unictype/ctype_alpha.h: Regenerated.
21462         * lib/unictype/ctype_graph.h: Regenerated.
21463         * lib/unictype/ctype_lower.h: Regenerated.
21464         * lib/unictype/ctype_print.h: Regenerated.
21465         * lib/unictype/ctype_punct.h: Regenerated.
21466         * lib/unictype/ctype_upper.h: Regenerated.
21467         * lib/unictype/decdigit.h: Regenerated.
21468         * lib/unictype/digit.h: Regenerated.
21469         * lib/unictype/mirror.h: Regenerated.
21470         * lib/unictype/numeric.h: Regenerated.
21471         * lib/unictype/pr_alphabetic.h: Regenerated.
21472         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21473         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21474         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21475         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21476         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21477         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21478         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21479         * lib/unictype/pr_combining.h: Regenerated.
21480         * lib/unictype/pr_dash.h: Regenerated.
21481         * lib/unictype/pr_decimal_digit.h: Regenerated.
21482         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21483         * lib/unictype/pr_deprecated.h: Regenerated.
21484         * lib/unictype/pr_diacritic.h: Regenerated.
21485         * lib/unictype/pr_extender.h: Regenerated.
21486         * lib/unictype/pr_format_control.h: Regenerated.
21487         * lib/unictype/pr_grapheme_base.h: Regenerated.
21488         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21489         * lib/unictype/pr_grapheme_link.h: Regenerated.
21490         * lib/unictype/pr_id_continue.h: Regenerated.
21491         * lib/unictype/pr_id_start.h: Regenerated.
21492         * lib/unictype/pr_ideographic.h: Regenerated.
21493         * lib/unictype/pr_ignorable_control.h: Regenerated.
21494         * lib/unictype/pr_lowercase.h: Regenerated.
21495         * lib/unictype/pr_math.h: Regenerated.
21496         * lib/unictype/pr_numeric.h: Regenerated.
21497         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21498         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21499         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21500         * lib/unictype/pr_other_id_continue.h: Regenerated.
21501         * lib/unictype/pr_other_lowercase.h: Regenerated.
21502         * lib/unictype/pr_other_math.h: Regenerated.
21503         * lib/unictype/pr_punctuation.h: Regenerated.
21504         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21505         * lib/unictype/pr_soft_dotted.h: Regenerated.
21506         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21507         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21508         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21509         * lib/unictype/pr_uppercase.h: Regenerated.
21510         * lib/unictype/pr_xid_continue.h: Regenerated.
21511         * lib/unictype/pr_xid_start.h: Regenerated.
21512         * lib/unictype/pr_zero_width.h: Regenerated.
21513         * lib/unictype/scripts.h: Regenerated.
21514         * lib/unictype/scripts_byname.gperf: Regenerated.
21515         * lib/unictype/sy_java_ident.h: Regenerated.
21516         * lib/unilbrk/lbrkprop1.h: Regenerated.
21517         * lib/unilbrk/lbrkprop2.h: Regenerated.
21518         * tests/unictype/test-categ_C.c: Regenerated.
21519         * tests/unictype/test-categ_Cf.c: Regenerated.
21520         * tests/unictype/test-categ_Cn.c: Regenerated.
21521         * tests/unictype/test-categ_L.c: Regenerated.
21522         * tests/unictype/test-categ_Ll.c: Regenerated.
21523         * tests/unictype/test-categ_Lm.c: Regenerated.
21524         * tests/unictype/test-categ_Lo.c: Regenerated.
21525         * tests/unictype/test-categ_Lu.c: Regenerated.
21526         * tests/unictype/test-categ_M.c: Regenerated.
21527         * tests/unictype/test-categ_Mc.c: Regenerated.
21528         * tests/unictype/test-categ_Me.c: Regenerated.
21529         * tests/unictype/test-categ_Mn.c: Regenerated.
21530         * tests/unictype/test-categ_N.c: Regenerated.
21531         * tests/unictype/test-categ_Nd.c: Regenerated.
21532         * tests/unictype/test-categ_Nl.c: Regenerated.
21533         * tests/unictype/test-categ_No.c: Regenerated.
21534         * tests/unictype/test-categ_P.c: Regenerated.
21535         * tests/unictype/test-categ_Pd.c: Regenerated.
21536         * tests/unictype/test-categ_Pe.c: Regenerated.
21537         * tests/unictype/test-categ_Pf.c: Regenerated.
21538         * tests/unictype/test-categ_Pi.c: Regenerated.
21539         * tests/unictype/test-categ_Po.c: Regenerated.
21540         * tests/unictype/test-categ_Ps.c: Regenerated.
21541         * tests/unictype/test-categ_S.c: Regenerated.
21542         * tests/unictype/test-categ_Sk.c: Regenerated.
21543         * tests/unictype/test-categ_Sm.c: Regenerated.
21544         * tests/unictype/test-categ_So.c: Regenerated.
21545         * tests/unictype/test-ctype_alnum.c: Regenerated.
21546         * tests/unictype/test-ctype_alpha.c: Regenerated.
21547         * tests/unictype/test-ctype_graph.c: Regenerated.
21548         * tests/unictype/test-ctype_lower.c: Regenerated.
21549         * tests/unictype/test-ctype_print.c: Regenerated.
21550         * tests/unictype/test-ctype_punct.c: Regenerated.
21551         * tests/unictype/test-ctype_upper.c: Regenerated.
21552         * tests/unictype/test-decdigit.h: Regenerated.
21553         * tests/unictype/test-digit.h: Regenerated.
21554         * tests/unictype/test-numeric.h: Regenerated.
21555         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21556         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21557         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21558         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21559         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21560         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21561         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21562         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21563         * tests/unictype/test-pr_combining.c: Regenerated.
21564         * tests/unictype/test-pr_dash.c: Regenerated.
21565         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21566         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21567         * tests/unictype/test-pr_deprecated.c: Regenerated.
21568         * tests/unictype/test-pr_diacritic.c: Regenerated.
21569         * tests/unictype/test-pr_extender.c: Regenerated.
21570         * tests/unictype/test-pr_format_control.c: Regenerated.
21571         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21572         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21573         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21574         * tests/unictype/test-pr_id_continue.c: Regenerated.
21575         * tests/unictype/test-pr_id_start.c: Regenerated.
21576         * tests/unictype/test-pr_ideographic.c: Regenerated.
21577         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21578         * tests/unictype/test-pr_lowercase.c: Regenerated.
21579         * tests/unictype/test-pr_math.c: Regenerated.
21580         * tests/unictype/test-pr_numeric.c: Regenerated.
21581         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21582         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21583         Regenerated.
21584         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21585         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21586         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21587         * tests/unictype/test-pr_other_math.c: Regenerated.
21588         * tests/unictype/test-pr_punctuation.c: Regenerated.
21589         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21590         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21591         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21592         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21593         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21594         * tests/unictype/test-pr_uppercase.c: Regenerated.
21595         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21596         * tests/unictype/test-pr_xid_start.c: Regenerated.
21597         * tests/unictype/test-pr_zero_width.c: Regenerated.
21598
21599         Update to Unicode 5.1.0.
21600         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21601         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21602         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21603         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21604         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21605         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21606         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21607         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21608         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21609         (nonspacing_table_ind): Update.
21610         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21611
21612         Update to Unicode 5.1.0.
21613         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21614         code transform.
21615         * lib/uniname/uniname.c (unicode_character_name,
21616         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21617         * lib/uniname/uninames.h: Regenerated.
21618         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21619
21620 2009-02-07  Bruno Haible  <bruno@clisp.org>
21621
21622         Merge gen-ctype and gen-lbrk into a single program.
21623         * lib/gen-uni-tables.c: New file, incorporating
21624         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21625         Add directory prefixes to the names of the generated files.
21626         * lib/unictype/gen-ctype.c: Remove file.
21627         * lib/unilbrk/gen-lbrk.c: Remove file.
21628         * modules/gen-uni-tables: New file.
21629         * modules/unictype/gen-ctype: Remove file.
21630         * modules/unilbrk/gen-lbrk: Remove file.
21631
21632 2009-02-07  Bruno Haible  <bruno@clisp.org>
21633
21634         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21635
21636         New module 'unistr/u32-strcoll'.
21637         * modules/unistr/u32-strcoll: New file.
21638         * lib/unistr/u32-strcoll.c: New file.
21639
21640         New module 'unistr/u16-strcoll'.
21641         * modules/unistr/u16-strcoll: New file.
21642         * lib/unistr/u16-strcoll.c: New file.
21643
21644         New module 'unistr/u8-strcoll'.
21645         * modules/unistr/u8-strcoll: New file.
21646         * lib/unistr/u8-strcoll.c: New file.
21647         * lib/unistr/u-strcoll.h: New file.
21648
21649 2009-02-07  Bruno Haible  <bruno@clisp.org>
21650
21651         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21652         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21653         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21654         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21655         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21656         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21657
21658 2009-02-07  Bruno Haible  <bruno@clisp.org>
21659
21660         Make 64-bit clean.
21661         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21662         output_combclass, output_bidi_category, output_decimal_digit,
21663         output_digit, output_numeric, output_mirror, output_scripts,
21664         output_ident_category): Use proper width specifier in format strings.
21665
21666 2009-02-07  Bruno Haible  <bruno@clisp.org>
21667
21668         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21669         failure behaviour.
21670
21671 2009-02-07  Jim Meyering  <meyering@redhat.com>
21672
21673         regex: avoid compilation failure with upcoming gcc-4.4
21674         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21675         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21676         "... error: integer overflow in preprocessor expression".
21677
21678 2009-02-05  Ben Pfaff  <blp@gnu.org>
21679
21680         Fix link errors on Windows when close module is used.
21681         * modules/close: Add $(LIB_CLOSE) to Link section.
21682         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21683         $(LIB_CLOSE) on Windows.
21684
21685 2009-02-05  Jim Meyering  <meyering@redhat.com>
21686
21687         still avoid unused-parameter warnings, but do it cleanly
21688         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21689         (get_fs_usage): Cast to void instead.
21690         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21691         (dev_from_mount_options, read_file_system_list): Cast to void.
21692         Prompted by Bruno Haible.
21693
21694 2009-02-04  Jim Meyering  <meyering@redhat.com>
21695
21696         fsusage.c: correct copyright year
21697         * lib/fsusage.c: Reflect year in which the change is pushed into
21698
21699         avoid misc. warnings
21700         * lib/fsusage.c (UNUSED_PARAM): Define.
21701         (get_fs_usage): Mark parameter "disk" as unused.
21702         * lib/getugroups.c (getgrent): Use "void" in prototype.
21703         * lib/mountlist.c: Mark unused parameters.
21704         (read_file_system_list): Declare a local with "const".
21705         * lib/nanosleep.c (getnow): Declare static.
21706         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21707
21708         dirfd: set errno upon failure
21709         * lib/dirfd.c: Include <errno.h>.
21710         Set errno to ENOTSUP when returning -1.
21711         * modules/dirfd (Depends-on): Add errno.
21712         Suggested by John Kodis <kodis@comcast.net>.
21713
21714 2009-02-01  Bruno Haible  <bruno@clisp.org>
21715
21716         Don't assume sizeof (long) >= sizeof (void *).
21717         * lib/memcmp.c: Include stdint.h.
21718         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21719         srcp2 to 'const byte *'.
21720         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21721         types to uintptr_t.
21722         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21723         * modules/memcmp (Depends-on): Add stdint.
21724         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21725
21726 2009-01-30  Eric Blake  <ebb9@byu.net>
21727
21728         fix more require-before-expand issues
21729         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21730         expand, AC_PROG_AWK.
21731         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21732
21733 2009-01-28  Eric Blake  <ebb9@byu.net>
21734
21735         version-etc: use consistent URL formatting
21736         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21737         Improve formatting.  Use fputs for string without %.
21738
21739 2009-01-28  Jim Meyering  <meyering@redhat.com>
21740
21741         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21742         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21743         "underquoted definition of NAME" from autoconf-2.59.
21744
21745 2009-01-28  Bruno Haible  <bruno@clisp.org>
21746
21747         * doc/gnulib.texi: Add "Obsolete modules" to index.
21748
21749 2009-01-28  Jim Meyering  <meyering@redhat.com>
21750
21751         useless-if-before-free: recognize more variants
21752         * build-aux/useless-if-before-free: Also recognize e.g.,
21753         if (NULL != p) free (p);
21754
21755 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21756
21757         test-getaddrinfo: skip (don't fail) this test when there's no network
21758         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21759         on the presumption that it means you lack network access.
21760
21761 2009-01-26  Jim Meyering  <meyering@redhat.com>
21762
21763         fflush: avoid warnings on modern systems
21764         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21765         pos and result, into scopes where they're used.
21766
21767 2009-01-26  Eric Blake  <ebb9@byu.net>
21768
21769         Silence warning reintroduced by recent extensions patch.
21770         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21771         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21772         autoconf.
21773
21774         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21775         * m4/00gnulib.m4: New file.
21776         * gnulib-tool (func_get_filelist): Always use it.
21777         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21778         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21779
21780 2009-01-25  Bruno Haible  <bruno@clisp.org>
21781
21782         Make test-quotearg work on MacOS X and AIX.
21783         * tests/test-quotearg.sh: New file.
21784         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21785         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21786         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21787         include <libintl.h>.
21788         (fake_locale): Remove variable.
21789         (gettext, dgettext, dcgettext): Remove functions.
21790         (main): Instead of setting a fake locale, set a real locale. Call
21791         textdomain and bindtextdomain.
21792         * modules/quotearg-tests (Files): Add the new files.
21793         (Depends-on): Add gettext, setenv, unsetenv.
21794         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21795         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21796         Augment TESTS_ENVIRONMENT.
21797
21798 2009-01-25  Bruno Haible  <bruno@clisp.org>
21799
21800         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21801         fr_FR.ISO8859-1 locale on MacOS X.
21802         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21803         ja_JP.eucJP locale on MacOS X.
21804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21805         zh_CN.GB18030 locale on MacOS X.
21806
21807 2009-01-25  Bruno Haible  <bruno@clisp.org>
21808
21809         Avoid link errors on MacOS X 10.3.
21810         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21811         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21812
21813 2009-01-25  Bruno Haible  <bruno@clisp.org>
21814
21815         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21816         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21817         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21818         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21819         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21820         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21821         posix_spawnattr_init, posix_spawnattr_setsigmask,
21822         posix_spawnattr_setflags, posix_spawnattr_destroy.
21823
21824         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21825         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21826         * modules/execute (Files): Remove m4/posix_spawn.m4.
21827         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21828         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21829         posix_spawnattr_init, posix_spawnattr_setsigmask,
21830         posix_spawnattr_setflags, posix_spawnattr_destroy.
21831
21832 2009-01-25  Bruno Haible  <bruno@clisp.org>
21833
21834         * lib/glthread/threadlib.c: Include <stdlib.h>.
21835
21836 2009-01-25  Bruno Haible  <bruno@clisp.org>
21837
21838         * lib/glthread/threadlib.c (dummy): New declaration.
21839
21840 2009-01-25  Bruno Haible  <bruno@clisp.org>
21841
21842         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21843         multibyte characters also for the GB18030 encoding. Don't crash when
21844         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21845
21846 2009-01-25  Bruno Haible  <bruno@clisp.org>
21847
21848         Avoid redefining 'struct random_data' on OSF/1 5.1.
21849         * lib/stdlib.in.h: Include <random.h> if it exists.
21850         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21851         HAVE_RANDOM_H. Include <random.h> when testing whether
21852         'struct random_data' exists.
21853         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21854
21855 2009-01-25  Bruno Haible  <bruno@clisp.org>
21856
21857         Don't install charset.alias on MacOS X >= 10.3.
21858         * lib/localcharset.c (DARWIN7): New macro.
21859         (get_charset_aliases): Hardcode the result for Darwin7.
21860         * modules/localcharset (install-exec-local): Don't install
21861         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21862
21863 2009-01-25  Bruno Haible  <bruno@clisp.org>
21864
21865         Don't install charset.alias on mingw and Cygwin.
21866         * modules/localcharset (install-exec-local): Don't install
21867         charset.alias on mingw and Cygwin, if the file does not yet exist.
21868         The result for these platforms is hardcoded in localcharset.c.
21869
21870 2009-01-25  Bruno Haible  <bruno@clisp.org>
21871
21872         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21874         before requiring AC_USE_SYSTEM_EXTENSIONS.
21875
21876 2009-01-25  Jim Meyering  <meyering@redhat.com>
21877
21878         c-strtod: avoid warnings
21879         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21880         "assignment discards qualifiers from pointer target type" warnings.
21881
21882 2009-01-24  Bruno Haible  <bruno@clisp.org>
21883
21884         Add support for non-UTF-8 locales on MacOS X.
21885         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21886         canonical encodings. For Darwin 7 and newer, don't map traditional
21887         encodings to UTF-8.
21888         Reported by Vincent Lefevre <vincent@vinc17.org>
21889         at <http://savannah.gnu.org/bugs/?25235>.
21890
21891 2009-01-24  Bruno Haible  <bruno@clisp.org>
21892
21893         * doc/gnulib.texi (Obsolete modules): New section.
21894         Reported by Mike Frysinger <vapier@gentoo.org>.
21895
21896 2009-01-24  Bruno Haible  <bruno@clisp.org>
21897
21898         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21899         (%.dvi): New rule.
21900
21901 2009-01-24  Bruno Haible  <bruno@clisp.org>
21902
21903         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21904         Reported by Eric Blake.
21905
21906 2009-01-24  Bruno Haible  <bruno@clisp.org>
21907
21908         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21909         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21910         Reported by Gary V. Vaughan <gary@gnu.org>.
21911
21912 2009-01-24  Bruno Haible  <bruno@clisp.org>
21913
21914         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21915
21916 2009-01-23  Bruno Haible  <bruno@clisp.org>
21917
21918         Make c-strtod, c-strtold usable in libraries.
21919         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21920         (C_STRTOD): Call strdup instead of xstrdup.
21921         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21922         * modules/c-strtold (Depends-on): Likewise.
21923         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21924         * NEWS: Mention the change.
21925         Reported by Michael Gold <mgold@ncf.ca>.
21926
21927 2009-01-23  Jim Meyering  <meyering@redhat.com>
21928
21929         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21930         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21931         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21932
21933 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21934
21935         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21936         GNU CoreUtils.
21937         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21938         * modules/version-etc (Description): Update.
21939
21940 2009-01-22  Bruno Haible  <bruno@clisp.org>
21941
21942         Cache the C locale object.
21943         * lib/c-strtod.c (c_locale_cache): New variable.
21944         (c_locale): New function.
21945         (C_STRTOD): Use it, and don't call freelocale.
21946         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21947         Suggested by Paolo Bonzini.
21948
21949 2009-01-21  Bruno Haible  <bruno@clisp.org>
21950
21951         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21952         conditions other than overflow.
21953
21954 2009-01-21  Bruno Haible  <bruno@clisp.org>
21955
21956         * lib/c-strtod.c: Include errno.h.
21957         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21958         value from STRTOD_L and STRTOD.
21959
21960 2009-01-21  Bruno Haible  <bruno@clisp.org>
21961         and Jim Meyering  <meyering@redhat.com>
21962
21963         nanosleep: skip configure test (fail it) for apple universal builds
21964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21965         universal builds, assume that nanosleep does not work.
21966         * modules/nanosleep (Depends-on): Add multiarch.
21967
21968         mktime: skip configure test (fail it) for apple universal builds
21969         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21970         universal builds, assume that mktime does not work.
21971         * modules/mktime (Depends-on): Add multiarch.
21972
21973 2009-01-21  Eric Blake  <ebb9@byu.net>
21974
21975         multiarch: avoid expand-before-require warning
21976         * modules/multiarch (configure.ac): Require, rather than expand,
21977         gl_MULTIARCH.
21978         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21979         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21980         enforce that all clients require it.  Partial reversion of
21981         2008-12-29 patch.
21982
21983         error: avoid expand-before-require warning
21984         * modules/errno (configure.ac): Require, rather than expand,
21985         gl_HEADER_ERRNO_H.
21986         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21987         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21988         enforce that all clients require it.
21989
21990         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21991         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21992         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21993         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21994
21995 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21996
21997         Revert:
21998         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21999
22000         regex: do not depend on obsolete modules.
22001         * modules/regex: Remove memcmp and memmove.
22002
22003 2009-01-20  Bruno Haible  <bruno@clisp.org>
22004
22005         Make the 'link' module link on Windows NT 4.
22006         * lib/link.c (_WIN32_WINNT): Don't define.
22007         (CreateHardLinkFuncType): New type.
22008         (CreateHardLinkFunc, initialized): New variables.
22009         (initialize): New function.
22010         (link): Invoke CreateHardLink indirectly through the function pointer.
22011
22012 2009-01-20  Bruno Haible  <bruno@clisp.org>
22013
22014         Fix compilation failure on mingw.
22015         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22016
22017 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22018
22019         * doc/c-strtod.texi: Mention a couple of restrictions.
22020
22021 2009-01-20  Jim Meyering  <meyering@redhat.com>
22022
22023         gettimeofday: move more declarations out of functions
22024         * lib/gettimeofday.c: Move extern declarations of tzset and
22025         gmtime out of containing functions.  Prompted by Bruno Haible.
22026
22027 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22028
22029         regex: do not depend on obsolete modules.
22030         * modules/regex: Remove memcmp and memmove.
22031
22032 2009-01-19  Bruno Haible  <bruno@clisp.org>
22033
22034         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22035         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22036         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22037         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22038         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22039
22040 2009-01-19  Bruno Haible  <bruno@clisp.org>
22041
22042         * tests/test-link.c: Include <errno.h>.
22043         (main): Exit with code 77 when a hard link cannot be created due to
22044         the file system.
22045         * tests/test-link.sh: Skip test when a hard link cannot be created due
22046         to the file system.
22047         Suggested by Eric Blake.
22048
22049 2009-01-19  Martin Lambers  <marlam@marlam.de>
22050
22051         * modules/link-tests: New file.
22052         * tests/test-link.sh: New file.
22053         * tests/test-link.c: New file.
22054
22055 2009-01-19  Eric Blake  <ebb9@byu.net>
22056
22057         doc: mention another function added in cygwin 1.7.0
22058         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22059         Another new function in cygwin 1.7.
22060
22061 2009-01-19  Bruno Haible  <bruno@clisp.org>
22062
22063         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22064         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22065         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22066         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22067         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22068         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22069         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22070         * m4/md4.m4 (gl_MD4): Likewise.
22071         * m4/md5.m4 (gl_MD5): Likewise.
22072         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22073         * m4/sha1.m4 (gl_SHA1): Likewise.
22074         * m4/sha256.m4 (gl_SHA256): Likewise.
22075         * m4/sha512.m4 (gl_SHA512): Likewise.
22076
22077 2009-01-19  Bruno Haible  <bruno@clisp.org>
22078
22079         * modules/uniname/uniname-tests (Depends-on): Add progname.
22080         * tests/uniname/test-uninames.c: Include progname.h.
22081         (main): Call set_program_name.
22082
22083         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22084         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22085         (main): Call set_program_name.
22086
22087         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22088         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22089         (main): Call set_program_name.
22090
22091         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22092         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22093         (main): Call set_program_name.
22094
22095         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22096         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22097         (main): Call set_program_name.
22098
22099         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22100         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22101         (main): Call set_program_name.
22102
22103         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22104         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22105         (main): Call set_program_name.
22106
22107         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22108         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22109         (main): Call set_program_name.
22110
22111         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22112         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22113         (main): Call set_program_name.
22114
22115 2009-01-19  Eric Blake  <ebb9@byu.net>
22116
22117         test-unistd: test previous patch
22118         * tests/test-unistd.c: Test *_FILENO macros.
22119
22120         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22121         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22122         Guarantee a definition.
22123         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22124         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22125         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22126         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22127         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22128         Likewise.
22129         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22130         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22131         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22132         Likewise.
22133         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22134         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22135         (STDERR_FILENO): Likewise.
22136         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22137         (STDERR_FILENO): Likewise.
22138         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22139         (STDERR_FILENO): Likewise.
22140         Reported by Elbert Pol.
22141
22142 2009-01-19  Eric Blake  <ebb9@byu.net>
22143
22144         doc: mention more functions added in cygwin 1.7.0
22145         * doc/posix-functions/abort.texi (abort): Update wording related
22146         to cygwin.
22147         * doc/posix-functions/daylight.texi (daylight): Likewise.
22148         * doc/posix-functions/optarg.texi (optarg): Likewise.
22149         * doc/posix-functions/optarg.texi (opterr): Likewise.
22150         * doc/posix-functions/optarg.texi (optind): Likewise.
22151         * doc/posix-functions/optarg.texi (optopt): Likewise.
22152         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22153         worked in 1.5.x, and was withdrawn in 1.7.
22154         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22155         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22156         cygwin versions.
22157         * doc/posix-functions/perror.texi (perror): Likewise.
22158         * doc/posix-functions/printf.texi (printf): Likewise.
22159         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22160         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22161         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22162         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22163         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22164         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22165         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22166         Likewise.
22167         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22168         Likewise.
22169         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22170         this function.
22171         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22172         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22173         Likewise.
22174         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22175         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22176         * doc/posix-functions/confstr.texi (confstr): Likewise.
22177         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22178         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22179         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22180         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22181         * doc/posix-functions/fputws.texi (fputws): Likewise.
22182         * doc/posix-functions/fwide.texi (fwide): Likewise.
22183         * doc/posix-functions/getwc.texi (getwc): Likewise.
22184         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22185         * doc/posix-functions/putwc.texi (putwc): Likewise.
22186         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22187         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22188         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22189         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22190         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22191         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22192         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22193         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22194         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22195         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22196         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22197
22198 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22199
22200         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22201         * lib/ioctl.c: Include <sys/ioctl.h>.
22202
22203 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22204
22205         * modules/getdate-tests (Depends-on): Add progname.
22206         * tests/test-getdate.c: Use progname module, to avoid link errors
22207         on non-glibc systems.
22208
22209 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22210
22211         * modules/filenamecat-tests (Depends-on): Add progname.
22212         * modules/fstrcmp-tests (Depends-on): Likewise.
22213
22214         * tests/test-filenamecat.c: Use progname module, to avoid link
22215         errors on non-glibc systems.
22216         * tests/test-fstrcmp.c: Likewise.
22217
22218 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22219
22220         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22221         * lib/gettimeofday.c: Move extern declaration out of function.
22222
22223 2009-01-18  Bruno Haible  <bruno@clisp.org>
22224
22225         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22226         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22227         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22228
22229 2009-01-18  Bruno Haible  <bruno@clisp.org>
22230
22231         * lib/strftime.c (MEMPCPY): Remove unused macro.
22232         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22233
22234 2009-01-18  Martin Lambers  <marlam@marlam.de>
22235
22236         New module 'link'.
22237         * lib/unistd.in.h (link): New declaration.
22238         * lib/link.c: New file.
22239         * m4/link.m4: New file.
22240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22241         HAVE_LINK.
22242         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22243         * modules/link: New file.
22244         * doc/posix-functions/link.texi: Mention the new module.
22245
22246 2009-01-18  Bruno Haible  <bruno@clisp.org>
22247
22248         * tests/test-avltree_list.c (main): Call set_program_name.
22249         * tests/test-avltree_oset.c (main): Likewise.
22250         * tests/test-obstack-printf.c: Include progname.h.
22251         (main): Call set_program_name.
22252         * tests/test-quotearg.c: Include progname.h.
22253         (main): Call set_program_name.
22254         * tests/test-xmemdup0.c: Include progname.h.
22255         (main): Call set_program_name.
22256
22257 2009-01-18  Bruno Haible  <bruno@clisp.org>
22258
22259         New module 'alphasort'.
22260         * lib/dirent.in.h (alphasort): New declaration.
22261         * lib/alphasort.c: New file, from glibc with modifications.
22262         * m4/alphasort.m4: New file.
22263         * modules/alphasort: New file.
22264         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22265         HAVE_ALPHASORT.
22266         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22267         HAVE_ALPHASORT.
22268         * doc/posix-functions/alphasort.texi: Mention the new module and the
22269         portability problems.
22270
22271 2009-01-18  Bruno Haible  <bruno@clisp.org>
22272
22273         New module 'scandir'.
22274         * lib/dirent.in.h (scandir): New declaration.
22275         * lib/scandir.c: New file, from glibc with modifications.
22276         * m4/scandir.m4: New file.
22277         * modules/scandir: New file.
22278         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22279         HAVE_SCANDIR.
22280         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22281         HAVE_SCANDIR.
22282         * doc/posix-functions/scandir.texi: Mention the new module and the
22283         portability problems.
22284
22285 2009-01-17  Bruno Haible  <bruno@clisp.org>
22286
22287         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22288         Update documentation.
22289         (func_remove_suffix): Escape all dots in the suffix. Update
22290         documentation.
22291         (func_filter_filelist): Update documentation.
22292         Reported by Ralf Wildenhues.
22293
22294 2009-01-17  Bruno Haible  <bruno@clisp.org>
22295
22296         * modules/dprintf-posix-tests: New file.
22297         * tests/test-dprintf-posix.sh: New file.
22298         * tests/test-dprintf-posix.c: New file.
22299
22300         New modules 'dprintf', 'dprintf-posix'.
22301         * lib/stdio.in.h (dprintf): New declaration.
22302         * lib/dprintf.c: New file.
22303         * m4/dprintf.m4: New file.
22304         * m4/dprintf-posix.m4: New file.
22305         * modules/dprintf: New file.
22306         * modules/dprintf-posix: New file.
22307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22308         HAVE_DPRINTF, REPLACE_DPRINTF.
22309         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22310         HAVE_DPRINTF, REPLACE_DPRINTF.
22311         * doc/posix-functions/dprintf.texi: Mention the new modules.
22312
22313 2009-01-17  Bruno Haible  <bruno@clisp.org>
22314
22315         * modules/vdprintf-posix-tests: New file.
22316         * tests/test-vdprintf-posix.sh: New file.
22317         * tests/test-vdprintf-posix.c: New file.
22318
22319         New modules 'vdprintf', 'vdprintf-posix'.
22320         * lib/stdio.in.h (vdprintf): New declaration.
22321         * lib/vdprintf.c: New file.
22322         * m4/vdprintf.m4: New file.
22323         * m4/vdprintf-posix.m4: New file.
22324         * modules/vdprintf: New file.
22325         * modules/vdprintf-posix: New file.
22326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22327         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22328         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22329         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22330         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22331
22332 2009-01-17  Bruno Haible  <bruno@clisp.org>
22333
22334         Fix replacement of fopen on mingw.
22335         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22336         mingw.
22337
22338 2009-01-17  Bruno Haible  <bruno@clisp.org>
22339
22340         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22341         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22342
22343 2009-01-17  Bruno Haible  <bruno@clisp.org>
22344
22345         Avoid test-fflush2.sh failure on mingw.
22346         * tests/test-fflush2.c: Include binary-io.h.
22347         (main): Put standard input into binary mode.
22348         * modules/fflush-tests (Depends-on): Add binary-io.
22349
22350 2009-01-17  Bruno Haible  <bruno@clisp.org>
22351
22352         * lib/wchar.in.h: In another particular situation, include only the
22353         system's <wchar.h> file.
22354         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22355         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22356         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22357
22358 2009-01-17  Bruno Haible  <bruno@clisp.org>
22359
22360         Support for stripping executables in --enable-relocatable.
22361         * build-aux/install-reloc: Expect one more argument, or an environment
22362         variable RELOC_STRIP_PROG. If set, strip the destination program and
22363         its wrapper.
22364         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22365         RELOC_STRIP_PROG.
22366         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22367         to set RELOCATABLE_STRIP.
22368         * NEWS: Mention the new Makefile requirement.
22369
22370 2009-01-17  Bruno Haible  <bruno@clisp.org>
22371
22372         * build-aux/install-reloc: Remove debugging information left over by
22373         C compiler on MacOS X.
22374
22375 2009-01-17  Bruno Haible  <bruno@clisp.org>
22376
22377         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22378         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22379         _NSGetExecutablePath.
22380
22381 2009-01-16  Jim Meyering  <meyering@redhat.com>
22382
22383         strerror: avoid warnings about discarding "const"
22384         * lib/strerror.c (rpl_strerror): Instead of returning a const
22385         string from each and every "case", use a variable, and add a single
22386         cast after the switch.
22387
22388 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22389
22390         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22391
22392 2009-01-16  Bruno Haible  <bruno@clisp.org>
22393
22394         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22395         array initializer syntax that also works in C++ mode.
22396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22397
22398 2009-01-16  Jim Meyering  <meyering@redhat.com>
22399
22400         poll: suppress a warning
22401         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22402         to ignore "...unsigned expression < 0 is always false" warnings.
22403
22404 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22405
22406         poll: remove declarations of unused variables
22407         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22408         sockbuf and optlen.
22409
22410 2009-01-15  Bruno Haible  <bruno@clisp.org>
22411
22412         Make fflush-after-ungetc POSIX compliant on BSD systems.
22413         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22414         (clear_ungetc_buffer): Implement also for other systems.
22415         (rpl_fflush): On glibc systems, invoke
22416         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22417         clear_ungetc_buffer after fetching the stream's position, not before.
22418
22419 2009-01-15  Bruno Haible  <bruno@clisp.org>
22420
22421         Make fflush-after-ungetc POSIX compliant on glibc systems.
22422         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22423         after ungetc.
22424         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22425         (rpl_fflush): On glibc systems, simply call the system's fflush
22426         function after clearing the ungetc buffer.
22427         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22428         Instead, lseek only to the end of file, then use the system's fseeko
22429         for the rest. On glibc systems, reset the EOF indicator bit.
22430
22431 2009-01-15  Jim Meyering  <meyering@redhat.com>
22432
22433         openmp.m4: revert quote-adding change, for portability to older autoconf
22434         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22435         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22436         Simon Josefsson noticed the problem when using autoconf-2.61.
22437
22438 2009-01-15  Bruno Haible  <bruno@clisp.org>
22439
22440         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22441         * tests/test-fflush2.c (ASSERT): Always fail.
22442         (main): Add two tests for fflush() after ungetc(), taking into account
22443         the Austin Group's clarification.
22444         Suggested by Eric Blake.
22445
22446 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22447
22448         mktime.m4: remove K&R-style function prototypes
22449         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22450         for the Sun C++ compiler.
22451
22452 2009-01-14  Bruno Haible  <bruno@clisp.org>
22453
22454         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22455         while including <wchar.h>.
22456         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22457         the system's <wchar.h> file.
22458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22459
22460 2009-01-14  Bruno Haible  <bruno@clisp.org>
22461
22462         * m4/csharp.m4: Don't mention gettext on the serial number line.
22463         * m4/csharpexec.m4: Likewise.
22464         * m4/eaccess.m4: Likewise.
22465         * m4/javaexec.m4: Likewise.
22466         * m4/sig_atomic_t.m4: Likewise.
22467         * m4/tmpdir.m4: Likewise.
22468         * m4/intldir.m4: Bump gettext version.
22469         * m4/lib-ld.m4: Likewise.
22470
22471 2009-01-14  Bruno Haible  <bruno@clisp.org>
22472
22473         * lib/progname.c (set_program_name): Add more comments.
22474         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22475
22476 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22477
22478         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22479         were sys/stat.h does not define it.
22480
22481 2009-01-14  Jim Meyering  <meyering@redhat.com>
22482
22483         many *.m4 files: improve m4 quoting
22484         99% of this change was performed by running the following commands:
22485         git ls-files | grep '\.m4$' | xargs perl -pi \
22486           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22487           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22488           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22489           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22490         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22491         The remainder were to add Copyright dates, increment serial numbers,
22492         undo some changes in comments, exclude m4/intl.m4, and add quotes
22493         around the "1" in ",1" where the unusual spacing prohibited the
22494         above regexps from doing the job.  For more details, see
22495         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22496         * m4/acl.m4: Modified.
22497         * m4/afs.m4: Likewise.
22498         * m4/alloca.m4: Likewise.
22499         * m4/argp.m4: Likewise.
22500         * m4/argz.m4: Likewise.
22501         * m4/atexit.m4: Likewise.
22502         * m4/bison-i18n.m4: Likewise.
22503         * m4/bison.m4: Likewise.
22504         * m4/byteswap.m4: Likewise.
22505         * m4/c-stack.m4: Likewise.
22506         * m4/c-strtod.m4: Likewise.
22507         * m4/calloc.m4: Likewise.
22508         * m4/canonicalize-lgpl.m4: Likewise.
22509         * m4/chown.m4: Likewise.
22510         * m4/clock_time.m4: Likewise.
22511         * m4/codeset.m4: Likewise.
22512         * m4/copy-file.m4: Likewise.
22513         * m4/csharp.m4: Likewise.
22514         * m4/csharpcomp.m4: Likewise.
22515         * m4/csharpexec.m4: Likewise.
22516         * m4/d-ino.m4: Likewise.
22517         * m4/d-type.m4: Likewise.
22518         * m4/dirfd.m4: Likewise.
22519         * m4/double-slash-root.m4: Likewise.
22520         * m4/eaccess.m4: Likewise.
22521         * m4/eealloc.m4: Likewise.
22522         * m4/environ.m4: Likewise.
22523         * m4/errno_h.m4: Likewise.
22524         * m4/euidaccess.m4: Likewise.
22525         * m4/execute.m4: Likewise.
22526         * m4/fatal-signal.m4: Likewise.
22527         * m4/fchdir.m4: Likewise.
22528         * m4/fcntl_h.m4: Likewise.
22529         * m4/fileblocks.m4: Likewise.
22530         * m4/filenamecat.m4: Likewise.
22531         * m4/findprog.m4: Likewise.
22532         * m4/flexmember.m4: Likewise.
22533         * m4/fnmatch.m4: Likewise.
22534         * m4/fopen.m4: Likewise.
22535         * m4/fpending.m4: Likewise.
22536         * m4/fprintf-posix.m4: Likewise.
22537         * m4/free.m4: Likewise.
22538         * m4/frexp.m4: Likewise.
22539         * m4/frexpl.m4: Likewise.
22540         * m4/fsusage.m4: Likewise.
22541         * m4/ftruncate.m4: Likewise.
22542         * m4/gc-camellia.m4: Likewise.
22543         * m4/gc-random.m4: Likewise.
22544         * m4/gc.m4: Likewise.
22545         * m4/getaddrinfo.m4: Likewise.
22546         * m4/getcwd-abort-bug.m4: Likewise.
22547         * m4/getcwd-path-max.m4: Likewise.
22548         * m4/getdate.m4: Likewise.
22549         * m4/getdomainname.m4: Likewise.
22550         * m4/getgroups.m4: Likewise.
22551         * m4/gethostname.m4: Likewise.
22552         * m4/gethrxtime.m4: Likewise.
22553         * m4/getline.m4: Likewise.
22554         * m4/getloadavg.m4: Likewise.
22555         * m4/getndelim2.m4: Likewise.
22556         * m4/getpass.m4: Likewise.
22557         * m4/gettext.m4: Likewise.
22558         * m4/gettime.m4: Likewise.
22559         * m4/gettimeofday.m4: Likewise.
22560         * m4/gnulib-common.m4: Likewise.
22561         * m4/group-member.m4: Likewise.
22562         * m4/host-os.m4: Likewise.
22563         * m4/iconv.m4: Likewise.
22564         * m4/iconv_open.m4: Likewise.
22565         * m4/inet_ntop.m4: Likewise.
22566         * m4/inet_pton.m4: Likewise.
22567         * m4/inline.m4: Likewise.
22568         * m4/intldir.m4: Likewise.
22569         * m4/intlmacosx.m4: Likewise.
22570         * m4/intmax.m4: Likewise.
22571         * m4/intmax_t.m4: Likewise.
22572         * m4/inttypes.m4: Likewise.
22573         * m4/inttypes_h.m4: Likewise.
22574         * m4/inttypes-pri.m4: Likewise.
22575         * m4/isapipe.m4: Likewise.
22576         * m4/isnand.m4: Likewise.
22577         * m4/isnanf.m4: Likewise.
22578         * m4/isnanl.m4: Likewise.
22579         * m4/javacomp.m4: Likewise.
22580         * m4/javaexec.m4: Likewise.
22581         * m4/jm-winsz1.m4: Likewise.
22582         * m4/jm-winsz2.m4: Likewise.
22583         * m4/lchown.m4: Likewise.
22584         * m4/lcmessage.m4: Likewise.
22585         * m4/ldexpl.m4: Likewise.
22586         * m4/lib-ld.m4: Likewise.
22587         * m4/lib-link.m4: Likewise.
22588         * m4/libsigsegv.m4: Likewise.
22589         * m4/link-follow.m4: Likewise.
22590         * m4/localcharset.m4: Likewise.
22591         * m4/locale-fr.m4: Likewise.
22592         * m4/locale-ja.m4: Likewise.
22593         * m4/locale-tr.m4: Likewise.
22594         * m4/locale-zh.m4: Likewise.
22595         * m4/lock.m4: Likewise.
22596         * m4/longlong.m4: Likewise.
22597         * m4/ls-mntd-fs.m4: Likewise.
22598         * m4/lstat.m4: Likewise.
22599         * m4/malloc.m4: Likewise.
22600         * m4/mathl.m4: Likewise.
22601         * m4/mbrtowc.m4: Likewise.
22602         * m4/mbstate_t.m4: Likewise.
22603         * m4/mbswidth.m4: Likewise.
22604         * m4/memchr.m4: Likewise.
22605         * m4/memcmp.m4: Likewise.
22606         * m4/memcpy.m4: Likewise.
22607         * m4/memmem.m4: Likewise.
22608         * m4/memmove.m4: Likewise.
22609         * m4/mempcpy.m4: Likewise.
22610         * m4/memrchr.m4: Likewise.
22611         * m4/memset.m4: Likewise.
22612         * m4/minmax.m4: Likewise.
22613         * m4/mkdir-slash.m4: Likewise.
22614         * m4/mkdtemp.m4: Likewise.
22615         * m4/mktime.m4: Likewise.
22616         * m4/mmap-anon.m4: Likewise.
22617         * m4/mountlist.m4: Likewise.
22618         * m4/nanosleep.m4: Likewise.
22619         * m4/nls.m4: Likewise.
22620         * m4/nocrash.m4: Likewise.
22621         * m4/open.m4: Likewise.
22622         * m4/openat.m4: Likewise.
22623         * m4/openmp.m4: Likewise.
22624         * m4/pathmax.m4: Likewise.
22625         * m4/perl.m4: Likewise.
22626         * m4/physmem.m4: Likewise.
22627         * m4/pipe.m4: Likewise.
22628         * m4/po.m4: Likewise.
22629         * m4/poll.m4: Likewise.
22630         * m4/posixtm.m4: Likewise.
22631         * m4/posixver.m4: Likewise.
22632         * m4/printf-frexp.m4: Likewise.
22633         * m4/printf-frexpl.m4: Likewise.
22634         * m4/printf-posix.m4: Likewise.
22635         * m4/printf-posix-rpl.m4: Likewise.
22636         * m4/printf.m4: Likewise.
22637         * m4/progtest.m4: Likewise.
22638         * m4/putenv.m4: Likewise.
22639         * m4/readline.m4: Likewise.
22640         * m4/readlink.m4: Likewise.
22641         * m4/readutmp.m4: Likewise.
22642         * m4/realloc.m4: Likewise.
22643         * m4/regex.m4: Likewise.
22644         * m4/relocatable.m4: Likewise.
22645         * m4/relocatable-lib.m4: Likewise.
22646         * m4/rename-dest-slash.m4: Likewise.
22647         * m4/rename.m4: Likewise.
22648         * m4/rmdir-errno.m4: Likewise.
22649         * m4/rmdir.m4: Likewise.
22650         * m4/roundf.m4: Likewise.
22651         * m4/roundl.m4: Likewise.
22652         * m4/rpmatch.m4: Likewise.
22653         * m4/save-cwd.m4: Likewise.
22654         * m4/selinux-selinux-h.m4: Likewise.
22655         * m4/setenv.m4: Likewise.
22656         * m4/settime.m4: Likewise.
22657         * m4/sig2str.m4: Likewise.
22658         * m4/sig_atomic_t.m4: Likewise.
22659         * m4/signalblocking.m4: Likewise.
22660         * m4/signbit.m4: Likewise.
22661         * m4/sigpipe.m4: Likewise.
22662         * m4/sockets.m4: Likewise.
22663         * m4/sockpfaf.m4: Likewise.
22664         * m4/st_dm_mode.m4: Likewise.
22665         * m4/stat-time.m4: Likewise.
22666         * m4/stdbool.m4: Likewise.
22667         * m4/stdint.m4: Likewise.
22668         * m4/stdint_h.m4: Likewise.
22669         * m4/stpcpy.m4: Likewise.
22670         * m4/stpncpy.m4: Likewise.
22671         * m4/strcase.m4: Likewise.
22672         * m4/strchrnul.m4: Likewise.
22673         * m4/strcspn.m4: Likewise.
22674         * m4/strdup.m4: Likewise.
22675         * m4/strftime.m4: Likewise.
22676         * m4/strndup.m4: Likewise.
22677         * m4/strnlen.m4: Likewise.
22678         * m4/strpbrk.m4: Likewise.
22679         * m4/strptime.m4: Likewise.
22680         * m4/strsep.m4: Likewise.
22681         * m4/strtod.m4: Likewise.
22682         * m4/strtoimax.m4: Likewise.
22683         * m4/strtok_r.m4: Likewise.
22684         * m4/strtol.m4: Likewise.
22685         * m4/strtoll.m4: Likewise.
22686         * m4/strtoul.m4: Likewise.
22687         * m4/strtoull.m4: Likewise.
22688         * m4/strtoumax.m4: Likewise.
22689         * m4/strverscmp.m4: Likewise.
22690         * m4/threadlib.m4: Likewise.
22691         * m4/timegm.m4: Likewise.
22692         * m4/tm_gmtoff.m4: Likewise.
22693         * m4/tmpdir.m4: Likewise.
22694         * m4/tmpfile.m4: Likewise.
22695         * m4/tzset.m4: Likewise.
22696         * m4/uintmax_t.m4: Likewise.
22697         * m4/unlinkdir.m4: Likewise.
22698         * m4/unlocked-io.m4: Likewise.
22699         * m4/uptime.m4: Likewise.
22700         * m4/userspec.m4: Likewise.
22701         * m4/utimbuf.m4: Likewise.
22702         * m4/utime.m4: Likewise.
22703         * m4/utimes-null.m4: Likewise.
22704         * m4/utimes.m4: Likewise.
22705         * m4/vararrays.m4: Likewise.
22706         * m4/vasnprintf.m4: Likewise.
22707         * m4/vfprintf-posix.m4: Likewise.
22708         * m4/vprintf-posix.m4: Likewise.
22709         * m4/wait-process.m4: Likewise.
22710         * m4/wchar_t.m4: Likewise.
22711         * m4/wint_t.m4: Likewise.
22712         * m4/write-any-file.m4: Likewise.
22713         * m4/yield.m4: Likewise.
22714
22715 2009-01-13  Bruno Haible  <bruno@clisp.org>
22716
22717         Avoid test-copy-file.sh failures when ACL support insufficient.
22718         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22719         TESTS_ENVIRONMENT.
22720         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22721         Reported by Jim Meyering.
22722
22723 2009-01-13  Bruno Haible  <bruno@clisp.org>
22724
22725         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22726         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22727         * modules/unistdio/u8-printf-parse (Files): Likewise.
22728         * modules/unistdio/u32-printf-parse (Files): Likewise.
22729         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22730
22731 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22732
22733         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22734         and m4/inttypes_h.m4 too.
22735
22736 2009-01-12  Eric Blake  <ebb9@byu.net>
22737
22738         tests: IRIX 6.2 cc can't compile -0.0 into .data
22739         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22740         rather than at compile-time.
22741         * tests/test-floorl.c (minus_zero): Likewise.
22742         * tests/test-frexpl.c (minus_zero): Likewise.
22743         * tests/test-isnan.c (minus_zerol): Likewise.
22744         * tests/test-isnanl.h (minus_zero): Likewise.
22745         * tests/test-ldexpl.c (minus_zero): Likewise.
22746         * tests/test-roundl.c (minus_zero): Likewise.
22747         * tests/test-signbit.c (minus_zerol): Likewise.
22748         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22749         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22750         * tests/test-truncl.c (minus_zero): Likewise.
22751         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22752         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22753         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22754
22755 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22756
22757         regex: fix glibc bug 9697
22758         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22759         handling.
22760
22761 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22762
22763         regex: fix glibc bug 697
22764         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22765         being NULL also if there are no backreferences.
22766
22767 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22768
22769         regex: merge glibc changes
22770         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22771         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22772         re_string_skip_chars, re_string_reconstruct): Likewise.
22773         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22774
22775 2009-01-07  Jim Meyering  <meyering@redhat.com>
22776
22777         poll: filter through cppi
22778         * lib/poll.c: Indent cpp directives to reflect nesting.
22779
22780 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22781
22782         poll: don't return uninitialized
22783         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22784
22785 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22786
22787         avoid compile failure on AIX 6.1
22788         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22789         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22790
22791 2009-01-04  Jim Meyering  <meyering@redhat.com>
22792
22793         remove duplicate inclusion of <stdio.h>
22794         * tests/test-fprintf-posix.c: Likewise.
22795         * tests/test-printf-posix.c: Likewise.
22796         * tests/test-snprintf-posix.c: Likewise.
22797         * tests/test-sprintf-posix.c: Likewise.
22798         * tests/test-vasprintf-posix.c: Likewise.
22799         * tests/test-vfprintf-posix.c: Likewise.
22800         * tests/test-vprintf-posix.c: Likewise.
22801         * tests/test-vsnprintf-posix.c: Likewise.
22802         * tests/test-vsprintf-posix.c: Likewise.
22803
22804 2009-01-03  Jim Meyering  <meyering@redhat.com>
22805
22806         gnulib-tool: fix sed-based filtering
22807         * gnulib-tool (func_filter_filelist): Remove extra backslash
22808         in sed_fff_filter definition.
22809
22810 2009-01-02  Jim Meyering  <meyering@redhat.com>
22811
22812         strftime: avoid compilation failure on Solaris 2.6
22813         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22814         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22815         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22816         be available.  Reported by Tom G. Christensen.  Details in
22817         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22818
22819 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22820             Bruno Haible  <bruno@clisp.org>
22821
22822         Speed up gnulib-tool by doing more string processing through shell
22823         built-ins.
22824         * gnulib-tool (fast_func_append): New variable.
22825         (func_remove_prefix, func_remove_suffix): New functions.
22826         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22827         (func_filter_filelist): New function.
22828         (func_get_dependencies): Use func_remove_suffix instead of sed.
22829         (func_get_automake_snippet): Use func_filter_filelist instead of a
22830         subshell and sed invocation.
22831
22832 2009-01-01  Bruno Haible  <bruno@clisp.org>
22833
22834         Fix a security bug.
22835         * gnulib-tool (func_import, import, update): Don't allow the characters
22836         '"', '$', '`', '\' in macro arguments that become part of commands that
22837         are evaluated.
22838
22839 2009-01-01  Bruno Haible  <bruno@clisp.org>
22840
22841         * gnulib-tool (func_reset_sigpipe): Add more comments.
22842
22843 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22844
22845         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22846         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22847         already know the answer.
22848
22849 2009-01-01  Jim Meyering  <meyering@redhat.com>
22850
22851         * lib/version-etc.c (version_etc_va): Update copyright year.
22852
22853 2008-12-30  Bruno Haible  <bruno@clisp.org>
22854
22855         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22856         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22857         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22858
22859 2008-12-29  Eric Blake  <ebb9@byu.net>
22860
22861         multiarch: avoid autoconf AC_REQUIRE bug
22862         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22863         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22864         2.63 and older.
22865         Reported by Bruno Haible, and analyzed in
22866         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22867
22868 2008-12-29  Bruno Haible  <bruno@clisp.org>
22869
22870         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22871         files in subdirectories correctly.
22872         Reported by Ralf Wildenhues.
22873
22874 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22875
22876         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22877         rather than 'join FILE -', for Solaris join.
22878
22879 2008-12-29  Bruno Haible  <bruno@clisp.org>
22880
22881         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22882         quoting.
22883         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22884         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22885         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22886         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22887         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22888         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22889         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22890         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22891         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22892         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22893         * m4/nls.m4 (AM_NLS): Likewise.
22894         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22895         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22896         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22897         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22898         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22899         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22900         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22901         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22902         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22903         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22904         * m4/xsize.m4 (gl_XSIZE): Likewise.
22905         Suggested by Jim Meyering.
22906
22907 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22908
22909         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22910         * lib/parse-duration.c: use a switch instead of cascading if's.
22911
22912 2008-12-29  Eric Blake  <ebb9@byu.net>
22913
22914         wchar.h: supply WEOF on Irix 5.3
22915         * lib/wchar.in.h (wint_t): Also supply WEOF.
22916         * lib/wctype.in.h (wint_t): Likewise.
22917         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22918         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22919         Reported by Tom G. Christensen.
22920
22921 2008-12-26  Bruno Haible  <bruno@clisp.org>
22922
22923         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22924         i486, i586, i686.
22925
22926 2008-12-26  Bruno Haible  <bruno@clisp.org>
22927
22928         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22929
22930 2008-12-26  Bruno Haible  <bruno@clisp.org>
22931
22932         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22933         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22934         not __STDC_CONSTANT_MACROS.
22935         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22936
22937 2008-12-25  Bruno Haible  <bruno@clisp.org>
22938
22939         Add support for universal builds to vasnprintf.
22940         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22941         universal builds, guess no.
22942         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22943         * modules/vasprintf-posix (Depends-on): Likewise.
22944         * modules/fprintf-posix (Depends-on): Likewise.
22945         * modules/vfprintf-posix (Depends-on): Likewise.
22946         * modules/snprintf-posix (Depends-on): Likewise.
22947         * modules/vsnprintf-posix (Depends-on): Likewise.
22948         * modules/sprintf-posix (Depends-on): Likewise.
22949         * modules/vsprintf-posix (Depends-on): Likewise.
22950         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22951         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22952         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22954         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22955         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22956         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22957
22958         Add support for universal builds to <inttypes.h>.
22959         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22960         _SCNu64_PREFIX): In Apple
22961         universal builds, define directly, using _LP64.
22962         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22963         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22964         * modules/inttypes (Depends-on): Add multiarch.
22965         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22966
22967         Add support for universal builds to <stdint.h>.
22968         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22969         universal builds, define directly, using _LP64.
22970         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22971         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22972         and size_t.
22973         * modules/stdint (Depends-on): Add multiarch.
22974         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22975
22976         New module 'multiarch'.
22977         * modules/multiarch: New file.
22978         * m4/multiarch.m4: New file.
22979
22980 2008-12-25  Bruno Haible  <bruno@clisp.org>
22981
22982         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22983
22984 2008-12-25  Bruno Haible  <bruno@clisp.org>
22985
22986         * modules/btowc (License): Relicense under LGPLv2+.
22987         * modules/mbsinit (License): Likewise.
22988         * modules/mbrtowc (License): Likewise.
22989         * modules/wcrtomb (License): Likewise.
22990         * modules/streq (License): Likewise.
22991         Reported by David Lutterkort <lutter@redhat.com>.
22992
22993 2008-12-23  Bruno Haible  <bruno@clisp.org>
22994
22995         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22996
22997 2008-12-23  Bruno Haible  <bruno@clisp.org>
22998
22999         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23001         GETADDRINFO_LIB, not in LIBS.
23002         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23003         * modules/canon-host (Link): Likewise.
23004         * NEWS: Mention the change.
23005         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23006         GETADDRINFO_LIB.
23007
23008 2008-12-22  Bruno Haible  <bruno@clisp.org>
23009
23010         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23011         * doc/posix-functions/iswalpha_l.texi: Likewise.
23012         * doc/posix-functions/iswblank_l.texi: Likewise.
23013         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23014         * doc/posix-functions/iswctype_l.texi: Likewise.
23015         * doc/posix-functions/iswdigit_l.texi: Likewise.
23016         * doc/posix-functions/iswgraph_l.texi: Likewise.
23017         * doc/posix-functions/iswlower_l.texi: Likewise.
23018         * doc/posix-functions/iswprint_l.texi: Likewise.
23019         * doc/posix-functions/iswpunct_l.texi: Likewise.
23020         * doc/posix-functions/iswspace_l.texi: Likewise.
23021         * doc/posix-functions/iswupper_l.texi: Likewise.
23022         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23023         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23024         * doc/posix-functions/open_wmemstream.texi: Likewise.
23025         * doc/posix-functions/swscanf.texi: Likewise.
23026         * doc/posix-functions/towctrans_l.texi: Likewise.
23027         * doc/posix-functions/towlower.texi: Likewise.
23028         * doc/posix-functions/towlower_l.texi: Likewise.
23029         * doc/posix-functions/towupper.texi: Likewise.
23030         * doc/posix-functions/towupper_l.texi: Likewise.
23031         * doc/posix-functions/vfwprintf.texi: Likewise.
23032         * doc/posix-functions/vfwscanf.texi: Likewise.
23033         * doc/posix-functions/vswscanf.texi: Likewise.
23034         * doc/posix-functions/vwprintf.texi: Likewise.
23035         * doc/posix-functions/vwscanf.texi: Likewise.
23036         * doc/posix-functions/wcpcpy.texi: Likewise.
23037         * doc/posix-functions/wcpncpy.texi: Likewise.
23038         * doc/posix-functions/wcscasecmp.texi: Likewise.
23039         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23040         * doc/posix-functions/wcscoll_l.texi: Likewise.
23041         * doc/posix-functions/wcsdup.texi: Likewise.
23042         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23043         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23044         * doc/posix-functions/wcsnlen.texi: Likewise.
23045         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23046         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23047         * doc/posix-functions/wctrans_l.texi: Likewise.
23048         * doc/posix-functions/wctype_l.texi: Likewise.
23049         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23050         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23051         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23052         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23053         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23054         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23055         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23056         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23057         * doc/glibc-functions/wcschrnul.texi: Likewise.
23058         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23059         * doc/glibc-functions/wcstod_l.texi: Likewise.
23060         * doc/glibc-functions/wcstof_l.texi: Likewise.
23061         * doc/glibc-functions/wcstol_l.texi: Likewise.
23062         * doc/glibc-functions/wcstold_l.texi: Likewise.
23063         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23064         * doc/glibc-functions/wcstoq.texi: Likewise.
23065         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23066         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23067         * doc/glibc-functions/wcstouq.texi: Likewise.
23068         * doc/glibc-functions/wmempcpy.texi: Likewise.
23069
23070 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23071             Eric Blake  <ebb9@byu.net>
23072             Paolo Bonzini  <bonzini@gnu.org>
23073             Bruno Haible  <bruno@clisp.org>
23074
23075         Make c-stack work on Haiku.
23076         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23077         (c_stack_action): Use SA_ONSTACK flag.
23078
23079 2008-12-22  Bruno Haible  <bruno@clisp.org>
23080
23081         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23082
23083 2008-12-22  Bruno Haible  <bruno@clisp.org>
23084
23085         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23086         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23087         being overridden.
23088         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23089         New macros.
23090         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23092         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23093         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23094
23095 2008-12-22  Bruno Haible  <bruno@clisp.org>
23096
23097         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23098         from test code.
23099
23100 2008-12-22  Eric Blake  <ebb9@byu.net>
23101
23102         Avoid gcc warnings on cygwin.
23103         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23104         Avoid unused variable.
23105         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23106         Likewise.
23107
23108 2008-12-22  Bruno Haible  <bruno@clisp.org>
23109
23110         Remove HAVE_MBRTOWC conditionals.
23111         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23112         (mbscasecmp): Assume mbrtowc function.
23113         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23114         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23115         * lib/mbschr.c: Include mbuiter.h unconditionally.
23116         (mbschr): Assume mbrtowc function.
23117         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23118         (mbscspn): Assume mbrtowc function.
23119         * lib/mbslen.c: Include mbuiter.h unconditionally.
23120         (mbslen): Assume mbrtowc function.
23121         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23122         (mbsncasecmp): Assume mbrtowc function.
23123         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23124         (mbsnlen): Assume mbrtowc function.
23125         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23126         (mbspbrk): Assume mbrtowc function.
23127         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23128         (mbspcasecmp): Assume mbrtowc function.
23129         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23130         (mbsrchr): Assume mbrtowc function.
23131         * lib/mbssep.c: Include mbuiter.h unconditionally.
23132         (mbssep): Assume mbrtowc function.
23133         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23134         (mbsspn): Assume mbrtowc function.
23135         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23136         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23137         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23138         (mbstok_r): Assume mbrtowc function.
23139         * lib/propername.c: Include mbuiter.h unconditionally.
23140         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23141         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23142         (trim2): Assume mbrtowc function.
23143         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23144         (mbsnwidth): Assume mbrtowc function.
23145         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23146         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23147         fallback definitions.
23148         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23149
23150 2008-12-22  Bruno Haible  <bruno@clisp.org>
23151
23152         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23153
23154 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23155
23156         * modules/regex: Request emulations for the mb*/wc* functions we need.
23157         * m4/regex.m4: Don't look for those functions here.
23158         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23159
23160 2008-12-22  Bruno Haible  <bruno@clisp.org>
23161
23162         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23163
23164 2008-12-21  Bruno Haible  <bruno@clisp.org>
23165
23166         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23167         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23168         (Include): Remove conditionalization.
23169         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23170         (Include): Remove conditionalization.
23171         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23172         (Include): Remove conditionalization.
23173         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23174         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23175         * NEWS: Mention the change.
23176         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23177         via Sergey Poznyakoff <gray@gnu.org.ua>.
23178
23179 2008-12-21  Bruno Haible  <bruno@clisp.org>
23180
23181         * MODULES.html.sh (Extended multibyte and wide character utilities
23182         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23183         wcrtomb, wcsrtombs.
23184         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23185         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23186         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23187         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23188
23189 2008-12-21  Bruno Haible  <bruno@clisp.org>
23190
23191         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23192
23193 2008-12-21  Bruno Haible  <bruno@clisp.org>
23194
23195         * modules/wcsnrtombs-tests: New file.
23196         * tests/test-wcsnrtombs1.sh: New file.
23197         * tests/test-wcsnrtombs2.sh: New file.
23198         * tests/test-wcsnrtombs3.sh: New file.
23199         * tests/test-wcsnrtombs4.sh: New file.
23200         * tests/test-wcsnrtombs.c: New file.
23201
23202         New module 'wcsnrtombs'.
23203         * lib/wchar.in.h (wcsnrtombs): New declaration.
23204         * lib/wcsnrtombs.c: New file.
23205         * lib/wcsrtombs-state.c: New file.
23206         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23207         (internal_state): Remove variable.
23208         * m4/wcsnrtombs.m4: New file.
23209         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23210         compilation units.
23211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23212         HAVE_WCSNRTOMBS.
23213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23214         HAVE_WCSNRTOMBS.
23215         * modules/wcsnrtombs: New file.
23216         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23217         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23218
23219 2008-12-21  Bruno Haible  <bruno@clisp.org>
23220
23221         * modules/wcsrtombs-tests: New file.
23222         * tests/test-wcsrtombs1.sh: New file.
23223         * tests/test-wcsrtombs2.sh: New file.
23224         * tests/test-wcsrtombs3.sh: New file.
23225         * tests/test-wcsrtombs4.sh: New file.
23226         * tests/test-wcsrtombs.c: New file.
23227
23228         New module 'wcsrtombs'.
23229         * lib/wchar.in.h (wcsrtombs): New declaration.
23230         * lib/wcsrtombs.c: New file.
23231         * m4/wcsrtombs.m4: New file.
23232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23233         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23235         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23236         * modules/wcsrtombs: New file.
23237         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23238         bugs.
23239
23240 2008-12-21  Bruno Haible  <bruno@clisp.org>
23241
23242         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23243         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23245         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23246         if not correct.
23247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23248         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23249         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23250         m4/locale-zh.m4, m4/codeset.m4.
23251         * doc/posix-functions/wcrtomb.texi: Document the bug.
23252
23253 2008-12-21  Bruno Haible  <bruno@clisp.org>
23254
23255         Work around a btowc() bug on IRIX 6.5.
23256         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23257         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23258         REPLACE_WTOBC if not.
23259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23260         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23261         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23262
23263 2008-12-21  Bruno Haible  <bruno@clisp.org>
23264
23265         * modules/wcrtomb-tests: New file.
23266         * tests/test-wcrtomb.sh: New file.
23267         * tests/test-wcrtomb.c: New file.
23268
23269         New module 'wcrtomb'.
23270         * lib/wchar.in.h (wcrtomb): New declaration.
23271         * lib/wcrtomb.c: New file.
23272         * m4/wcrtomb.m4: New file.
23273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23274         HAVE_WCRTOMB.
23275         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23276         HAVE_WCRTOMB.
23277         * modules/wcrtomb: New file.
23278         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23279
23280 2008-12-21  Bruno Haible  <bruno@clisp.org>
23281
23282         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23283         * modules/mbsrtowcs (Files): Likewise.
23284         * modules/wctob (Files): Likewise.
23285         * modules/c-strcase-tests (Files): Likewise.
23286         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23287         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23288         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23289         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23290         * modules/vasnprintf-posix-tests (Files): Likewise.
23291
23292 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23293
23294         gitlog-to-changelog: pass all command-line arguments to git-log
23295         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23296         it is sometimes convenient to filter the commits in various ways.
23297         gitlog-to-changelog only allows --since to specify a start date,
23298         but git-log itself supports many other filtering mechanisms.
23299         At the moment, I want to filter by branch name.  Rather than
23300         adding a --branch option to gitlog-to-changelog, it seems more
23301         flexible to simply pass all options directly to git-log and let
23302         git do the work.  Notice that this effectively makes --since a
23303         redundant option for gitlog-to-changelog, but removing it would
23304         require current usage to change since calls would then require
23305         an additional '--'.
23306
23307 2008-12-21  Bruno Haible  <bruno@clisp.org>
23308
23309         * modules/mbsnrtowcs-tests: New file.
23310         * tests/test-mbsnrtowcs1.sh: New file.
23311         * tests/test-mbsnrtowcs2.sh: New file.
23312         * tests/test-mbsnrtowcs3.sh: New file.
23313         * tests/test-mbsnrtowcs4.sh: New file.
23314         * tests/test-mbsnrtowcs.c: New file.
23315
23316         New module 'mbsnrtowcs'.
23317         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23318         * lib/mbsnrtowcs.c: New file.
23319         * lib/mbsrtowcs-state.c: New file.
23320         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23321         (internal_state): Remove variable.
23322         * m4/mbsnrtowcs.m4: New file.
23323         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23324         compilation units.
23325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23326         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23327         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23328         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23329         * modules/mbsnrtowcs: New file.
23330         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23331         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23332         portability problem.
23333
23334 2008-12-21  Bruno Haible  <bruno@clisp.org>
23335
23336         Work around mbsrtowcs bug.
23337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23338         (gl_FUNC_MBSRTOWCS): Invoke it.
23339         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23340         m4/locale-zh.m4.
23341         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23342
23343 2008-12-21  Bruno Haible  <bruno@clisp.org>
23344
23345         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23346
23347 2008-12-21  Bruno Haible  <bruno@clisp.org>
23348
23349         Update doc for AIX.
23350         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23351         16-bit wchar_t type.
23352         * doc/posix-functions/btowc.texi: Likewise.
23353         * doc/posix-functions/fgetwc.texi: Likewise.
23354         * doc/posix-functions/fgetws.texi: Likewise.
23355         * doc/posix-functions/fputwc.texi: Likewise.
23356         * doc/posix-functions/fputws.texi: Likewise.
23357         * doc/posix-functions/fwide.texi: Likewise.
23358         * doc/posix-functions/fwprintf.texi: Likewise.
23359         * doc/posix-functions/fwscanf.texi: Likewise.
23360         * doc/posix-functions/getwchar.texi: Likewise.
23361         * doc/posix-functions/getwc.texi: Likewise.
23362         * doc/posix-functions/iswalnum.texi: Likewise.
23363         * doc/posix-functions/iswalpha.texi: Likewise.
23364         * doc/posix-functions/iswblank.texi: Likewise.
23365         * doc/posix-functions/iswcntrl.texi: Likewise.
23366         * doc/posix-functions/iswctype.texi: Likewise.
23367         * doc/posix-functions/iswdigit.texi: Likewise.
23368         * doc/posix-functions/iswgraph.texi: Likewise.
23369         * doc/posix-functions/iswlower.texi: Likewise.
23370         * doc/posix-functions/iswprint.texi: Likewise.
23371         * doc/posix-functions/iswpunct.texi: Likewise.
23372         * doc/posix-functions/iswspace.texi: Likewise.
23373         * doc/posix-functions/iswupper.texi: Likewise.
23374         * doc/posix-functions/iswxdigit.texi: Likewise.
23375         * doc/posix-functions/mbrtowc.texi: Likewise.
23376         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23377         * doc/posix-functions/mbstowcs.texi: Likewise.
23378         * doc/posix-functions/mbtowc.texi: Likewise.
23379         * doc/posix-functions/putwchar.texi: Likewise.
23380         * doc/posix-functions/putwc.texi: Likewise.
23381         * doc/posix-functions/swprintf.texi: Likewise.
23382         * doc/posix-functions/tolower.texi: Likewise.
23383         * doc/posix-functions/toupper.texi: Likewise.
23384         * doc/posix-functions/towctrans.texi: Likewise.
23385         * doc/posix-functions/ungetwc.texi: Likewise.
23386         * doc/posix-functions/vswprintf.texi: Likewise.
23387         * doc/posix-functions/wcrtomb.texi: Likewise.
23388         * doc/posix-functions/wcscat.texi: Likewise.
23389         * doc/posix-functions/wcschr.texi: Likewise.
23390         * doc/posix-functions/wcscmp.texi: Likewise.
23391         * doc/posix-functions/wcscoll.texi: Likewise.
23392         * doc/posix-functions/wcscpy.texi: Likewise.
23393         * doc/posix-functions/wcscspn.texi: Likewise.
23394         * doc/posix-functions/wcsftime.texi: Likewise.
23395         * doc/posix-functions/wcslen.texi: Likewise.
23396         * doc/posix-functions/wcsncat.texi: Likewise.
23397         * doc/posix-functions/wcsncmp.texi: Likewise.
23398         * doc/posix-functions/wcsncpy.texi: Likewise.
23399         * doc/posix-functions/wcspbrk.texi: Likewise.
23400         * doc/posix-functions/wcsrchr.texi: Likewise.
23401         * doc/posix-functions/wcsrtombs.texi: Likewise.
23402         * doc/posix-functions/wcsspn.texi: Likewise.
23403         * doc/posix-functions/wcsstr.texi: Likewise.
23404         * doc/posix-functions/wcstod.texi: Likewise.
23405         * doc/posix-functions/wcstof.texi: Likewise.
23406         * doc/posix-functions/wcstoimax.texi: Likewise.
23407         * doc/posix-functions/wcstok.texi: Likewise.
23408         * doc/posix-functions/wcstold.texi: Likewise.
23409         * doc/posix-functions/wcstoll.texi: Likewise.
23410         * doc/posix-functions/wcstol.texi: Likewise.
23411         * doc/posix-functions/wcstombs.texi: Likewise.
23412         * doc/posix-functions/wcstoull.texi: Likewise.
23413         * doc/posix-functions/wcstoul.texi: Likewise.
23414         * doc/posix-functions/wcstoumax.texi: Likewise.
23415         * doc/posix-functions/wcswidth.texi: Likewise.
23416         * doc/posix-functions/wcsxfrm.texi: Likewise.
23417         * doc/posix-functions/wctob.texi: Likewise.
23418         * doc/posix-functions/wctomb.texi: Likewise.
23419         * doc/posix-functions/wctrans.texi: Likewise.
23420         * doc/posix-functions/wctype.texi: Likewise.
23421         * doc/posix-functions/wcwidth.texi: Likewise.
23422         * doc/posix-functions/wmemchr.texi: Likewise.
23423         * doc/posix-functions/wmemcmp.texi: Likewise.
23424         * doc/posix-functions/wmemcpy.texi: Likewise.
23425         * doc/posix-functions/wmemmove.texi: Likewise.
23426         * doc/posix-functions/wmemset.texi: Likewise.
23427         * doc/posix-functions/wprintf.texi: Likewise.
23428         * doc/posix-functions/wscanf.texi: Likewise.
23429
23430 2008-12-21  Bruno Haible  <bruno@clisp.org>
23431
23432         Update doc for HP-UX 11.11.
23433         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23434         in HP-UX version 11.00, not in all versions of HP-UX 11.
23435         * doc/posix-functions/fwide.texi: Likewise.
23436         * doc/posix-functions/fwprintf.texi: Likewise.
23437         * doc/posix-functions/fwscanf.texi: Likewise.
23438         * doc/posix-functions/inet_ntop.texi: Likewise.
23439         * doc/posix-functions/inet_pton.texi: Likewise.
23440         * doc/posix-functions/mbrlen.texi: Likewise.
23441         * doc/posix-functions/mbrtowc.texi: Likewise.
23442         * doc/posix-functions/mbsinit.texi: Likewise.
23443         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23444         * doc/posix-functions/swprintf.texi: Likewise.
23445         * doc/posix-functions/swscanf.texi: Likewise.
23446         * doc/posix-functions/towctrans.texi: Likewise.
23447         * doc/posix-functions/vfwprintf.texi: Likewise.
23448         * doc/posix-functions/vswprintf.texi: Likewise.
23449         * doc/posix-functions/vwprintf.texi: Likewise.
23450         * doc/posix-functions/wcrtomb.texi: Likewise.
23451         * doc/posix-functions/wcsrtombs.texi: Likewise.
23452         * doc/posix-functions/wcsstr.texi: Likewise.
23453         * doc/posix-functions/wctob.texi: Likewise.
23454         * doc/posix-functions/wctrans.texi: Likewise.
23455         * doc/posix-functions/wmemchr.texi: Likewise.
23456         * doc/posix-functions/wmemcmp.texi: Likewise.
23457         * doc/posix-functions/wmemcpy.texi: Likewise.
23458         * doc/posix-functions/wmemmove.texi: Likewise.
23459         * doc/posix-functions/wmemset.texi: Likewise.
23460         * doc/posix-functions/wprintf.texi: Likewise.
23461         * doc/posix-functions/wscanf.texi: Likewise.
23462
23463 2008-12-21  Bruno Haible  <bruno@clisp.org>
23464
23465         Work around a portability problem.
23466         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23467         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23468
23469 2008-12-20  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23472         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23473         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23475         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23476
23477         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23478         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23479         set.
23480         (GNULIB_defined_mbstate_t): New macro.
23481         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23482         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23483         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23484         reuses the system's mbrtowc function but works around the bugs.
23485         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23486         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23487         macros.
23488         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23489         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23490         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23491         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23492         REPLACE_MBSINIT if mbsinit needs to be overridden.
23493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23494         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23495         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23496         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23497         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23498         m4/locale-zh.m4.
23499         (Depends): Add mbsinit.
23500         * modules/mbsinit (Depends): Add mbrtowc.
23501         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23502
23503 2008-12-20  Bruno Haible  <bruno@clisp.org>
23504
23505         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23506         so that there are no conversion errors on AIX.
23507         * tests/test-mbsrtowcs.c (main): LIkewise.
23508
23509 2008-12-20  Bruno Haible  <bruno@clisp.org>
23510
23511         Work around wctob bug on Solaris <= 9.
23512         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23513         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23515         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23516         * modules/wctob (Files): Add m4/locale-fr.m4.
23517         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23518
23519 2008-12-20  Bruno Haible  <bruno@clisp.org>
23520
23521         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23522         /dev/null.
23523         * tests/test-select-in.sh: Likewise.
23524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23525
23526 2008-12-20  Bruno Haible  <bruno@clisp.org>
23527
23528         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23529         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23530         Cygwin 1.5.x.
23531
23532 2008-12-20  Bruno Haible  <bruno@clisp.org>
23533
23534         Ensure mbstate_t is defined on HP-UX 11.11.
23535         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23536         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23537         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23538         AC_USE_SYSTEM_EXTENSIONS.
23539         * modules/fnmatch (Depends-on): Add extensions.
23540         * modules/mbrlen (Depends-on): Likewise.
23541         * modules/mbrtowc (Depends-on): Likewise.
23542         * modules/mbsinit (Depends-on): Likewise.
23543         * modules/mbsrtowcs (Depends-on): Likewise.
23544         * modules/mbswidth (Depends-on): Likewise.
23545         * modules/quotearg (Depends-on): Likewise.
23546         * modules/strftime (Depends-on): Likewise.
23547
23548 2008-12-20  Bruno Haible  <bruno@clisp.org>
23549
23550         Ensure wctob is declared on IRIX 6.5.
23551         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23552         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23553         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23555         of HAVE_WCTOB.
23556         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23557         HAVE_WCTOB.
23558         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23559
23560 2008-12-19  Bruno Haible  <bruno@clisp.org>
23561
23562         * modules/mbsrtowcs-tests: New file.
23563         * tests/test-mbsrtowcs1.sh: New file.
23564         * tests/test-mbsrtowcs2.sh: New file.
23565         * tests/test-mbsrtowcs3.sh: New file.
23566         * tests/test-mbsrtowcs4.sh: New file.
23567         * tests/test-mbsrtowcs.c: New file.
23568
23569         New module 'mbsrtowcs'.
23570         * lib/wchar.in.h (mbsrtowcs): New declaration.
23571         * lib/mbsrtowcs.c: New file.
23572         * m4/mbsrtowcs.m4: New file.
23573         * modules/mbsrtowcs: New file.
23574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23575         HAVE_MBSRTOWCS.
23576         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23577         HAVE_MBSRTOWCS.
23578         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23579
23580 2008-12-19  Bruno Haible  <bruno@clisp.org>
23581
23582         New module 'mbrlen'.
23583         * lib/wchar.in.h (mbrlen): New declaration.
23584         * lib/mbrlen.c: New file.
23585         * m4/mbrlen.m4: New file.
23586         * modules/mbrlen: New file.
23587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23588         HAVE_MBRLEN.
23589         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23590         HAVE_MBRLEN.
23591         * doc/posix-functions/mbrlen.texi: Document the new module.
23592
23593 2008-12-19  Bruno Haible  <bruno@clisp.org>
23594
23595         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23596         * modules/mbrtowc (Depends-on): Add verify.
23597         Suggested by Paul Eggert.
23598
23599 2008-12-18  Bruno Haible  <bruno@clisp.org>
23600
23601         * modules/mbsinit-tests: New file.
23602         * tests/test-mbsinit.sh: New file.
23603         * tests/test-mbsinit.c: New file.
23604
23605 2008-12-18  Bruno Haible  <bruno@clisp.org>
23606
23607         * modules/mbrtowc-tests: New file.
23608         * tests/test-mbrtowc1.sh: New file.
23609         * tests/test-mbrtowc2.sh: New file.
23610         * tests/test-mbrtowc3.sh: New file.
23611         * tests/test-mbrtowc4.sh: New file.
23612         * tests/test-mbrtowc.c: New file.
23613
23614         New module 'mbrtowc'.
23615         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23616         mbsinit and mbrtowc.
23617         (mbrtowc): New declaration.
23618         * lib/mbrtowc.c: New file.
23619         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23620         * modules/mbrtowc: New file.
23621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23622         HAVE_MBRTOWC.
23623         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23624         HAVE_MBRTOWC.
23625         * doc/posix-functions/mbrtowc.texi: Document the new module.
23626
23627 2008-12-18  Bruno Haible  <bruno@clisp.org>
23628
23629         New module 'wctob'.
23630         * lib/wchar.in.h (wctob): New declaration.
23631         * lib/wctob.c: New file.
23632         * m4/wctob.m4: New file.
23633         * modules/wctob: New file.
23634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23635         HAVE_WCTOB.
23636         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23637         * doc/posix-functions/wctob.texi: Document the new module.
23638
23639 2008-12-18  Bruno Haible  <bruno@clisp.org>
23640
23641         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23642         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23643
23644 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23645
23646         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23647         G. Christensen" <tgc@jupiterrise.com>.
23648
23649         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23650         G. Christensen" <tgc@jupiterrise.com>.
23651
23652         * lib/flock.c: Need to include string.h.  Reported by "Tom
23653         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23654         <ebb9@byu.net>.
23655
23656 2008-12-18  Bruno Haible  <bruno@clisp.org>
23657
23658         * m4/locale-ja.m4: New file, from GNU gettext.
23659
23660 2008-12-17  Bruno Haible  <bruno@clisp.org>
23661
23662         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23663         Suggested by Eric Blake.
23664
23665 2008-12-17  Bruno Haible  <bruno@clisp.org>
23666
23667         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23668
23669 2008-12-17  Bruno Haible  <bruno@clisp.org>
23670
23671         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23672         * modules/mbsinit (Depends-on): Add verify.
23673         Suggested by Paul Eggert.
23674
23675 2008-12-17  Bruno Haible  <bruno@clisp.org>
23676
23677         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23678         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23679         gl_FUNC_MBRTOWC.
23680         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23681         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23682         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23683         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23684         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23685         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23686         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23687         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23688         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23689         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23690         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23691         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23692         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23693         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23694         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23695         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23696         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23697         * modules/trim (configure.ac): Likewise.
23698
23699 2008-12-17  Bruno Haible  <bruno@clisp.org>
23700
23701         * modules/btowc-tests: New file.
23702         * tests/test-btowc1.sh: New file.
23703         * tests/test-btowc2.sh: New file.
23704         * tests/test-btowc.c: New file.
23705
23706         New module 'btowc'.
23707         * lib/wchar.in.h (btowc): New declaration.
23708         * lib/btowc.c: New file.
23709         * m4/btowc.m4: New file.
23710         * modules/btowc: New file.
23711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23712         HAVE_BTOWC.
23713         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23714         * doc/posix-functions/btowc.texi: Document the new module.
23715
23716 2008-12-17  Bruno Haible  <bruno@clisp.org>
23717
23718         New module 'mbsinit'.
23719         * lib/wchar.in.h (mbsinit): New declaration.
23720         * lib/mbsinit.c: New file.
23721         * m4/mbsinit.m4: New file.
23722         * modules/mbsinit: New file.
23723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23724         HAVE_MBSINIT.
23725         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23726         HAVE_MBSINIT.
23727         * doc/posix-functions/mbsinit.texi: Document the new module.
23728
23729 2008-12-16  Bruno Haible  <bruno@clisp.org>
23730
23731         * lib/unistd.in.h: Add comment.
23732         * tests/test-environ.c: Don't include <stdlib.h>.
23733
23734 2008-12-16  Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/parse-duration.h (parse_duration): Document return value
23737         convention.
23738         * lib/parse-duration.c: Include specification header first. Add
23739         comments.
23740         (_): Remove macro.
23741         (parse_year_month_day, parse_hour_minute_second): Move side effects
23742         outside of strchr call.
23743         (parse_non_iso8601): Move side effects outside of isspace call.
23744         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23745         call.
23746
23747 2008-12-16  Bruno Haible  <bruno@clisp.org>
23748
23749         * tests/test-parse-duration.sh: Produce no output when the test
23750         succeeds.
23751
23752 2008-12-16  Bruno Haible  <bruno@clisp.org>
23753
23754         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23755         expressions.
23756
23757 2008-12-15  Bruno Haible  <bruno@clisp.org>
23758
23759         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23760         * doc/glibc-functions/flistxattr.texi: Likewise.
23761         * doc/glibc-functions/fopencookie.texi: Likewise.
23762         * doc/glibc-functions/fremovexattr.texi: Likewise.
23763         * doc/glibc-functions/fsetxattr.texi: Likewise.
23764         * doc/glibc-functions/getxattr.texi: Likewise.
23765         * doc/glibc-functions/lgetxattr.texi: Likewise.
23766         * doc/glibc-functions/listxattr.texi: Likewise.
23767         * doc/glibc-functions/llistxattr.texi: Likewise.
23768         * doc/glibc-functions/lremovexattr.texi: Likewise.
23769         * doc/glibc-functions/lsetxattr.texi: Likewise.
23770         * doc/glibc-functions/removexattr.texi: Likewise.
23771         * doc/glibc-functions/setxattr.texi: Likewise.
23772         * doc/posix-functions/open_memstream.texi: Likewise.
23773
23774 2008-12-15  Eric Blake  <ebb9@byu.net>
23775
23776         Update doc for cygwin 1.7.
23777         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23778         functions.
23779         * doc/posix-functions/fchmodat.texi: Likewise.
23780         * doc/posix-functions/fchownat.texi: Likewise.
23781         * doc/posix-functions/fdopendir.texi: Likewise.
23782         * doc/posix-functions/fmemopen.texi: Likewise.
23783         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23784         * doc/posix-functions/fstatat.texi: Likewise.
23785         * doc/posix-functions/futimens.texi: Likewise.
23786         * doc/posix-functions/gai_strerror.texi: Likewise.
23787         * doc/posix-functions/getaddrinfo.texi: Likewise.
23788         * doc/posix-functions/getnameinfo.texi: Likewise.
23789         * doc/posix-functions/if_freenameindex.texi: Likewise.
23790         * doc/posix-functions/if_indextoname.texi: Likewise.
23791         * doc/posix-functions/if_nameindex.texi: Likewise.
23792         * doc/posix-functions/if_nametoindex.texi: Likewise.
23793         * doc/posix-functions/insque.texi: Likewise.
23794         * doc/posix-functions/linkat.texi: Likewise.
23795         * doc/posix-functions/llrint.texi: Likewise.
23796         * doc/posix-functions/llrintf.texi: Likewise.
23797         * doc/posix-functions/llrintl.texi: Likewise.
23798         * doc/posix-functions/lockf.texi: Likewise.
23799         * doc/posix-functions/lrintl.texi: Likewise.
23800         * doc/posix-functions/mkdirat.texi: Likewise.
23801         * doc/posix-functions/mkfifoat.texi: Likewise.
23802         * doc/posix-functions/mknodat.texi: Likewise.
23803         * doc/posix-functions/mq_close.texi: Likewise.
23804         * doc/posix-functions/mq_getattr.texi: Likewise.
23805         * doc/posix-functions/mq_notify.texi: Likewise.
23806         * doc/posix-functions/mq_open.texi: Likewise.
23807         * doc/posix-functions/mq_receive.texi: Likewise.
23808         * doc/posix-functions/mq_send.texi: Likewise.
23809         * doc/posix-functions/mq_setattr.texi: Likewise.
23810         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23811         * doc/posix-functions/mq_timedsend.texi: Likewise.
23812         * doc/posix-functions/mq_unlink.texi: Likewise.
23813         * doc/posix-functions/open_memstream.texi: Likewise.
23814         * doc/posix-functions/openat.texi: Likewise.
23815         * doc/posix-functions/posix_fadvise.texi: Likewise.
23816         * doc/posix-functions/posix_fallocate.texi: Likewise.
23817         * doc/posix-functions/posix_madvise.texi: Likewise.
23818         * doc/posix-functions/posix_memalign.texi: Likewise.
23819         * doc/posix-functions/posix_openpt.texi: Likewise.
23820         * doc/posix-functions/readlinkat.texi: Likewise.
23821         * doc/posix-functions/remque.texi: Likewise.
23822         * doc/posix-functions/renameat.texi: Likewise.
23823         * doc/posix-functions/rintl.texi: Likewise.
23824         * doc/posix-functions/sem_unlink.texi: Likewise.
23825         * doc/posix-functions/shm_open.texi: Likewise.
23826         * doc/posix-functions/shm_unlink.texi: Likewise.
23827         * doc/posix-functions/signgam.texi: Likewise.
23828         * doc/posix-functions/sigset.texi: Likewise.
23829         * doc/posix-functions/stpcpy.texi: Likewise.
23830         * doc/posix-functions/stpncpy.texi: Likewise.
23831         * doc/posix-functions/strerror.texi: Likewise.
23832         * doc/posix-functions/strtod.texi: Likewise.
23833         * doc/posix-functions/symlinkat.texi: Likewise.
23834         * doc/posix-functions/unlinkat.texi: Likewise.
23835         * doc/posix-functions/utimensat.texi: Likewise.
23836         * doc/glibc-functions/bindresvport.texi: Likewise.
23837         * doc/glibc-functions/dn_expand.texi: Likewise.
23838         * doc/glibc-functions/exp10.texi: Likewise.
23839         * doc/glibc-functions/exp10f.texi: Likewise.
23840         * doc/glibc-functions/fgetxattr.texi: Likewise.
23841         * doc/glibc-functions/flistxattr.texi: Likewise.
23842         * doc/glibc-functions/fopencookie.texi: Likewise.
23843         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23844         * doc/glibc-functions/fremovexattr.texi: Likewise.
23845         * doc/glibc-functions/fsetxattr.texi: Likewise.
23846         * doc/glibc-functions/getifaddrs.texi: Likewise.
23847         * doc/glibc-functions/getxattr.texi: Likewise.
23848         * doc/glibc-functions/lgetxattr.texi: Likewise.
23849         * doc/glibc-functions/listxattr.texi: Likewise.
23850         * doc/glibc-functions/llistxattr.texi: Likewise.
23851         * doc/glibc-functions/lremovexattr.texi: Likewise.
23852         * doc/glibc-functions/lsetxattr.texi: Likewise.
23853         * doc/glibc-functions/pow10.texi: Likewise.
23854         * doc/glibc-functions/pow10f.texi: Likewise.
23855         * doc/glibc-functions/rcmd_af.texi: Likewise.
23856         * doc/glibc-functions/removexattr.texi: Likewise.
23857         * doc/glibc-functions/res_init.texi: Likewise.
23858         * doc/glibc-functions/res_mkquery.texi: Likewise.
23859         * doc/glibc-functions/res_query.texi: Likewise.
23860         * doc/glibc-functions/res_querydomain.texi: Likewise.
23861         * doc/glibc-functions/res_send.texi: Likewise.
23862         * doc/glibc-functions/rresvport_af.texi: Likewise.
23863         * doc/glibc-functions/setxattr.texi: Likewise.
23864         * doc/glibc-functions/strcasestr.texi: Likewise.
23865
23866 2008-12-15  Bruno Haible  <bruno@clisp.org>
23867
23868         Fix compilation error on OSF/1 4.0.
23869         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23870         <sys/time.h>, simply delegate to the system header.
23871         Reported by Daniel Richard G. <oss@teragram.com>.
23872
23873 2008-12-15  Bruno Haible  <bruno@clisp.org>
23874
23875         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23876         * doc/posix-functions/fchmodat.texi: Likewise.
23877         * doc/posix-functions/fchownat.texi: Likewise.
23878         * doc/posix-functions/fdopendir.texi: Likewise.
23879         * doc/posix-functions/fstatat.texi: Likewise.
23880         * doc/posix-functions/mkdirat.texi: Likewise.
23881         * doc/posix-functions/unlinkat.texi: Likewise.
23882
23883 2008-12-14  Bruno Haible  <bruno@clisp.org>
23884
23885         Update doc for POSIX:2008.
23886         * doc/posix-functions/faccessat.texi: New file.
23887         * doc/posix-functions/fchmodat.texi: New file.
23888         * doc/posix-functions/fchownat.texi: New file.
23889         * doc/posix-functions/fdopendir.texi: New file.
23890         * doc/posix-functions/fstatat.texi: New file.
23891         * doc/posix-functions/futimens.texi: New file.
23892         * doc/posix-functions/linkat.texi: New file.
23893         * doc/posix-functions/mkdirat.texi: New file.
23894         * doc/posix-functions/mkfifoat.texi: New file.
23895         * doc/posix-functions/mknodat.texi: New file.
23896         * doc/posix-functions/open_wmemstream.texi: New file.
23897         * doc/posix-functions/openat.texi: New file.
23898         * doc/posix-functions/psiginfo.texi: New file.
23899         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23900         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23901         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23902         * doc/posix-functions/readlinkat.texi: New file.
23903         * doc/posix-functions/renameat.texi: New file.
23904         * doc/posix-functions/strerror_l.texi: New file.
23905         * doc/posix-functions/symlinkat.texi: New file.
23906         * doc/posix-functions/unlinkat.texi: New file.
23907         * doc/posix-functions/utimensat.texi: New file.
23908         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23909
23910 2008-12-14  Bruno Haible  <bruno@clisp.org>
23911
23912         Update doc for POSIX:2008.
23913         * doc/posix-functions/alphasort.texi: Renamed from
23914         doc/glibc-functions/alphasort.texi.
23915         * doc/posix-functions/dirfd.texi: Renamed from
23916         doc/glibc-functions/dirfd.texi.
23917         * doc/posix-functions/dprintf.texi: Renamed from
23918         doc/glibc-functions/dprintf.texi.
23919         * doc/posix-functions/duplocale.texi: Renamed from
23920         doc/glibc-functions/duplocale.texi.
23921         * doc/posix-functions/fexecve.texi: Renamed from
23922         doc/glibc-functions/fexecve.texi.
23923         * doc/posix-functions/fmemopen.texi: Renamed from
23924         doc/glibc-functions/fmemopen.texi.
23925         * doc/posix-functions/freelocale.texi: Renamed from
23926         doc/glibc-functions/freelocale.texi.
23927         * doc/posix-functions/getdate_err.texi: Renamed from
23928         doc/glibc-functions/getdate_err.texi.
23929         * doc/posix-functions/isalnum_l.texi: Renamed from
23930         doc/glibc-functions/isalnum_l.texi.
23931         * doc/posix-functions/isalpha_l.texi: Renamed from
23932         doc/glibc-functions/isalpha_l.texi.
23933         * doc/posix-functions/isblank_l.texi: Renamed from
23934         doc/glibc-functions/isblank_l.texi.
23935         * doc/posix-functions/iscntrl_l.texi: Renamed from
23936         doc/glibc-functions/iscntrl_l.texi.
23937         * doc/posix-functions/isdigit_l.texi: Renamed from
23938         doc/glibc-functions/isdigit_l.texi.
23939         * doc/posix-functions/isgraph_l.texi: Renamed from
23940         doc/glibc-functions/isgraph_l.texi.
23941         * doc/posix-functions/islower_l.texi: Renamed from
23942         doc/glibc-functions/islower_l.texi.
23943         * doc/posix-functions/isprint_l.texi: Renamed from
23944         doc/glibc-functions/isprint_l.texi.
23945         * doc/posix-functions/ispunct_l.texi: Renamed from
23946         doc/glibc-functions/ispunct_l.texi.
23947         * doc/posix-functions/isspace_l.texi: Renamed from
23948         doc/glibc-functions/isspace_l.texi.
23949         * doc/posix-functions/isupper_l.texi: Renamed from
23950         doc/glibc-functions/isupper_l.texi.
23951         * doc/posix-functions/iswalnum_l.texi: Renamed from
23952         doc/glibc-functions/iswalnum_l.texi.
23953         * doc/posix-functions/iswalpha_l.texi: Renamed from
23954         doc/glibc-functions/iswalpha_l.texi.
23955         * doc/posix-functions/iswblank_l.texi: Renamed from
23956         doc/glibc-functions/iswblank_l.texi.
23957         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23958         doc/glibc-functions/iswcntrl_l.texi.
23959         * doc/posix-functions/iswctype_l.texi: Renamed from
23960         doc/glibc-functions/iswctype_l.texi.
23961         * doc/posix-functions/iswdigit_l.texi: Renamed from
23962         doc/glibc-functions/iswdigit_l.texi.
23963         * doc/posix-functions/iswgraph_l.texi: Renamed from
23964         doc/glibc-functions/iswgraph_l.texi.
23965         * doc/posix-functions/iswlower_l.texi: Renamed from
23966         doc/glibc-functions/iswlower_l.texi.
23967         * doc/posix-functions/iswprint_l.texi: Renamed from
23968         doc/glibc-functions/iswprint_l.texi.
23969         * doc/posix-functions/iswpunct_l.texi: Renamed from
23970         doc/glibc-functions/iswpunct_l.texi.
23971         * doc/posix-functions/iswspace_l.texi: Renamed from
23972         doc/glibc-functions/iswspace_l.texi.
23973         * doc/posix-functions/iswupper_l.texi: Renamed from
23974         doc/glibc-functions/iswupper_l.texi.
23975         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23976         doc/glibc-functions/iswxdigit_l.texi.
23977         * doc/posix-functions/isxdigit_l.texi: Renamed from
23978         doc/glibc-functions/isxdigit_l.texi.
23979         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23980         doc/glibc-functions/mbsnrtowcs.texi.
23981         * doc/posix-functions/mkdtemp.texi: Renamed from
23982         doc/glibc-functions/mkdtemp.texi.
23983         * doc/posix-functions/newlocale.texi: Renamed from
23984         doc/glibc-functions/newlocale.texi.
23985         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23986         doc/glibc-functions/nl_langinfo_l.texi.
23987         * doc/posix-functions/open_memstream.texi: Renamed from
23988         doc/glibc-functions/open_memstream.texi.
23989         * doc/posix-functions/opterr.texi: Renamed from
23990         doc/glibc-functions/opterr.texi.
23991         * doc/posix-functions/optind.texi: Renamed from
23992         doc/glibc-functions/optind.texi.
23993         * doc/posix-functions/optopt.texi: Renamed from
23994         doc/glibc-functions/optopt.texi.
23995         * doc/posix-functions/psignal.texi: Renamed from
23996         doc/glibc-functions/psignal.texi.
23997         * doc/posix-functions/scandir.texi: Renamed from
23998         doc/glibc-functions/scandir.texi.
23999         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24000         doc/glibc-functions/sched_get_priority_min.texi.
24001         * doc/posix-functions/signgam.texi: Renamed from
24002         doc/glibc-functions/signgam.texi.
24003         * doc/posix-functions/stpcpy.texi: Renamed from
24004         doc/glibc-functions/stpcpy.texi.
24005         * doc/posix-functions/stpncpy.texi: Renamed from
24006         doc/glibc-functions/stpncpy.texi.
24007         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24008         doc/glibc-functions/strcasecmp_l.texi.
24009         * doc/posix-functions/strcoll_l.texi: Renamed from
24010         doc/glibc-functions/strcoll_l.texi.
24011         * doc/posix-functions/strfmon_l.texi: Renamed from
24012         doc/glibc-functions/strfmon_l.texi.
24013         * doc/posix-functions/strftime_l.texi: Renamed from
24014         doc/glibc-functions/strftime_l.texi.
24015         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24016         doc/glibc-functions/strncasecmp_l.texi.
24017         * doc/posix-functions/strndup.texi: Renamed from
24018         doc/glibc-functions/strndup.texi.
24019         * doc/posix-functions/strnlen.texi: Renamed from
24020         doc/glibc-functions/strnlen.texi.
24021         * doc/posix-functions/strsignal.texi: Renamed from
24022         doc/glibc-functions/strsignal.texi.
24023         * doc/posix-functions/strxfrm_l.texi: Renamed from
24024         doc/glibc-functions/strxfrm_l.texi.
24025         * doc/posix-functions/timer_gettime.texi: Renamed from
24026         doc/glibc-functions/timer_gettime.texi.
24027         * doc/posix-functions/tolower_l.texi: Renamed from
24028         doc/glibc-functions/tolower_l.texi.
24029         * doc/posix-functions/toupper_l.texi: Renamed from
24030         doc/glibc-functions/toupper_l.texi.
24031         * doc/posix-functions/towctrans_l.texi: Renamed from
24032         doc/glibc-functions/towctrans_l.texi.
24033         * doc/posix-functions/towlower_l.texi: Renamed from
24034         doc/glibc-functions/towlower_l.texi.
24035         * doc/posix-functions/towupper_l.texi: Renamed from
24036         doc/glibc-functions/towupper_l.texi.
24037         * doc/posix-functions/uselocale.texi: Renamed from
24038         doc/glibc-functions/uselocale.texi.
24039         * doc/posix-functions/vdprintf.texi: Renamed from
24040         doc/glibc-functions/vdprintf.texi.
24041         * doc/posix-functions/wcpcpy.texi:
24042         Renamed from doc/glibc-functions/wcpcpy.texi.
24043         * doc/posix-functions/wcpncpy.texi: Renamed from
24044         doc/glibc-functions/wcpncpy.texi.
24045         * doc/posix-functions/wcscasecmp.texi: Renamed from
24046         doc/glibc-functions/wcscasecmp.texi.
24047         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24048         doc/glibc-functions/wcscasecmp_l.texi.
24049         * doc/posix-functions/wcscoll_l.texi: Renamed from
24050         doc/glibc-functions/wcscoll_l.texi.
24051         * doc/posix-functions/wcsdup.texi: Renamed from
24052         doc/glibc-functions/wcsdup.texi.
24053         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24054         doc/glibc-functions/wcsncasecmp.texi.
24055         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24056         doc/glibc-functions/wcsncasecmp_l.texi.
24057         * doc/posix-functions/wcsnlen.texi: Renamed from
24058         doc/glibc-functions/wcsnlen.texi.
24059         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24060         doc/glibc-functions/wcsnrtombs.texi.
24061         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24062         doc/glibc-functions/wcsxfrm_l.texi.
24063         * doc/posix-functions/wctrans_l.texi: Renamed from
24064         doc/glibc-functions/wctrans_l.texi.
24065         * doc/posix-functions/wctype_l.texi: Renamed from
24066         doc/glibc-functions/wctype_l.texi.
24067         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24068         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24069         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24070         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24071         these subsections.
24072         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24073         Remove sections.
24074
24075 2008-12-14  Bruno Haible  <bruno@clisp.org>
24076
24077         Update doc for POSIX:2008.
24078         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24079
24080 2008-12-14  Bruno Haible  <bruno@clisp.org>
24081
24082         Update doc for POSIX:2008.
24083         * doc/pastposix-functions/bcmp.texi: Renamed from
24084         doc/posix-functions/bcmp.texi.
24085         * doc/pastposix-functions/bcopy.texi: Renamed from
24086         doc/posix-functions/bcopy.texi.
24087         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24088         doc/posix-functions/bsd_signal.texi.
24089         * doc/pastposix-functions/bzero.texi: Renamed from
24090         doc/posix-functions/bzero.texi.
24091         * doc/pastposix-functions/ecvt.texi: Renamed from
24092         doc/posix-functions/ecvt.texi.
24093         * doc/pastposix-functions/fcvt.texi: Renamed from
24094         doc/posix-functions/fcvt.texi.
24095         * doc/pastposix-functions/ftime.texi: Renamed from
24096         doc/posix-functions/ftime.texi.
24097         * doc/pastposix-functions/gcvt.texi: Renamed from
24098         doc/posix-functions/gcvt.texi.
24099         * doc/pastposix-functions/getcontext.texi: Renamed from
24100         doc/posix-functions/getcontext.texi.
24101         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24102         doc/posix-functions/gethostbyaddr.texi.
24103         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24104         doc/posix-functions/gethostbyname.texi.
24105         * doc/pastposix-functions/getwd.texi: Renamed from
24106         doc/posix-functions/getwd.texi.
24107         * doc/pastposix-functions/h_errno.texi: Renamed from
24108         doc/posix-functions/h_errno.texi.
24109         * doc/pastposix-functions/index.texi: Renamed from
24110         doc/posix-functions/index.texi.
24111         * doc/pastposix-functions/makecontext.texi: Renamed from
24112         doc/posix-functions/makecontext.texi.
24113         * doc/pastposix-functions/mktemp.texi: Renamed from
24114         doc/posix-functions/mktemp.texi.
24115         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24116         doc/posix-functions/pthread_attr_getstackaddr.texi.
24117         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24118         doc/posix-functions/pthread_attr_setstackaddr.texi.
24119         * doc/pastposix-functions/rindex.texi: Renamed from
24120         doc/posix-functions/rindex.texi.
24121         * doc/pastposix-functions/scalb.texi: Renamed from
24122         doc/posix-functions/scalb.texi.
24123         * doc/pastposix-functions/setcontext.texi: Renamed from
24124         doc/posix-functions/setcontext.texi.
24125         * doc/pastposix-functions/swapcontext.texi: Renamed from
24126         doc/posix-functions/swapcontext.texi.
24127         * doc/pastposix-functions/ualarm.texi: Renamed from
24128         doc/posix-functions/ualarm.texi.
24129         * doc/pastposix-functions/usleep.texi: Renamed from
24130         doc/posix-functions/usleep.texi.
24131         * doc/pastposix-functions/vfork.texi: Renamed from
24132         doc/posix-functions/vfork.texi.
24133         * doc/pastposix-functions/wcswcs.texi: Renamed from
24134         doc/posix-functions/wcswcs.texi.
24135         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24136         (Function Substitutes): Update.
24137
24138 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24139
24140         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24141         m4/strerror.m4.
24142
24143 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24144             Bruno Haible  <bruno@clisp.org>
24145
24146         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24147
24148 2008-12-13  Bruno Haible  <bruno@clisp.org>
24149
24150         * modules/strtoull (Depends-on): Remove unistd.
24151
24152 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24153
24154         * modules/strtoull (Depends-on): Add stdlib.
24155
24156 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24157
24158         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24159
24160 2008-12-10  Jim Meyering  <meyering@redhat.com>
24161
24162         gl_ASSERT: don't say assertions are disabled when they're not
24163         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24164         "checking whether to enable assertions... no", when they are in
24165         fact enabled.  This is solely a bug in the output of configure.
24166         In spite of saying "no", NDEBUG was not defined in that case.
24167         Also, as noted by Eric Blake, leave assertions enabled upon
24168         --enable-assert=INVALID.
24169
24170 2008-12-10  Bruno Haible  <bruno@clisp.org>
24171
24172         Change MODULES.html to refer to POSIX:2008 where possible.
24173         * MODULES.html.sh (POSIX2008_URL): New variable.
24174         (posix_headers): Remove sys/timeb, ucontext.
24175         (posix2001_headers): New variable.
24176         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24177         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24178         index, makecontext, mktemp, pthread_attr_getstackaddr,
24179         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24180         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24181         (posix2001_functions): New variable.
24182         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24183         otherwise.
24184
24185 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24186
24187         add missing include to parse-duration.c
24188         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24189         * modules/parse-duration (Depends-on): Add xalloc.
24190
24191         fix sed script reading maint.mk
24192         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24193         (syntax-check-rules): Use it.
24194
24195 2008-12-09  Bruno Haible  <bruno@clisp.org>
24196
24197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24198         MacOS X 10.4/PowerPC.
24199         Reported by Simon Josefsson.
24200
24201 2008-12-08  Jim Meyering  <meyering@redhat.com>
24202
24203         work around mingw's lack of some S_IF definitions
24204         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24205         Reported by Simon Josefsson.
24206
24207 2008-12-08  Bruno Haible  <bruno@clisp.org>
24208
24209         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24210         applied to variables. Needed on MacOS X 10.4/PowerPC.
24211         Reported by Simon Josefsson.
24212
24213 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24214         and Eric Blake  <ebb9@byu.net>
24215
24216         assert: honor --enable-assert
24217         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24218         order to honor --enable-assert, rather than treating it as a
24219         synonym for --disable-assert.
24220
24221 2008-12-08  Jim Meyering  <meyering@redhat.com>
24222
24223         * lib/posixtm.c: Remove now-useless declaration of mktime.
24224
24225         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24226
24227 2008-12-07  Bruno Haible  <bruno@clisp.org>
24228
24229         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24230         test_once): Mark functions as static.
24231         * tests/test-tls.c (test_tls): Likewise.
24232
24233 2008-12-07  Bruno Haible  <bruno@clisp.org>
24234
24235         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24236         iconv_register_autodetect.
24237
24238 2008-12-07  Jim Meyering  <meyering@redhat.com>
24239
24240         posixtm.c: avoid a warning
24241         * lib/posixtm.c (posixtime): Don't initialize tm0.
24242         It's no longer needed to placate gcc4's -Wuninitialized,
24243         and the attempt to placate would elicit a new warning.
24244
24245         unicodeio.c: mark unused parameters
24246         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24247         (fallback_failure_callback): Likewise.
24248
24249 2008-12-07  Bruno Haible  <bruno@clisp.org>
24250
24251         * gnulib-tool (func_create_testdir): When building the tests
24252         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24253         Reported by Simon Josefsson.
24254
24255 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24256
24257         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24258
24259 2008-12-06  Bruno Haible  <bruno@clisp.org>
24260
24261         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24262         Suggested by Eric Blake.
24263
24264 2008-12-06  Bruno Haible  <bruno@clisp.org>
24265
24266         Fix a c-stack test failure on MacOS X.
24267         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24268         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24269         handler for SIGBUS as well.
24270         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24271         install a signal handler for SIGBUS as well.
24272         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24273
24274 2008-12-06  Bruno Haible  <bruno@clisp.org>
24275
24276         Advocacy documentation.
24277         * doc/gnulib-intro.texi (Benefits): New section.
24278         * doc/gnulib.texi: Update.
24279
24280 2008-12-06  Bruno Haible  <bruno@clisp.org>
24281
24282         Document the 'manywarnings' module.
24283         * doc/manywarnings.texi: New file.
24284         * doc/gnulib.texi: Include it.
24285
24286 2008-12-05  Eric Blake  <ebb9@byu.net>
24287
24288         tests: silence some gcc warnings
24289         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24290         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24291         type mismatches.
24292
24293 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24294             Bruno Haible  <bruno@clisp.org>
24295
24296         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24297
24298 2008-11-29  Jim Meyering  <meyering@redhat.com>
24299
24300         unicodeio.c: mark unused parameters
24301         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24302         (fallback_failure_callback): Likewise.
24303
24304         fts: fix a thinko
24305         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24306         (set_stat_type): Return S_IF*-valued "type" directly.
24307         Prompted by James Youngman's spotting a related bug.
24308         Confirmed by further testing through find.
24309
24310         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24311         * lib/fts.c (D_TYPE): Define.
24312         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24313         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24314         (s_ifmt_shift_bits): New function.
24315         (set_stat_type): New function.
24316         (fts_build): When not calling fts_stat, call set_stat_type
24317         to propagate dirent.d_type info to fts_read caller.
24318         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24319         fts_statp->st_mode type information may be valid.
24320
24321 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24322
24323         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24324         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24325         <sds@gnu.org>.
24326
24327 2008-11-20  Bruno Haible  <bruno@clisp.org>
24328
24329         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24330         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24331         INCLUDE_NEXT.
24332         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24333         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24334         * modules/math (Makefile.am): Substitute
24335         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24336         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24337
24338 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24339             Bruno Haible  <bruno@clisp.org>
24340
24341         * lib/stdint.in.h: Define all type macros so that their expansion is
24342         a single typedef'ed token. Fixes a compilation failure in Boost which
24343         does "using ::int8_t;".
24344
24345 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24346
24347         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24348         gl_MANYWARN_ALL_GCC.
24349         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24350         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24351         * modules/manywarnings: New file.
24352         * MODULES.html.sh: Mention manywarnings module.
24353
24354 2008-11-18  Bruno Haible  <bruno@clisp.org>
24355
24356         * doc/gnulib-tool.texi (Unit tests): New section.
24357
24358 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24359
24360         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24361         paths like 'lib/po/foo.po'.
24362
24363 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24364
24365         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24366         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24367
24368 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24369
24370         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24371         parameter works.
24372
24373 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24374
24375         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24376
24377 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24378
24379         * modules/parse-duration-tests: New file.
24380         * tests/test-parse-duration.sh: New file.
24381         * tests/test-parse-duration.c: New file.
24382
24383         New module 'parse-duration'.
24384         * lib/parse-duration.h: New file.
24385         * lib/parse-duration.c: New file.
24386         * modules/parse-duration: New file.
24387
24388 2008-11-17  Bruno Haible  <bruno@clisp.org>
24389
24390         * tests/test-select-out.sh: Comment out the first pipe test.
24391         Reported by Simon Josefsson.
24392
24393 2008-11-17  Bruno Haible  <bruno@clisp.org>
24394
24395         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24396         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24397         gl_HOSTENT.
24398
24399 2008-11-17  Bruno Haible  <bruno@clisp.org>
24400
24401         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24402         -lnetwork and -lnet. Needed for Haiku and BeOS.
24403
24404 2008-11-16  Bruno Haible  <bruno@clisp.org>
24405
24406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24407
24408 2008-11-16  Bruno Haible  <bruno@clisp.org>
24409
24410         Avoid test failure on Haiku.
24411         * tests/test-fsync.c: Include <errno.h>.
24412         (main): Don't require that fsync (0) fails.
24413
24414 2008-11-15  Bruno Haible  <bruno@clisp.org>
24415
24416         New module 'hostent'.
24417         * modules/hostent: New file.
24418         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24419
24420 2008-11-15  Bruno Haible  <bruno@clisp.org>
24421
24422         New module 'servent'.
24423         * modules/servent: New file.
24424         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24425
24426 2008-11-15  Bruno Haible  <bruno@clisp.org>
24427
24428         Avoid generating same test program with two different rules.
24429         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24430         test-frexp to test-frexp-nolibm.
24431         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24432         test-frexpl to test-frexpl-nolibm.
24433
24434 2008-11-15  Bruno Haible  <bruno@clisp.org>
24435
24436         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24437         $(FREXPL_LIBM).
24438
24439 2008-11-15  Bruno Haible  <bruno@clisp.org>
24440
24441         * lib/netdb.in.h: Activate the definitions also when the system's
24442         <netdb.h> has 'struct addrinfo'.
24443         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24444         EAI_OVERFLOW or AI_NUMERICSERV.
24445         * doc/posix-headers/netdb.texi: Document the problem.
24446
24447 2008-11-15  Bruno Haible  <bruno@clisp.org>
24448
24449         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24450
24451         Make the 'sched' module work on platforms where <sched.h> exists but
24452         is incomplete (such as Haiku).
24453         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24454         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24455         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24456         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24457         HAVE_STRUCT_SCHED_PARAM.
24458         * modules/sched (Depends-on): Add include_next.
24459         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24460         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24461         * doc/posix-headers/sched.texi: Document the issue.
24462
24463 2008-11-13  Jim Meyering  <meyering@redhat.com>
24464
24465         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24466         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24467         test would fail due to the difference in the Report bugs to ...
24468         line.  The expected address is empty, "<>", while the actual
24469         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24470
24471 2008-11-12  Bruno Haible  <bruno@clisp.org>
24472
24473         lstat: don't compile lstat.c on systems lacking lstat
24474         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24475         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24476         Reported by Daniel P. Berrange via Jim Meyering.
24477
24478 2008-11-12  Jim Meyering  <meyering@redhat.com>
24479
24480         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24481
24482 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24483
24484         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24485         instead.
24486
24487 2008-11-12  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/unicodeio.c: Include unistr.h.
24490         (utf8_wctomb): Remove function.
24491         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24492
24493 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24494
24495         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24496         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24497         <bruno@clisp.org>.
24498         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24499
24500 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24501
24502         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24503         * doc/gnulib.texi: Add section for warnings.
24504
24505 2008-11-11  Bruno Haible  <bruno@clisp.org>
24506
24507         * lib/sockets.h: Add a comment.
24508
24509 2008-11-11  Karl Berry  <karl@gnu.org>
24510
24511         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24512
24513 2008-11-11  Eric Blake  <ebb9@byu.net>
24514
24515         fdl.texi: avoid git symlinks
24516         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24517
24518 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24519
24520         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24521
24522 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24523
24524         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24525         (gl_WARN_ADD): Substitute $2 if literal.
24526
24527 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24528
24529         * m4/warning.m4: Remove.
24530
24531 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24532
24533         * m4/warnings.m4: Almost complete rewrite. :-)
24534
24535 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24536
24537         * modules/warnings: New module.
24538         * m4/warnings.m4: New file.
24539         * MODULES.html.sh: Mention warnings module.
24540         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24541         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24542
24543 2008-11-10  Eric Blake  <ebb9@byu.net>
24544
24545         fdl.texi: make a symlink to the latest version
24546         * doc/standards.texi: Revert today's earlier change.
24547         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24548         * doc/fdl.texi: ...and replace this with a symlink to the newer
24549         fdl-1.3.texi.
24550
24551 2008-11-10  Bruno Haible  <bruno@clisp.org>
24552
24553         * tests/test-select-fd.c (main): Accept the result file name as fourth
24554         argument.
24555         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24556         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24557
24558 2008-11-10  Bruno Haible  <bruno@clisp.org>
24559
24560         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24561         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24562         as autoconf-substituted macros.
24563         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24565         gl_NETDB_H_DEFAULTS. Set these variables.
24566         * modules/netdb (Makefile.am): Substitute these variables.
24567
24568 2008-11-10  Eric Blake  <ebb9@byu.net>
24569
24570         standards.texi: include correct file for FDL 1.3
24571         * doc/standards.texi (GNU Free Documentation License): Change
24572         include file to pull in FDL 1.3, not 1.2.
24573
24574         fdl.texi: revert accidental change to license
24575         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24576
24577 2008-11-10  Bruno Haible  <bruno@clisp.org>
24578
24579         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24580         cross-compiling guesses also when the native compile gives no result.
24581
24582 2008-11-10  Bruno Haible  <bruno@clisp.org>
24583
24584         * lib/spawni.c (__spawni): Force variable into the stack.
24585
24586 2008-11-10  Bruno Haible  <bruno@clisp.org>
24587
24588         Add support for Haiku.
24589         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24590         glibc and BeOS, but also on Haiku.
24591         * lib/fpurge.c (fpurge): Likewise.
24592         * lib/freadable.c (freadable): Likewise.
24593         * lib/freadahead.c (freadahead): Likewise.
24594         * lib/freading.c (freading): Likewise.
24595         * lib/freadptr.c (freadptr): Likewise.
24596         * lib/freadseek.c (freadptrinc): Likewise.
24597         * lib/fseeko.c (rpl_fseeko): Likewise.
24598         * lib/fseterr.c (fseterr): Likewise.
24599         * lib/fwritable.c (fwritable): Likewise.
24600         * lib/fwriting.c (fwriting): Likewise.
24601         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24602
24603 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24604
24605         * lib/config.charset: Treat Haiku like BeOS.
24606
24607 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24608
24609         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24610         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24611
24612 2008-11-08  Bruno Haible  <bruno@clisp.org>
24613
24614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24615         AC_CACHE_CHECK.
24616
24617 2008-11-08  Bruno Haible  <bruno@clisp.org>
24618
24619         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24620
24621 2008-11-08  Bruno Haible  <bruno@clisp.org>
24622
24623         * tests/test-select-fd.c: New file.
24624         * tests/test-select-in.sh: New file.
24625         * tests/test-select-out.sh: New file.
24626         * tests/test-select-stdin.c: New file.
24627         * modules/select-tests (Files): Add the new files.
24628         (Depends-on): Add gettimeofday.
24629         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24630         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24631         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24632
24633 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24634             Bruno Haible  <bruno@clisp.org>
24635
24636         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24637
24638 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24639
24640         * build-aux/pmccabe2html: Added support for C++ source files.
24641
24642 2008-11-05  Ben Pfaff  <blp@gnu.org>
24643
24644         Fix lib/close.c build on Windows.
24645         * modules/close (Files): Add lib/w32sock.h.
24646
24647 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24648
24649         Accept Bison's NEWS format.
24650         * build-aux/announce-gen (print_news_deltas): Tweak
24651         $re_prefix.
24652
24653 2008-11-04  Bruno Haible  <bruno@clisp.org>
24654
24655         * modules/random_r (Maintainer): Add glibc.
24656
24657 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24658
24659         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24660         by karl@freefriends.org (Karl Berry).
24661         * doc/alloca.texi: Likewise.
24662         * doc/c-ctype.texi: Likewise.
24663         * doc/c-strcase.texi: Likewise.
24664         * doc/c-strcaseeq.texi: Likewise.
24665         * doc/c-strcasestr.texi: Likewise.
24666         * doc/c-strstr.texi: Likewise.
24667         * doc/c-strtod.texi: Likewise.
24668         * doc/c-strtold.texi: Likewise.
24669         * doc/ctime.texi: Likewise.
24670         * doc/error.texi: Likewise.
24671         * doc/fdl.texi: Likewise.
24672         * doc/gcd.texi: Likewise.
24673         * doc/getdate.texi: Likewise.
24674         * doc/gnulib-intro.texi: Likewise.
24675         * doc/gnulib-tool.texi: Likewise.
24676         * doc/gnulib.texi: Likewise.
24677         * doc/inet_ntoa.texi: Likewise.
24678         * doc/maintain.texi: Likewise.
24679         * doc/make-stds.texi: Likewise.
24680         * doc/quote.texi: Likewise.
24681         * doc/regexprops-generic.texi: Likewise.
24682         * doc/standards.texi: Likewise.
24683         * doc/verify.texi: Likewise.
24684         * doc/visibility.texi: Likewise.
24685         * doc/gnulib.texi (GNU Free Documentation License): Include
24686         fdl-1.3.texi instead of fdl.texi.
24687
24688 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24689
24690         * doc/fdl-1.3.texi: New file, from
24691         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24692         * modules/fdl-1.3: Add.
24693         * MODULES.html.sh: Add fdl-1.3.
24694
24695 2008-11-03  Bruno Haible  <bruno@clisp.org>
24696
24697         Make determination of absolute name of header file work with AIX xlc.
24698         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24699         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24700         preprocessing.
24701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24702         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24703
24704 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24705
24706         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24707         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24708         <ludo@gnu.org>.
24709
24710 2008-11-02  Bruno Haible  <bruno@clisp.org>
24711
24712         Mark 'strpbrk' obsolete.
24713         * modules/strpbrk (Status, Notice): New sections.
24714         * modules/strtok_r (Depends-on): Add strpbrk.
24715
24716 2008-11-02  Bruno Haible  <bruno@clisp.org>
24717
24718         Mark 'strdup' obsolete.
24719         * modules/strdup (Status, Notice): New sections.
24720         * modules/findprog (Depends-on): Add strdup.
24721         * modules/getaddrinfo (Depends-on): Likewise.
24722         * modules/localename (Depends-on): Likewise.
24723         * modules/relocatable-lib (Depends-on): Likewise.
24724         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24725         * modules/relocatable-prog (Depends-on): Likewise.
24726         * modules/trim (Depends-on): Likewise.
24727         * modules/unictype/gen-ctype (Depends-on): Likewise.
24728         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24729
24730 2008-11-02  Bruno Haible  <bruno@clisp.org>
24731
24732         Mark 'strcspn' obsolete.
24733         * modules/strcspn (Status, Notice): New sections.
24734
24735 2008-11-02  Bruno Haible  <bruno@clisp.org>
24736
24737         Mark 'rmdir' obsolete.
24738         * modules/rmdir (Status, Notice): New sections.
24739         * modules/clean-temp (Depends-on): Add rmdir.
24740         * modules/openat (Depends-on): Likewise.
24741
24742 2008-11-02  Bruno Haible  <bruno@clisp.org>
24743
24744         Mark 'raise' obsolete.
24745         * modules/raise (Status, Notice): New sections.
24746         (Include): Specify <signal.h>.
24747         * modules/stdio (Depends-on): Add raise.
24748         * modules/write (Depends-on): Likewise.
24749
24750 2008-11-02  Bruno Haible  <bruno@clisp.org>
24751
24752         Mark 'memset' obsolete.
24753         * modules/memset (Status, Notice): New sections.
24754
24755 2008-11-02  Bruno Haible  <bruno@clisp.org>
24756
24757         Mark 'memmove' obsolete.
24758         * modules/memmove (Status, Notice): New sections.
24759         * modules/argp (Depends-on): Add memmove.
24760         * modules/argz (Depends-on): Likewise.
24761         * modules/canonicalize (Depends-on): Likewise.
24762         * modules/canonicalize-lgpl (Depends-on): Likewise.
24763         * modules/fts (Depends-on): Likewise.
24764         * modules/getcwd (Depends-on): Likewise.
24765         * modules/human (Depends-on): Likewise.
24766         * modules/regex (Depends-on): Likewise.
24767         * modules/striconveh (Depends-on): Likewise.
24768         * modules/trim (Depends-on): Likewise.
24769         * modules/unistr/u8-move (Depends-on): Likewise.
24770         * modules/unistr/u16-move (Depends-on): Likewise.
24771         * modules/unistr/u32-move (Depends-on): Likewise.
24772
24773 2008-11-02  Bruno Haible  <bruno@clisp.org>
24774
24775         Mark 'memcpy' obsolete.
24776         * modules/memcpy (Status, Notice): New sections.
24777
24778 2008-11-02  Bruno Haible  <bruno@clisp.org>
24779
24780         Mark 'memcmp' obsolete.
24781         * modules/memcmp (Status, Notice): New sections.
24782         * modules/argmatch (Depends-on): Add memchr.
24783         * modules/backupfile (Depends-on): Likewise.
24784         * modules/c-strcasestr (Depends-on): Likewise.
24785         * modules/crypto/des (Depends-on): Likewise.
24786         * modules/csharpcomp (Depends-on): Likewise.
24787         * modules/fnmatch (Depends-on): Likewise.
24788         * modules/git-merge-changelog (Depends-on): Likewise.
24789         * modules/isnand (Depends-on): Likewise.
24790         * modules/isnand-nolibm (Depends-on): Likewise.
24791         * modules/isnanf (Depends-on): Likewise.
24792         * modules/isnanf-nolibm (Depends-on): Likewise.
24793         * modules/isnanl (Depends-on): Likewise.
24794         * modules/isnanl-nolibm (Depends-on): Likewise.
24795         * modules/mbchar (Depends-on): Likewise.
24796         * modules/memcoll (Depends-on): Likewise.
24797         * modules/quotearg (Depends-on): Likewise.
24798         * modules/regex (Depends-on): Likewise.
24799         * modules/relocatable-prog (Depends-on): Likewise.
24800         * modules/same (Depends-on): Likewise.
24801         * modules/signbit (Depends-on): Likewise.
24802         * modules/strcasestr-simple (Depends-on): Likewise.
24803         * modules/unictype/gen-ctype (Depends-on): Likewise.
24804         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24805         * modules/uniname/uniname (Depends-on): Likewise.
24806         * modules/unistr/u8-cmp (Depends-on): Likewise.
24807
24808 2008-11-02  Bruno Haible  <bruno@clisp.org>
24809
24810         Mark 'memchr' obsolete.
24811         * modules/memchr (Status, Notice): New sections.
24812         * modules/argp (Depends-on): Add memchr.
24813         * modules/base64 (Depends-on): Likewise.
24814         * modules/c-strcasestr (Depends-on): Likewise.
24815         * modules/chdir-long (Depends-on): Likewise.
24816         * modules/fnmatch (Depends-on): Likewise.
24817         * modules/getsubopt (Depends-on): Likewise.
24818         * modules/git-merge-changelog (Depends-on): Likewise.
24819         * modules/glob (Depends-on): Likewise.
24820         * modules/strcasestr-simple (Depends-on): Likewise.
24821         * modules/strnlen (Depends-on): Likewise.
24822
24823 2008-11-02  Bruno Haible  <bruno@clisp.org>
24824
24825         Mark 'atexit' obsolete.
24826         * modules/atexit (Status, Notice): New sections.
24827         * modules/chdir-long (Depends-on): Add atexit.
24828         * modules/wait-process (Depends-on): Likewise.
24829
24830 2008-11-02  Bruno Haible  <bruno@clisp.org>
24831
24832         * gnulib-tool: New option --with-obsolete.
24833         (func_usage): Document it.
24834         (func_modules_transitive_closure): Drop obsolete dependencies if
24835         incobsolete is not true.
24836         (func_import): Read and save the incobsolete variable to the cache.
24837
24838 2008-11-02  Bruno Haible  <bruno@clisp.org>
24839
24840         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24841         * gnulib-tool: New option --extract-status.
24842         (func_usage): Document it.
24843         (sed_extract_prog): Recognize it.
24844         (func_get_status): New function.
24845
24846 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24847
24848         * modules/sockets (License): Change from LGPL to LGPLv2+.
24849
24850 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24851
24852         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24853
24854 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24855
24856         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24857         Mention times and sys_times.
24858         * modules/sys_times, modules/sys_times-tests: New modules.
24859         * modules/times, modules/times-tests: Likewise
24860         * m4/sys_times_h.m4: New file.
24861         * lib/sys_times.in.h: Likewise
24862         * lib/times.c: Likewise.
24863         * tests/test-sys_times.c: Likewise.
24864         * tests/test-times.c: Likewise.
24865         * doc/posix-headers/sys_times.texi: Update.
24866         * doc/posix-functions/times.texi: Update.
24867
24868 2008-10-28  Jim Meyering  <meyering@redhat.com>
24869
24870         * modules/tempname (Depends-on): Add lstat.
24871
24872         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24873
24874 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24875
24876         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24877         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24878         using idiom used elsewhere in gnulib.
24879
24880 2008-10-27  Jim Meyering  <meyering@redhat.com>
24881
24882         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24883
24884 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24885
24886         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24887         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24888         programs.
24889         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24890
24891 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24892
24893         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24894
24895 2008-10-27  Bruno Haible  <bruno@clisp.org>
24896
24897         * tests/test-lstat.c: Include <stdio.h>.
24898
24899 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24900
24901         * modules/lstat-tests: New module.
24902         * tests/test-lstat.c: New file.
24903
24904 2008-10-26  Jim Meyering  <meyering@redhat.com>
24905
24906         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24907
24908 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24909             Bruno Haible  <bruno@clisp.org>
24910
24911         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24912         * modules/configmake (Include): Add a note that the include must come
24913         after all system headers.
24914         * lib/javaversion.c: Include configmake.h after all other includes.
24915
24916 2008-10-26  Bruno Haible  <bruno@clisp.org>
24917
24918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24919         HAVE_STRUCT_RANDOM_DATA to 1.
24920         (gl_STDLIB_H): Simplify.
24921
24922 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24923
24924         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24925         substitute HAVE_STRUCT_RANDOM_DATA.
24926         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24927         random_data.
24928         * modules/stdlib (Makefile.am): Substitute
24929         HAVE_STRUCT_RANDOM_DATA.
24930
24931 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24932
24933         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24934         * doc/gnulib-intro.texi (Copyright): Likewise.
24935
24936 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24937
24938         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24939         findings.
24940
24941 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24942             Bruno Haible  <bruno@clisp.org>
24943
24944         * lib/unistd.in.h: Include <winsock2.h>.
24945         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24946         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24947         Provide dummy declarations.
24948         (gethostname): Override.
24949         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24950         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24951         gl_PREREQ_SYS_H_WINSOCK2.
24952         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24953         * doc/posix-functions/gethostname.texi: More details.
24954
24955 2008-10-25  Bruno Haible  <bruno@clisp.org>
24956
24957         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24958         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24959         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24960
24961         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24962         here ...
24963         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24965         gl_UNISTD_H_DEFAULTS.
24966
24967 2008-10-25  Eric Blake  <ebb9@byu.net>
24968
24969         signbit: avoid spurious compiler failure
24970         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24971         declarations inside function.
24972
24973 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24974             Bruno Haible  <bruno@clisp.org>
24975
24976         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24977         * modules/random_r (Depends-on): Add stdint.
24978
24979 2008-10-24  Bruno Haible  <bruno@clisp.org>
24980
24981         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24982         Eggert.
24983         * modules/strerror (License): Likewise.
24984
24985 2008-10-24  Jim Meyering  <meyering@redhat.com>
24986
24987         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24988         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24989
24990 2008-10-24  Eric Blake  <ebb9@byu.net>
24991
24992         getgroups: fix compilation when getgroups is available
24993         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24994         but with <config.h> override of getgroups disabled.
24995
24996 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24997
24998         * doc/gnulib.texi (Header files): Add note about C++ problems.
24999         Explained by Bruno Haible <bruno@clisp.org>.
25000
25001 2008-10-23  Bruno Haible  <bruno@clisp.org>
25002
25003         Define a dummy SA_NODEFER macro on Interix.
25004         * lib/signal.in.h (SA_NODEFER): Define fallback.
25005         Reported by Aleksey Cheusov <cheusov@tut.by> via
25006         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25007
25008 2008-10-23  Bruno Haible  <bruno@clisp.org>
25009
25010         * modules/freadahead (License): Change to LGPLv2+.
25011         Suggested by Simon Josefsson.
25012
25013 2008-10-23  Jim Meyering  <meyering@redhat.com>
25014
25015         random_r: new module
25016         * modules/random_r: New file.
25017         * m4/random_r.m4: New file.
25018         * lib/random_r.c: New file, from glibc.
25019         * modules/random_r-tests: New file.
25020         * tests/test-random_r.c: New file.
25021         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25022          Declare.
25023         (RAND_MAX): Define.
25024         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25025         * modules/stdlib: Substitute them, too.
25026         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25027         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25028         * doc/glibc-functions/random_r.texi: Likewise.
25029         * doc/glibc-functions/setstate_r.texi: Likewise.
25030         * doc/glibc-functions/srandom_r.texi: Likewise.
25031         * config/srclist.txt: Mention it.
25032
25033 2008-10-23  David Lutterkort  <lutter@redhat.com>
25034
25035         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25036         link requirement
25037
25038 2008-10-23  Jim Meyering  <meyering@redhat.com>
25039
25040         selinux-h: mark parameters of stub functions as intentionally unused
25041         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25042         * lib/se-context.in.h: Likewise.
25043
25044 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25045
25046         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25047
25048 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25049
25050         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25051
25052 2008-10-22  Eric Blake  <ebb9@byu.net>
25053
25054         glthread/thread: avoid compiler warning
25055         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25056         Add unreachable abort to silence compiler.
25057
25058 2008-10-22  Eric Blake  <ebb9@byu.net>
25059
25060         netdb: also supply struct addrinfo for cygwin 1.5.x
25061         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25062         older cygwin.
25063         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25064         cygwin.
25065         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25066
25067 2008-10-22  Bruno Haible  <bruno@clisp.org>
25068
25069         * users.txt: Update entry about pspp.
25070
25071 2008-10-21  Bruno Haible  <bruno@clisp.org>
25072
25073         Simplification.
25074         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25075         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25076
25077         Simplification.
25078         * lib/ioctl.c (ioctl): Don't undefine.
25079         * lib/socket.c (socket): Don't undefine.
25080
25081         Remove unused module indicator macros.
25082         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25083         GNULIB_$1 as a C macro.
25084
25085         * doc/posix-functions/close.texi: Undo last change.
25086         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25087         Windows platforms.
25088
25089 2008-10-21  Bruno Haible  <bruno@clisp.org>
25090
25091         Add gethostname() declaration to <unistd.h>.
25092         * lib/unistd.in.h (gethostname): New declaration.
25093         * lib/gethostname.c: Include <unistd.h>.
25094         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25095         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25097         and HAVE_GETHOSTNAME.
25098         * modules/gethostname (Depends-on): Add unistd.
25099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25100         (Include): Specify <unistd.h>.
25101         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25102         HAVE_GETHOSTNAME.
25103         * tests/test-gethostname.c: Include <unistd.h> first.
25104
25105 2008-10-21  Bruno Haible  <bruno@clisp.org>
25106
25107         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25108         * modules/select-tests (Depends-on): Likewise.
25109         Reported by Simon Josefsson.
25110
25111 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25112
25113         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25114         * lib/accept.c: New file, based on winsock.c.
25115         * lib/bind.c: New file, based on winsock.c.
25116         * lib/connect.c: New file, based on winsock.c.
25117         * lib/getpeername.c: New file, based on winsock.c.
25118         * lib/getsockname.c: New file, based on winsock.c.
25119         * lib/getsockopt.c: New file, based on winsock.c.
25120         * lib/ioctl.c: New file, based on winsock.c.
25121         * lib/listen.c: New file, based on winsock.c.
25122         * lib/recv.c: New file, based on winsock.c.
25123         * lib/recvfrom.c: New file, based on winsock.c.
25124         * lib/send.c: New file, based on winsock.c.
25125         * lib/sendto.c: New file, based on winsock.c.
25126         * lib/setsockopt.c: New file, based on winsock.c.
25127         * lib/shutdown.c: New file, based on winsock.c.
25128         * lib/socket.c: New file, based on winsock.c.
25129         * lib/w32sock.h: New file, based on winsock.c.
25130         * lib/winsock.c: Remove file.
25131         * modules/accept: Likewise.
25132         * modules/bind: Likewise.
25133         * modules/connect: Likewise.
25134         * modules/getpeername: Likewise.
25135         * modules/getsockname: Likewise.
25136         * modules/getsockopt: Likewise.
25137         * modules/ioctl: Likewise.
25138         * modules/listen: Likewise.
25139         * modules/recv: Likewise.
25140         * modules/recvfrom: Likewise.
25141         * modules/send: Likewise.
25142         * modules/sendto: Likewise.
25143         * modules/setsockopt: Likewise.
25144         * modules/shutdown: Likewise.
25145         * modules/socket: Use socket.c instead of winsock.c.
25146         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25147         * doc/posix-functions/accept.texi: Doc fix.
25148         * doc/posix-functions/bind.texi: Doc fix.
25149         * doc/posix-functions/close.texi: Doc fix.
25150         * doc/posix-functions/connect.texi: Doc fix.
25151         * doc/posix-functions/getpeername.texi: Doc fix.
25152         * doc/posix-functions/getsockname.texi: Doc fix.
25153         * doc/posix-functions/getsockopt.texi: Doc fix.
25154         * doc/posix-functions/ioctl.texi: Doc fix.
25155         * doc/posix-functions/listen.texi: Doc fix.
25156         * doc/posix-functions/recv.texi: Doc fix.
25157         * doc/posix-functions/recvfrom.texi: Doc fix.
25158         * doc/posix-functions/send.texi: Doc fix.
25159         * doc/posix-functions/sendto.texi: Doc fix.
25160         * doc/posix-functions/setsockopt.texi: Doc fix.
25161         * doc/posix-functions/shutdown.texi: Doc fix.
25162         * doc/posix-functions/socket.texi: Doc fix.
25163
25164 2008-10-20  Bruno Haible  <bruno@clisp.org>
25165
25166         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25167         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25168         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25169         as an alias for SIGABRT.
25170         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25171         (sigaction): Map it to SIGABRT.
25172         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25173
25174 2008-10-20  Bruno Haible  <bruno@clisp.org>
25175
25176         * lib/fts.c: Don't include lstat.h.
25177         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25178
25179         Move the lstat() declaration to <sys/stat.h>.
25180         * lib/lstat.h: Remove file.
25181         * lib/sys_stat.in.h: Add special invocation convention.
25182         (lstat): New declaration.
25183         * lib/lstat.c (orig_lstat): New function.
25184         (rpl_lstat): Use orig_lstat instead of lstat.
25185         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25186         AC_C_INLINE. Set REPLACE_LSTAT.
25187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25188         and REPLACE_LSTAT.
25189         * modules/lstat (Files): Remove lib/lstat.h.
25190         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25191         (Include): Specify <sys/stat.h> instead of lstat.h.
25192         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25193         REPLACE_LSTAT.
25194         * NEWS: Mention the change.
25195
25196 2008-10-20  Bruno Haible  <bruno@clisp.org>
25197
25198         * modules/posix_spawn-tests: New file.
25199         * tests/test-posix_spawn3.c: New file.
25200
25201 2008-10-20  Bruno Haible  <bruno@clisp.org>
25202
25203         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25204         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25205         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25206         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25207         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25208
25209 2008-10-20  Bruno Haible  <bruno@clisp.org>
25210
25211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25212         of posix_spawn on AIX 5.3.
25213
25214 2008-10-20  Bruno Haible  <bruno@clisp.org>
25215
25216         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25217
25218 2008-10-20  Bruno Haible  <bruno@clisp.org>
25219
25220         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25221         of AC_LANG_PROGRAM.
25222
25223 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25224
25225         * lib/netdb.in.h: Don't define GNU specific constants until they
25226         are supported or needed.  Reported by Bruno Haible
25227         <bruno@clisp.org>.
25228
25229 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25230
25231         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25232
25233 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25234
25235         * lib/getaddrinfo.h: Remove file.
25236         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25237         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25238         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25239         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25240         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25241         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25242         * tests/test-getaddrinfo.c: Likewise.
25243         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25244         * NEWS: Mention change.
25245
25246 2008-10-19  Bruno Haible  <bruno@clisp.org>
25247
25248         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25249
25250 2008-10-19  Bruno Haible  <bruno@clisp.org>
25251
25252         * lib/wait-process.c: Include simply <sys/wait.h>.
25253         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25254         WIFSTOPPED): Remove fallback definitions.
25255         * modules/wait-process (Depends-on): Add sys_wait.
25256
25257         New module 'sys_wait'.
25258         * modules/sys_wait: New file.
25259         * lib/sys_wait.in.h: New file, partially copied from
25260         lib/wait-process.c.
25261         * m4/sys_wait_h.m4: New file.
25262         * doc/posix-headers/sys_wait.texi: Mention the new module.
25263
25264 2008-10-19  Bruno Haible  <bruno@clisp.org>
25265
25266         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25267
25268 2008-10-19  Bruno Haible  <bruno@clisp.org>
25269
25270         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25271         * lib/wait-process.c (WAIT_T): Remove type.
25272         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25273         (wait_subprocess): Update.
25274
25275 2008-10-19  Bruno Haible  <bruno@clisp.org>
25276
25277         New module 'atoll'.
25278         * modules/atoll: New file.
25279         * lib/stdlib.in.h (atoll): New declaration.
25280         * lib/atoll.c: New file, from glibc with modifications.
25281         * m4/atoll.m4: New file.
25282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25283         HAVE_ATOLL.
25284         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25285         * doc/posix-functions/atoll.texi: Mention the new module.
25286
25287 2008-10-19  Bruno Haible  <bruno@clisp.org>
25288
25289         Add strtoull() declaration to <stdlib.h>.
25290         * lib/stdlib.in.h (strtoull): New declaration.
25291         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25292         Set HAVE_STRTOULL.
25293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25294         HAVE_STRTOULL.
25295         * modules/strtoull (Depends-on): Add stdlib.
25296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25297         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25298         HAVE_STRTOULL.
25299
25300 2008-10-19  Bruno Haible  <bruno@clisp.org>
25301
25302         Add strtoll() declaration to <stdlib.h>.
25303         * lib/stdlib.in.h (strtoll): New declaration.
25304         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25305         Set HAVE_STRTOLL.
25306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25307         HAVE_STRTOLL.
25308         * modules/strtoll (Depends-on): Add stdlib.
25309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25310         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25311
25312 2008-10-19  Bruno Haible  <bruno@clisp.org>
25313
25314         * modules/bcopy (Depends-on): Add strings.
25315         (Include): Specify <strings.h>.
25316
25317 2008-10-19  Bruno Haible  <bruno@clisp.org>
25318
25319         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25320
25321 2008-10-19  Bruno Haible  <bruno@clisp.org>
25322
25323         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25324         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25325         mingw.
25326
25327 2008-10-19  Bruno Haible  <bruno@clisp.org>
25328
25329         * lib/atanl.c: Don't include isnanl.h.
25330         * lib/cosl.c: Likewise.
25331         * lib/ldexpl.c: Likewise.
25332         * lib/logl.c: Likewise.
25333         * lib/sinl.c: Likewise.
25334         * lib/sqrtl.c: Likewise.
25335         * lib/tanl.c: Likewise.
25336
25337         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25338         * lib/isnanf.h: Remove file.
25339         * lib/isnand.h: Remove file.
25340         * lib/isnanl.h: Remove file.
25341         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25342         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25343         macros.
25344         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25345         HAVE_ISNANF, don't define it as a C macro.
25346         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25347         HAVE_ISNAND, don't define it as a C macro.
25348         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25349         HAVE_ISNANL, don't define it as a C macro.
25350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25351         HAVE_ISNAN[FDL].
25352         * modules/isnanf (Files): Remove lib/isnanf.h.
25353         (Depends-on): Add math.
25354         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25355         (Include): Specify <math.h> instead of isnanf.h.
25356         * modules/isnand (Files): Remove lib/isnand.h.
25357         (Depends-on): Add math.
25358         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25359         (Include): Specify <math.h> instead of isnand.h.
25360         * modules/isnanl (Files): Remove lib/isnanl.h.
25361         (Depends-on): Add math.
25362         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25363         (Include): Specify <math.h> instead of isnanl.h.
25364         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25365         HAVE_ISNAN[FDL].
25366         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25367         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25368         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25369         * NEWS: Mention the change.
25370
25371 2008-10-18  Bruno Haible  <bruno@clisp.org>
25372
25373         Add getusershell(), setusershell(), endusershell() declarations to
25374         <unistd.h>.
25375         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25376         declarations.
25377         * lib/getusershell.c: Include unistd.h.
25378         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25379         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25380         HAVE_GETUSERSHELL.
25381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25382         and HAVE_GETUSERSHELL.
25383         * modules/getusershell (Depends-on): Add unistd, extensions.
25384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25385         (Include): Specify <unistd.h>.
25386         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25387         HAVE_GETUSERSHELL.
25388
25389 2008-10-18  Bruno Haible  <bruno@clisp.org>
25390
25391         Add a getloadavg() declaration to <stdlib.h>.
25392         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25393         getloadavg declaration.
25394         (getloadavg): New declaration.
25395         * lib/getloadavg.c: Include <stdlib.h> first.
25396         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25397         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25398         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25400         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25401         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25403         (Include): Specify <stdlib.h>.
25404         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25405         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25406
25407 2008-10-18  Bruno Haible  <bruno@clisp.org>
25408
25409         * lib/dirchownmod.c: Don't include lchmod.h.
25410
25411         Move the lchmod() declaration to <sys/stat.h>.
25412         * lib/lchmod.h: Remove file.
25413         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25414         (lchmod): New declaration, moved here from lib/lchown.h.
25415         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25416         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25418         and HAVE_LCHMOD.
25419         * modules/lchmod (Files): Remove lib/lchmod.h.
25420         (Depends-on): Add sys_stat, extensions.
25421         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25422         (Include): Specify <sys/stat.h> instead of lchmod.h.
25423         * modules/sys_stat (Depends-on): Add link-warning.
25424         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25425         definition of GL_LINK_WARNING.
25426         * NEWS: Mention the change.
25427
25428 2008-10-18  Bruno Haible  <bruno@clisp.org>
25429
25430         * lib/fchdir.c: Don't include dirfd.h.
25431         * lib/fts.c: Likewise.
25432         * lib/getcwd.c: Likewise.
25433         * lib/glob.c: Likewise.
25434
25435         Move the dirfd() declaration to <dirent.h>.
25436         * lib/dirfd.h: Remove file.
25437         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25438         (dirfd): New declaration.
25439         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25441         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25442         HAVE_DECL_DIRFD.
25443         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25444         HAVE_DECL_DIRFD.
25445         * modules/dirfd (Files): Remove lib/dirfd.h.
25446         (Depends-on): Add dirent, extensions.
25447         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25448         (Include): Specify <dirent.h> instead of dirfd.h.
25449         * modules/dirent (Depends-on): Add link-warning.
25450         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25451         definition of GL_LINK_WARNING.
25452         * NEWS: Mention the change.
25453
25454 2008-10-18  Bruno Haible  <bruno@clisp.org>
25455
25456         Move the euidaccess() declaration to <unistd.h>.
25457         * lib/euidaccess.h: Remove file.
25458         * lib/unistd.in.h (euidaccess): New declaration.
25459         * lib/euidaccess.c: Don't include euidaccess.h.
25460         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25461         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25463         and HAVE_EUIDACCESS.
25464         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25465         (Depends-on): Add unistd.
25466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25467         (Include): Specify <unistd.h> instead of euidaccess.h.
25468         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25469         HAVE_EUIDACCESS.
25470         * NEWS: Mention the change.
25471
25472 2008-10-18  Bruno Haible  <bruno@clisp.org>
25473
25474         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25475
25476         Move the getdomainname() declaration to <unistd.h>.
25477         * lib/getdomainname.h: Remove file.
25478         * lib/unistd.in.h (getdomainname): New declaration.
25479         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25480         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25481         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25482         HAVE_GETDOMAINNAME.
25483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25484         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25485         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25486         (Depends-on): Add unistd, extensions.
25487         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25488         (Includes): Specify <unistd.h> instead of getdomainname.h.
25489         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25490         HAVE_GETDOMAINNAME.
25491         * NEWS: Mention the change.
25492
25493 2008-10-18  Bruno Haible  <bruno@clisp.org>
25494
25495         * modules/dirent: New file.
25496         * m4/dirent_h.m4: New file.
25497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25498         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25499         * modules/fchdir (Files): Remove lib/dirent.in.h.
25500         (Depends-on): Add dirent.
25501         (Makefile.am): Move rules to modules/dirent.
25502         * doc/posix-headers/dirent.texi: Mention the new module.
25503
25504 2008-10-18  Bruno Haible  <bruno@clisp.org>
25505
25506         Avoid -Wunused-parameter warnings in public gnulib header files.
25507         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25508         macro.
25509         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25510
25511 2008-10-18  Bruno Haible  <bruno@clisp.org>
25512
25513         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25514         * doc/glibc-functions/error.texi: Mention the module 'error'.
25515         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25516         * doc/glibc-functions/getdomainname.texi: Mention the module
25517         'getdomainname'.
25518         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25519         * doc/glibc-functions/getpagesize.texi: Mention the module
25520         'getpagesize'.
25521         * doc/glibc-functions/getusershell.texi: Mention the module
25522         'getusershell'.
25523         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25524         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25525         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25526         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25527         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25528         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25529         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25530         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25531         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25532         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25533         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25534         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25535         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25536         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25537
25538 2008-10-17  Bruno Haible  <bruno@clisp.org>
25539
25540         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25541         HP-UX and IRIX, use -0.0L.
25542         * tests/test-ceill.c (minus_zero): Likewise.
25543         * tests/test-floorl.c (minus_zero): Likewise.
25544         * tests/test-frexpl.c (minus_zero): Likewise.
25545         * tests/test-isnan.c (minus_zerol): Likewise.
25546         * tests/test-isnanl.h (minus_zero): Likewise.
25547         * tests/test-ldexpl.c (minus_zero): Likewise.
25548         * tests/test-roundl.c (minus_zero): Likewise.
25549         * tests/test-signbit.c (minus_zerol): Likewise.
25550         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25551         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25552         * tests/test-truncl.c (minus_zero): Likewise.
25553         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25554         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25555         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25556         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25557
25558 2008-10-17  Bruno Haible  <bruno@clisp.org>
25559
25560         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25561         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25562         that it gets activated only for gcc >= 3.0.
25563         * lib/dirent.in.h: Likewise.
25564         * lib/errno.in.h: Likewise.
25565         * lib/fcntl.in.h: Likewise.
25566         * lib/float.in.h: Likewise.
25567         * lib/iconv.in.h: Likewise.
25568         * lib/inttypes.in.h: Likewise.
25569         * lib/locale.in.h: Likewise.
25570         * lib/math.in.h: Likewise.
25571         * lib/netdb.in.h: Likewise.
25572         * lib/netinet_in.in.h: Likewise.
25573         * lib/search.in.h: Likewise.
25574         * lib/signal.in.h: Likewise.
25575         * lib/spawn.in.h: Likewise.
25576         * lib/stdarg.in.h: Likewise.
25577         * lib/stdint.in.h: Likewise.
25578         * lib/stdio.in.h: Likewise.
25579         * lib/stdlib.in.h: Likewise.
25580         * lib/string.in.h: Likewise.
25581         * lib/strings.in.h: Likewise.
25582         * lib/sys_file.in.h: Likewise.
25583         * lib/sys_ioctl.in.h: Likewise.
25584         * lib/sys_select.in.h: Likewise.
25585         * lib/sys_socket.in.h: Likewise.
25586         * lib/sys_stat.in.h: Likewise.
25587         * lib/sys_time.in.h: Likewise.
25588         * lib/sysexits.in.h: Likewise.
25589         * lib/time.in.h: Likewise.
25590         * lib/unistd.in.h: Likewise.
25591         * lib/wchar.in.h: Likewise.
25592         * lib/wctype.in.h: Likewise.
25593         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25594
25595 2008-10-17  Jim Meyering  <meyering@redhat.com>
25596
25597         ignore-value: don't depend on inline module
25598         * modules/ignore-value (Depends-on): Remove 'inline'.
25599         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25600         Suggestion from Bruno Haible.
25601
25602 2008-10-17  Bruno Haible  <bruno@clisp.org>
25603
25604         New implementation of condition variables for Win32.
25605         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25606         (gl_linked_waitqueue_t): New type.
25607         (gl_cond_t): Use it.
25608         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25609         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25610         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25611         (glthread_cond_init_func, glthread_cond_wait_func,
25612         glthread_cond_timedwait_func, glthread_cond_signal_func,
25613         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25614         Reimplemented on the basis of gl_linked_waitqueue_t.
25615         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25616         gl_waitqueue_t.
25617         (gl_rwlock_t): Update.
25618         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25619
25620 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25621
25622         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25623         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25624
25625 2008-10-17  Jim Meyering  <meyering@redhat.com>
25626
25627         ignore-value: new module
25628         * modules/ignore-value: New file.
25629         * lib/ignore-value.h: New file.
25630         * MODULES.html.sh (Compiler warning management): New section,
25631         just for this module.  More to come.
25632
25633 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25634
25635         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25636         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25637         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25638
25639 2008-10-16  Jim Meyering  <meyering@redhat.com>
25640
25641         openat-die.c: avoid 'no previous prototype' warning
25642         * lib/openat-die.c: Include "openat.h".
25643         Reported by Reuben Thomas <rrt@sc3d.org>.
25644
25645 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25646
25647         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25648         * lib/netdb.in.h: Fix typo.
25649         Reported by Bruno Haible  <bruno@clisp.org>
25650
25651         * lib/netdb.in.h: Include sys/socket.h for platforms without
25652         netdb.h, to get structures like hostent on MinGW.
25653         * modules/netdb (Depends-on): Add sys_socket.
25654
25655 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25656
25657         * modules/netdb, modules/netdb-tests: New file.
25658         * m4/netdb_h.m4: New file.
25659         * lib/netdb.in.h: Add, currently just an empty file pending
25660         definitions.
25661         * tests/test-netdb.c: New file.
25662         * doc/posix-headers/netdb.texi: Mention that we replace it if
25663         needed.
25664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25665         netdb.
25666
25667 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25668
25669         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25670         with code.
25671
25672 2008-10-13  Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/glthread/cond.c (glthread_cond_wait_func,
25675         glthread_cond_timedwait_func): Add a comment.
25676
25677 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25678
25679         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25680         * tests/test-select.c: Likewise,
25681
25682 2008-10-13  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/glthread/cond.c (glthread_cond_wait_func,
25685         glthread_cond_timedwait_func): Fix variable name.
25686         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25687
25688 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25689
25690         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25692         struct sockaddr.sa_len.
25693         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25694
25695 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25696
25697         * build-aux/pmccabe2html: Add css and css_url parameters.
25698
25699 2008-10-12  Bruno Haible  <bruno@clisp.org>
25700
25701         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25702         calling aclx_get.
25703         Reported by Rainer Tammer <tammer@tammer.net>.
25704
25705 2008-10-12  Bruno Haible  <bruno@clisp.org>
25706
25707         Use msvcrt aware primitives for creation/termination of Win32 threads.
25708         * lib/glthread/thread.c: Include <process.h>.
25709         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25710         (wrapper_func): Update signature.
25711         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25712
25713 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25714             Bruno Haible  <bruno@clisp.org>
25715
25716         Provide a Win32 implementation of the 'cond' module.
25717         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25718         * lib/glthread/cond.c (glthread_cond_init_func,
25719         glthread_cond_wait_func, glthread_cond_timedwait_func,
25720         glthread_cond_signal_func, glthread_cond_broadcast_func,
25721         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25722         * modules/cond (Dependencies): Add gettimeofday.
25723
25724 2008-10-11  Bruno Haible  <bruno@clisp.org>
25725
25726         Make sleep work on older versions of mingw.
25727         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25728         only whether it exists.
25729         * doc/posix-functions/sleep.texi: Mention the problem with older
25730         versions of mingw.
25731
25732 2008-10-11  Bruno Haible  <bruno@clisp.org>
25733
25734         New module 'shutdown'.
25735         * modules/shutdown: New file.
25736         * lib/sys_socket.in.h (shutdown): New declaration.
25737         * lib/winsock.c (shutdown): New function.
25738         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25739         GNULIB_SHUTDOWN.
25740         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25741         * doc/posix-functions/shutdown.texi: Document the new module.
25742
25743 2008-10-11  Jim Meyering  <meyering@redhat.com>
25744
25745         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25746
25747 2008-10-11  Bruno Haible  <bruno@clisp.org>
25748
25749         New module 'fclose'.
25750         * modules/fclose: New file.
25751         * lib/stdio.in.h (fclose): New declaration.
25752         * lib/fclose.c: New file.
25753         * m4/fclose.m4: New file.
25754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25755         REPLACE_FCLOSE.
25756         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25757         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25758         REPLACE_FCLOSE.
25759         * modules/close (Depends-on): fclose.
25760         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25761
25762 2008-10-11  Bruno Haible  <bruno@clisp.org>
25763
25764         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25765         set errno and don't call _close.
25766
25767 2008-10-10  Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25770         ACL, not afterwards. Fixes test failure on Cygwin.
25771
25772 2008-10-09  Ben Pfaff  <blp@gnu.org>
25773
25774         * build-aux/announce-gen: Fix gnulib version related part of usage
25775         message.  Die with a useful error message if no tarballs are
25776         found.
25777
25778 2008-10-10  Jim Meyering  <meyering@redhat.com>
25779
25780         bootstrap: use git's --depth=N option only if it's supported
25781         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25782         recognize the --depth option.  Reported by Pádraig Brady.
25783
25784 2008-10-09  Bruno Haible  <bruno@clisp.org>
25785
25786         New module 'ioctl'.
25787         * modules/ioctl: New file.
25788         * lib/sys_socket.in.h (ioctl): Remove declaration.
25789         * lib/winsock.c: Include <sys/ioctl.h>.
25790         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25791         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25792         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25793         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25794         * doc/posix-functions/ioctl.texi: Mention the new module.
25795
25796 2008-10-09  Bruno Haible  <bruno@clisp.org>
25797
25798         New module 'sys_ioctl'.
25799         * lib/sys_ioctl.in.h: New file.
25800         * m4/sys_ioctl_h.m4: New file.
25801         * modules/sys_ioctl: New file.
25802         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25803
25804 2008-10-09  Bruno Haible  <bruno@clisp.org>
25805
25806         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25807         * lib/winsock.c: Include <stdarg.h>.
25808         (rpl_ioctl): Change to second argument 'int' and then varargs.
25809
25810 2008-10-09  Bruno Haible  <bruno@clisp.org>
25811
25812         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25813         when the sys_socket module is present and the system has <winsock2.h>.
25814
25815 2008-10-09  Bruno Haible  <bruno@clisp.org>
25816
25817         * doc/posix-functions/close.texi: Mention module 'close' instead of
25818         module 'sys_socket'.
25819
25820 2008-10-09  Bruno Haible  <bruno@clisp.org>
25821
25822         * doc/glibc-headers/sys_ioctl.texi: New file.
25823         * doc/gnulib.texi: Include it.
25824
25825 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25826             Bruno Haible  <bruno@clisp.org>
25827
25828         Combine the two replacements of 'close'.
25829         * lib/sys_socket.in.h (close): Define to a reminder to include
25830         <unistd.h>.
25831         (_gl_close_fd_maybe_socket): New declaration.
25832         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25833         * lib/winsock.c (close): Remove undefinition.
25834         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25835         needed for the gnulib module 'close'.
25836         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25837         define to an error symbol or to a warning, if suitable.
25838         * lib/close.c: Include <sys/socket.h>.
25839         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25840         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25841         UNISTD_H_HAVE_WINSOCK2_H.
25842         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25844         UNISTD_H_HAVE_WINSOCK2_H.
25845         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25846         (configure.ac): Set a module indicator.
25847         (Makefile.am): Substitute GNULIB_CLOSE.
25848         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25849         * modules/poll-tests (Depends-on): Add close.
25850         * modules/select-tests (Depends-on): Likewise.
25851
25852 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25853             Bruno Haible  <bruno@clisp.org>
25854
25855         New module 'close'.
25856         * modules/close: New file.
25857         * lib/unistd.in.h (close): Move declaration out of the
25858         FCHDIR_REPLACEMENT scope.
25859         (_gl_unregister_fd): New declaration.
25860         * lib/close.c: New file.
25861         * lib/fchdir.c (rpl_close): Remove function.
25862         * m4/close.m4: New file.
25863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25864         close.
25865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25866         REPLACE_CLOSE.
25867         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25868         REPLACE_CLOSE.
25869         * modules/fchdir (Depends-on): Add close.
25870
25871 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25872             Bruno Haible  <bruno@clisp.org>
25873
25874         * lib/fcntl.in.h (open): Simplify conditionals.
25875         (_gl_register_fd): New declaration.
25876         * lib/fchdir.c (rpl_open): Remove function.
25877         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25878         also.
25879         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25881         open.
25882
25883 2008-10-09  Jim Meyering  <meyering@redhat.com>
25884
25885         GNUmakefile: use the more name-space-friendly "_version"
25886         * top/GNUmakefile (_dummy): Update.
25887         (_version): Rename from "version".
25888
25889 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25890             Bruno Haible  <bruno@clisp.org>
25891
25892         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25893         rpl_close.
25894         (_gl_register_fd): New function, extracted from rpl_open.
25895         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25896         (rpl_open, rpl_opendir): Use _gl_register_fd.
25897
25898 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25899
25900         Fix organization of 'open' replacement.
25901         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25902         (gl_FUNC_OPEN): Use it.
25903         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25904
25905 2008-10-08  Bruno Haible  <bruno@clisp.org>
25906
25907         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25908
25909 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25910
25911         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25912         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25913         listen).
25914
25915 2008-10-08  Eric Blake  <ebb9@byu.net>
25916
25917         GNUmakefile: add 'make version' target
25918         * top/GNUmakefile (_curr-ver): Split version update rules...
25919         (version): ...into a target.
25920
25921 2008-10-07  Bruno Haible  <bruno@clisp.org>
25922
25923         Use a more portable replacement expression for -0.0L.
25924         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25925         instead of -0.0L. Fix m4 quotation.
25926
25927         * tests/test-signbit.c: Include <float.h>.
25928         (minus_zero): New variable.
25929         (test_signbitl): Use minus_zero instead of -zero.
25930         * modules/signbit-tests (Depends-on): Add float.
25931
25932         * tests/test-ceill.c: Include <float.h>.
25933         (zero): Remove variable.
25934         (minus_zero): New variable.
25935         (main): Use minus_zero instead of -zero.
25936         * modules/ceill-tests (Depends-on): Add float.
25937
25938         * tests/test-floorl.c: Include <float.h>.
25939         (zero): Remove variable.
25940         (minus_zero): New variable.
25941         (main): Use minus_zero instead of -zero.
25942         * modules/floorl-tests (Depends-on): Add float.
25943
25944         * tests/test-roundl.c: Include <float.h>.
25945         (zero): Remove variable.
25946         (minus_zero): New variable.
25947         (main): Use minus_zero instead of -zero.
25948         * modules/roundl-tests (Depends-on): Add float.
25949
25950         * tests/test-truncl.c: Include <float.h>.
25951         (zero): Remove variable.
25952         (minus_zero): New variable.
25953         (main): Use minus_zero instead of -zero.
25954         * modules/truncl-tests (Depends-on): Add float.
25955
25956         * tests/test-frexpl.c (zero): Remove variable.
25957         (minus_zero): New variable.
25958         (main): Use minus_zero instead of -zero.
25959         * modules/frexpl-tests (Depends-on): Add float.
25960
25961         * tests/test-isnan.c (zerol): Remove variable.
25962         (minus_zerol): New variable.
25963         (test_long_double): Use minus_zerol instead of -zerol.
25964         * modules/isnan-tests (Depends-on): Add float.
25965
25966         * tests/test-isnanl.h (zero): Remove variable.
25967         (minus_zero): New variable.
25968         (main): Use minus_zero instead of -zero.
25969         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25970         * modules/isnanl-tests (Depends-on): Add float.
25971
25972         * tests/test-ldexpl.c (zero): Remove variable.
25973         (minus_zero): New variable.
25974         (main): Use minus_zero instead of -zero.
25975         * modules/ldexpl-tests (Depends-on): Add float.
25976
25977         * tests/test-snprintf-posix.h (zerol): Remove variable.
25978         (minus_zerol): New variable.
25979         (test_function): Use minus_zerol instead of -zerol.
25980         * modules/snprintf-posix-tests (Depends-on): Add float.
25981         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25982
25983         * tests/test-sprintf-posix.h (zerol): Remove variable.
25984         (minus_zerol): New variable.
25985         (test_function): Use minus_zerol instead of -zerol.
25986         * modules/sprintf-posix-tests (Depends-on): Add float.
25987         * modules/vsprintf-posix-tests (Depends-on): Add float.
25988
25989         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25990         (minus_zerol): New variable.
25991         (test_function): Use minus_zerol instead of -zerol.
25992         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25993
25994         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25995         (minus_zerol): New variable.
25996         (test_function): Use minus_zerol instead of -zerol.
25997         * modules/vasprintf-posix-tests (Depends-on): Add float.
25998
25999 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26000
26001         * MODULES.html.sh (Support for building documentation): Mention
26002         pmccabe2html.  Sort entries.
26003
26004         Add pmccabe2html module, from gnupdf.
26005         * build-aux/pmccabe.css: New file.
26006         * build-aux/pmccabe2html: New file.
26007         * m4/pmccabe2html.m4: New file.
26008         * modules/pmccabe2html: New file.
26009
26010 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26011
26012         flock: new module
26013         * MODULES.html.sh: Add to list of modules.
26014         * lib/flock.c: flock implementation for Windows and Unix systems
26015         which have fcntl.
26016         * doc/glibc-functions/flock.texi: Update documentation.
26017         * lib/sys_file.in.h: <sys/file.h> header file.
26018         * m4/flock.m4: M4 macros.
26019         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26020         * modules/flock: flock module.
26021         * modules/flock-tests: flock tests module.
26022         * modules/sys_file: sys/file.h module.
26023         * tests/test-flock.c: test suite for flock.
26024
26025 2008-10-06  Jim Meyering  <meyering@redhat.com>
26026
26027         bootstrap: check for LT_INIT more portably still ;-)
26028         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26029         Spotted by Bruno Haible.
26030
26031 2008-10-06  Eric Blake  <ebb9@byu.net>
26032
26033         test-signbit: avoid tripping Irix cc bug on -0.0L
26034         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26035         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26036         entire testsuite consistent and avoids an Irix 6.2 bug.
26037
26038 2008-10-05  Bruno Haible  <bruno@clisp.org>
26039             Jim Meyering  <jim@meyering.net>
26040
26041         Add an option for ignoring EPIPE during close_stdout.
26042         * lib/closeout.h: Include <stdbool.h>.
26043         (close_stdout_set_ignore_EPIPE): New declaration.
26044         * lib/closeout.c: Include <stdbool.h>.
26045         (ignore_EPIPE): New variable.
26046         (close_stdout_set_ignore_EPIPE): New function.
26047         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26048         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26049         failure.
26050         * modules/closeout (Depends-on): Add stdbool.
26051
26052 2008-10-05  Bruno Haible  <bruno@clisp.org>
26053
26054         * modules/accept: New file.
26055         * modules/bind: New file.
26056         * modules/connect: New file.
26057         * modules/getpeername: New file.
26058         * modules/getsockname: New file.
26059         * modules/getsockopt: New file.
26060         * modules/listen: New file.
26061         * modules/recv: New file.
26062         * modules/recvfrom: New file.
26063         * modules/send: New file.
26064         * modules/sendto: New file.
26065         * modules/setsockopt: New file.
26066         * modules/socket: New file.
26067         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26068         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26069         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26070         the particular module is requested. Add a link warning when the
26071         particular module is not requested.
26072         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26073         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26074         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26075         the particular module is requested.
26076         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26077         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26078         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26079         * modules/sys_socket (Depends-on): Add link-warning.
26080         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26081         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26082         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26083         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26084         GL_LINK_WARNING.
26085         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26086         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26087         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26088         * doc/posix-functions/getpeername.texi: Mention the new module
26089         'getpeername'.
26090         * doc/posix-functions/getsockname.texi: Mention the new module
26091         'getsockname'.
26092         * doc/posix-functions/getsockopt.texi: Mention the new module
26093         'getsockopt'.
26094         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26095         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26096         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26097         * doc/posix-functions/send.texi: Mention the new module 'send'.
26098         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26099         * doc/posix-functions/setsockopt.texi: Mention the new module
26100         'setsockopt'.
26101         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26102         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26103         listen, connect, accept.
26104         * modules/select-tests (Depends-on): Likewise.
26105
26106 2008-10-05  Bruno Haible  <bruno@clisp.org>
26107
26108         * lib/winsock.c (strerror): Remove unused #undef.
26109         (rpl_close): Remove unused local variable.
26110
26111         * modules/sys_socket (Depends-on); Add errno.
26112
26113 2008-10-05  Bruno Haible  <bruno@clisp.org>
26114
26115         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26116         (select): Add a link warning when the 'select' module is not used.
26117         * modules/sys_select (Depends-on): Add link-warning.
26118         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26119         Suggested by Paolo Bonzini.
26120
26121 2008-10-05  Jim Meyering  <meyering@redhat.com>
26122
26123         bootstrap: check for LT_INIT more portably
26124         * build-aux/bootstrap: Avoid using grep -E, since it's not
26125         portable enough.  Suggestion from Bruno Haible.
26126
26127 2008-10-05  Bruno Haible  <bruno@clisp.org>
26128
26129         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26130         as being fixed by gnulib.
26131
26132 2008-10-05  Bruno Haible  <bruno@clisp.org>
26133
26134         * modules/select-tests: New file, mostly copied from
26135         modules/sys_select-tests.
26136         * tests/test-select.c: New file, mostly copied from
26137         tests/test-sys_select.c.
26138         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26139         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26140         (Makefile.am): Remove test_sys_select_LDADD.
26141
26142         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26143         to an undefined symbol, for an error message.
26144         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26145         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26146         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26147         winsock-select.c here.
26148         * modules/sys_select (Files): Remove lib/winsock-select.c.
26149         (Depends-on): Remove alloca.
26150         (Makefile.am): Substitute GNULIB_SELECT.
26151         * modules/select: New file.
26152         * doc/posix-functions/select.texi: Update.
26153
26154 2008-10-05  Bruno Haible  <bruno@clisp.org>
26155
26156         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26157         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26158         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26159         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26160         getdtablesize.
26161         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26162         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26163
26164 2008-10-05  Bruno Haible  <bruno@clisp.org>
26165
26166         * modules/getdtablesize-tests: New file.
26167         * tests/test-getdtablesize.c: New file.
26168
26169         New module 'getdtablesize'.
26170         * lib/unistd.in.h (getdtablesize): New declaration.
26171         * lib/getdtablesize.c: New file.
26172         * m4/getdtablesize.m4: New file.
26173         * modules/getdtablesize: New file.
26174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26175         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26176         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26177         HAVE_GETDTABLESIZE.
26178         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26179
26180 2008-10-05  Bruno Haible  <bruno@clisp.org>
26181
26182         * modules/sched (Makefile.am): Fix typo.
26183         Reported by Simon Josefsson.
26184
26185 2008-10-05  Jim Meyering  <meyering@redhat.com>
26186
26187         bootstrap: check for LT_INIT, too
26188         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26189         are deprecated.  Suggestion from Ralf Wildenhues.
26190
26191 2008-10-05  Bruno Haible  <bruno@clisp.org>
26192
26193         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26194         overriding them by ours.
26195         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26196
26197 2008-10-05  Jim Meyering  <meyering@redhat.com>
26198
26199         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26200         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26201         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26202
26203 2008-10-04  Bruno Haible  <bruno@clisp.org>
26204
26205         * modules/dup2 (License): Change to LGPLv2+.
26206         * modules/sleep (License): Likewise.
26207         * modules/perror (License): Likewise.
26208         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26209         Blake.
26210         * modules/signal (License): Likewise.
26211         * modules/sigprocmask (License): Likewise.
26212         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26213         Meyering.
26214
26215 2008-10-04  Bruno Haible  <bruno@clisp.org>
26216
26217         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26218         Reported by Rainer Tammer <tammer@tammer.net>.
26219
26220 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26221             Bruno Haible  <bruno@clisp.org>
26222
26223         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26224         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26225         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26226
26227 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26228
26229         filevercmp: new module
26230         * lib/filevercmp.h: New function filevercmp comparing version strings.
26231         * lib/filevercmp.c: Implementation of filevercmp function.
26232         * modules/filevercmp: Module metadata.
26233         * tests/test-filevercmp.c: Unit test for new module.
26234         * modules/filevercmp-tests: Unit test metadata.
26235         * MODULES.html.sh: Add filevercmp module.
26236
26237 2008-10-03  Bruno Haible  <bruno@clisp.org>
26238
26239         * lib/c-ctype.h: Add comment.
26240         Reported by Jim Meyering.
26241
26242 2008-10-02  Bruno Haible  <bruno@clisp.org>
26243
26244         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26245
26246 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26247
26248         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26249         name of bootstrap.conf accordingly.
26250
26251 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26252
26253         * build-aux/bootstrap: Install git-merge-changelog configuration
26254         items into .gitconfig if needed.
26255
26256 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26257
26258         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26259         git repository, and initialize/update it accordingly.
26260
26261 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26262
26263         * modules/fsync-tests: New file.
26264         * tests/test-fsync.c: New file.
26265
26266         New module 'fsync'.
26267         * lib/fsync.c: New file.
26268         * m4/fsync.m4: New file.
26269         * modules/fsync: New file.
26270         * lib/unistd.in.h (fsync): New declaration.
26271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26272         GNULIB_FSYNC and HAVE_FSYNC.
26273         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26274         * MODULES.html.sh (posix_functions): Add fsync.
26275         * doc/posix-functions/fsync.texi: Mention the new module.
26276
26277 2008-10-02  Jim Meyering  <meyering@redhat.com>
26278
26279         fts.c: sync with similar code from coreutils' remove.c
26280         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26281         Guard also with "#if defined __linux__", since for now at least,
26282         this code is Linux-kernel-specific.
26283
26284 2008-10-02  Jim Meyering  <meyering@redhat.com>
26285
26286         fts: bug fixes
26287         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26288         Include <sys/vfs.h>, not <sys/statfs.h>.
26289
26290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26291         Include <sys/vfs.h>, not <sys/statfs.h>.
26292
26293 2008-10-01  Bruno Haible  <bruno@clisp.org>
26294
26295         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26296         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26297         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26298         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26299         * doc/posix-functions/posix_spawnp.texi: Likewise.
26300         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26301         whether posix_spawn actually works.
26302         * m4/pipe.m4 (gl_PIPE): Likewise.
26303         * modules/execute (Files): Add m4/posix_spawn.m4.
26304         * modules/pipe (Files): Add m4/posix_spawn.m4.
26305         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26306
26307 2008-10-01  Jim Meyering  <meyering@redhat.com>
26308
26309         remove trailing spaces
26310         * NEWS: Likewise.
26311         * lib/poll.c (poll): Likewise.
26312         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26313         * lib/winsock.c (rpl_close): Likewise.
26314         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26315         * modules/yield: Likewise.
26316         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26317         * tests/test-sys_select.c (connect_to_socket): Likewise.
26318
26319         fts.c: adjust a new interface to be more generally useful
26320         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26321         (fts_build): Adjust caller.
26322
26323 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26324
26325         * modules/cond-tests: New file.
26326         * tests/test-cond.c: New file.
26327
26328 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26329             Bruno Haible  <bruno@clisp.org>
26330
26331         * modules/cond (Dependencies): Add errno, time.
26332         * lib/glthread/cond.h: Include <time.h>.
26333         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26334         across platforms.
26335
26336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26337             Bruno Haible  <bruno@clisp.org>
26338
26339         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26340
26341 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26342             Bruno Haible  <bruno@clisp.org>
26343
26344         * modules/tls-tests (Depends-on): Add thread, yield.
26345         (configure.ac): Remove all checks.
26346         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26347         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26348         gl_thread_self): Remove definitions. Include glthread/thread.h and
26349         glthread/yield.h instead.
26350         (test_tls): Pass an additional NULL argument to gl_thread_join.
26351
26352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26353             Bruno Haible  <bruno@clisp.org>
26354
26355         * modules/lock-tests (Depends-on): Add thread, yield.
26356         (configure.ac): Remove all checks.
26357         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26358         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26359         gl_thread_self): Remove definitions. Include glthread/thread.h and
26360         glthread/yield.h instead.
26361         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26362         additional NULL argument to gl_thread_join.
26363
26364 2008-09-30  Bruno Haible  <bruno@clisp.org>
26365
26366         Fix the Win32 implementation of the 'thread' module.
26367         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26368         pointer type.
26369         (gl_thread_self): Invoke gl_thread_self_func.
26370         (gl_thread_self_func): New declaration.
26371         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26372         (do_init_self_key, init_self_key): New functions.
26373         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26374         Remove some fields.
26375         (running_threads, running_lock): Remove variables.
26376         (get_current_thread_handle): New function.
26377         (gl_thread_self_func, wrapper_func, glthread_create_func,
26378         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26379         simplified.
26380
26381 2008-09-30  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26384         files.
26385
26386 2008-09-30  Jim Meyering  <meyering@redhat.com>
26387
26388         fts.m4: correct the test for statfs.f_type
26389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26390         when checking for statfs.f_type.
26391
26392 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26393
26394         tests: avoid some compiler warnings
26395         * tests/test-memchr.c (main): Pass NULL indirectly.
26396         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26397
26398 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26399
26400         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26401         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26402         exactly specified dayshifts.
26403         (dayshift): New rule.
26404         (rel): Add dayshift.
26405         (relative_time_table) [tomorrow, yesterday, today, now]:
26406         Use tDAY_SHIFT in place of tDAY_UNIT.
26407         * tests/test-getdate.c: Add tests for now-disallowed countable
26408         dayshifts, e.g., "4 yesterday ago".
26409
26410 2008-09-29  Bruno Haible  <bruno@clisp.org>
26411
26412         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26413         * tests/test-posix_spawn1.in.sh: Renamed from
26414         tests/test-posix_spawn.in.sh.
26415         * tests/test-posix_spawn2.c: New file.
26416         * tests/test-posix_spawn2.in.sh: New file.
26417         * modules/posix_spawnp-tests (Files): Update.
26418         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26419
26420 2008-09-29  Bruno Haible  <bruno@clisp.org>
26421
26422         Propagate effects of putenv/setenv/unsetenv to child processes.
26423         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26424         * lib/pipe.c (create_pipe): Likewise.
26425
26426 2008-09-29  Bruno Haible  <bruno@clisp.org>
26427
26428         Enable use of shell scripts as executables in mingw.
26429         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26430         run the program as a shell script.
26431         * lib/pipe.c (create_pipe): Likewise.
26432         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26433         resulting array.
26434
26435 2008-09-29  Eric Blake  <ebb9@byu.net>
26436
26437         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26438
26439 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26440
26441         * doc/posix-functions/accept.texi: Update mingw problems.
26442         * doc/posix-functions/bind.texi: Update mingw problems.
26443         * doc/posix-functions/close.texi: Update mingw problems.
26444         * doc/posix-functions/connect.texi: Update mingw problems.
26445         * doc/posix-functions/getpeername.texi: Update mingw problems.
26446         * doc/posix-functions/getsockname.texi: Update mingw problems.
26447         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26448         * doc/posix-functions/ioctl.texi: Update mingw problems.
26449         * doc/posix-functions/listen.texi: Update mingw problems.
26450         * doc/posix-functions/recv.texi: Update mingw problems.
26451         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26452         * doc/posix-functions/select.texi: Update mingw problems.
26453         * doc/posix-functions/send.texi: Update mingw problems.
26454         * doc/posix-functions/sendto.texi: Update mingw problems.
26455         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26456         * doc/posix-functions/socket.texi: Update mingw problems.
26457
26458 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26459             Bruno Haible  <bruno@clisp.org>
26460
26461         * lib/sys_select.in.h: Include sys/time.h.
26462         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26463         * modules/sys_select: Depend on sys_time.
26464         * tests/test-sys_select.c: Test that sys/select.h defines struct
26465         timeval fully.
26466
26467 2008-09-29  Bruno Haible  <bruno@clisp.org>
26468
26469         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26470         * lib/sys_select.in.h: Likewise.
26471
26472 2008-09-29  Bruno Haible  <bruno@clisp.org>
26473
26474         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26475
26476 2008-09-29  Bruno Haible  <bruno@clisp.org>
26477
26478         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26479         Set LIBSOCKET instead of augmenting LIBS.
26480         * modules/sockets (Link): New section.
26481         * modules/sockets-tests (test_sockets_LDADD): New variable.
26482         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26483         * modules/poll-tests (test_poll_LDADD): New variable.
26484         * NEWS: Document the change.
26485
26486 2008-09-29  Bruno Haible  <bruno@clisp.org>
26487
26488         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26489         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26490         ARPA_INET_H directly.
26491         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26492
26493 2008-09-28  Bruno Haible  <bruno@clisp.org>
26494
26495         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26496         from gl_HEADER_SYS_SOCKET.
26497         (gl_HEADER_SYS_SOCKET): Invoke it.
26498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26499
26500 2008-09-28  Bruno Haible  <bruno@clisp.org>
26501
26502         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26503         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26504         Needed on OSF/1 4.0.
26505
26506 2008-09-28  Bruno Haible  <bruno@clisp.org>
26507
26508         Override open more carefully.
26509         * lib/open.c (orig_open): New function.
26510         (rpl_open): Use orig_open instead of open.
26511         * lib/fcntl.in.h: Add special invocation convention.
26512         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26513         (gl_FUNC_OPEN): Invoke it.
26514
26515         Override freopen more carefully.
26516         * lib/freopen.c (orig_freopen): New function.
26517         (rpl_freopen): Use orig_freopen instead of freopen.
26518         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26519         (gl_FUNC_FREOPEN): Invoke it.
26520
26521         Override fopen more carefully.
26522         * lib/fopen.c (orig_fopen): New function.
26523         (rpl_fopen): Use orig_fopen instead of fopen.
26524         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26525         (gl_FUNC_FOPEN): Invoke it.
26526         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26527
26528 2008-09-28  Bruno Haible  <bruno@clisp.org>
26529
26530         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26531         SIGPIPE.
26532
26533 2008-09-28  Bruno Haible  <bruno@clisp.org>
26534
26535         * tests/test-sigaction.c (handler, main): Disable the check whether
26536         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26537         glibc systems with LinuxThreads.
26538
26539 2008-09-28  Bruno Haible  <bruno@clisp.org>
26540
26541         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26542
26543         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26544         with AIX xlc.
26545         * lib/fcntl.in.h (open): Likewise.
26546         Reported by Rainer Tammer <tammer@tammer.net>.
26547
26548 2008-09-28  Bruno Haible  <bruno@clisp.org>
26549
26550         * modules/posix_spawnp-tests: New file.
26551         * tests/test-posix_spawn.c: New file.
26552         * tests/test-posix_spawn.in.sh: New file.
26553
26554         New module 'posix_spawnp'.
26555         * modules/posix_spawnp: New file.
26556         * lib/spawnp.c: New file, from GNU libc with modifications.
26557         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26558
26559         New module 'posix_spawn'.
26560         * modules/posix_spawn: New file.
26561         * lib/spawn.c: New file, from GNU libc with modifications.
26562         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26563
26564         New module 'posix_spawnattr_destroy'.
26565         * modules/posix_spawnattr_destroy: New file.
26566         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26567         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26568         module.
26569
26570         New module 'posix_spawnattr_setsigmask'.
26571         * modules/posix_spawnattr_setsigmask: New file.
26572         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26573         modifications.
26574         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26575         new module.
26576
26577         New module 'posix_spawnattr_getsigmask'.
26578         * modules/posix_spawnattr_getsigmask: New file.
26579         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26580         modifications.
26581         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26582         new module.
26583
26584         New module 'posix_spawnattr_setsigdefault'.
26585         * modules/posix_spawnattr_setsigdefault: New file.
26586         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26587         modifications.
26588         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26589         new module.
26590
26591         New module 'posix_spawnattr_getsigdefault'.
26592         * modules/posix_spawnattr_getsigdefault: New file.
26593         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26594         modifications.
26595         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26596         new module.
26597
26598         New module 'posix_spawnattr_setschedpolicy'.
26599         * modules/posix_spawnattr_setschedpolicy: New file.
26600         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26601         modifications.
26602         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26603         new module.
26604
26605         New module 'posix_spawnattr_getschedpolicy'.
26606         * modules/posix_spawnattr_getschedpolicy: New file.
26607         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26608         modifications.
26609         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26610         new module.
26611
26612         New module 'posix_spawnattr_setschedparam'.
26613         * modules/posix_spawnattr_setschedparam: New file.
26614         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26615         modifications.
26616         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26617         new module.
26618
26619         New module 'posix_spawnattr_getschedparam'.
26620         * modules/posix_spawnattr_getschedparam: New file.
26621         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26622         modifications.
26623         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26624         new module.
26625
26626         New module 'posix_spawnattr_setpgroup'.
26627         * modules/posix_spawnattr_setpgroup: New file.
26628         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26629         modifications.
26630         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26631         module.
26632
26633         New module 'posix_spawnattr_getpgroup'.
26634         * modules/posix_spawnattr_getpgroup: New file.
26635         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26636         modifications.
26637         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26638         module.
26639
26640         New module 'posix_spawnattr_setflags'.
26641         * modules/posix_spawnattr_setflags: New file.
26642         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26643         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26644         module.
26645
26646         New module 'posix_spawnattr_getflags'.
26647         * modules/posix_spawnattr_getflags: New file.
26648         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26649         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26650         module.
26651
26652         New module 'posix_spawnattr_init'.
26653         * modules/posix_spawnattr_init: New file.
26654         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26655         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26656         module.
26657
26658         New module 'posix_spawn_file_actions_destroy'.
26659         * modules/posix_spawn_file_actions_destroy: New file.
26660         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26661         modifications.
26662         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26663         the new module.
26664
26665         New module 'posix_spawn_file_actions_addopen'.
26666         * modules/posix_spawn_file_actions_addopen: New file.
26667         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26668         modifications.
26669         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26670         the new module.
26671
26672         New module 'posix_spawn_file_actions_adddup2'.
26673         * modules/posix_spawn_file_actions_adddup2: New file.
26674         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26675         modifications.
26676         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26677         the new module.
26678
26679         New module 'posix_spawn_file_actions_addclose'.
26680         * modules/posix_spawn_file_actions_addclose: New file.
26681         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26682         modifications.
26683         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26684         the new module.
26685
26686         New module 'posix_spawn_file_actions_init'.
26687         * modules/posix_spawn_file_actions_init: New file.
26688         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26689         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26690         new module.
26691
26692         New module 'posix_spawn-internal'.
26693         * modules/posix_spawn-internal: New file.
26694         * lib/spawn_int.h: New file, from GNU libc with modifications.
26695         * lib/spawni.c: New file, from GNU libc with modifications.
26696         * m4/posix_spawn.m4: New file.
26697
26698         New module 'spawn'.
26699         * modules/spawn: New file.
26700         * lib/spawn.in.h: New file, from GNU libc with modifications.
26701         * m4/spawn_h.m4: New file.
26702         * doc/posix-headers/spawn.texi: Mention the new module.
26703
26704 2008-09-28  Bruno Haible  <bruno@clisp.org>
26705
26706         * modules/sched-tests: New file.
26707         * tests/test-sched.c: New file.
26708
26709         New module 'sched'.
26710         * modules/sched: New file.
26711         * lib/sched.in.h: New file.
26712         * m4/sched_h.m4: New file.
26713         * doc/posix-headers/sched.texi: Mention the new module.
26714
26715 2008-09-27  Eric Blake  <ebb9@byu.net>
26716
26717         Fix previous patch, and tweak references to $0.
26718         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26719         (func_version, func_gnulib_dir): Don't call this program
26720         gnulib-tool.
26721         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26722         with using $0 in function.
26723         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26724         (func_fatal_error): Reuse the name the user invoked us with.
26725
26726 2008-09-27  Bruno Haible  <bruno@clisp.org>
26727
26728         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26729         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26730         (gl_ICONV_H): Not here.
26731         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26732         instead of assigning ICONV_H directly.
26733
26734         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26736         WCHAR_H directly.
26737
26738 2008-09-27  Bruno Haible  <bruno@clisp.org>
26739
26740         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26741         * modules/arpa_inet (Depends-on): Add link-warning.
26742         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26743         * modules/unistd (Makefile.am): Likewise.
26744
26745 2008-09-26  Bruno Haible  <bruno@clisp.org>
26746
26747         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26748         variables.
26749         (func_version): Essentially copied from gnulib-tool.
26750         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26751         func_readlink): Copied from gnulib-tool.
26752
26753 2008-09-26  Bruno Haible  <bruno@clisp.org>
26754
26755         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26756         invoking git-version-gen.
26757
26758 2008-09-26  Bruno Haible  <bruno@clisp.org>
26759
26760         * posix-modules: Update to directory names changed on 2008-01-19.
26761         Remove commas in output before splitting into words. No more need to
26762         avoid 'ftruncate' since 2007-02-19.
26763
26764 2008-09-26  Bruno Haible  <bruno@clisp.org>
26765
26766         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26767
26768 2008-09-26  Bruno Haible  <bruno@clisp.org>
26769
26770         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26771         * modules/fwriteerror (Depends-on): Add errno.
26772
26773 2008-09-26  Bruno Haible  <bruno@clisp.org>
26774
26775         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26776         * tests/test-vc-list-files-cvs.sh: Likewise.
26777
26778 2008-09-26  Bruno Haible  <bruno@clisp.org>
26779
26780         * doc/posix-headers/sys_resource.texi: Reorder items.
26781
26782 2008-09-26  Jim Meyering  <meyering@redhat.com>
26783
26784         fts: tweak inode comparison function
26785         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26786         inode numbers, as documented.
26787
26788         fts: sort dirent entries on inode number before traversing
26789         This avoids a quadratic, seek-related performance penalty when
26790         operating on a directory containing many entries (measurable at 10k;
26791         3.5 hours at 2 million entries with a cold cache) on certain types
26792         of file systems, including ext3 and ext4, but not tmpfs.
26793         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26794         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26795         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26796         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26797         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26798         (fts_build): Set the stat.st_ino member from D_INO.
26799         If it is likely to be useful, sort dirent entries on inode number.
26800
26801         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26802         and the struct statfs.f_type member.
26803         * modules/fts (Depends-on): Add d-ino.
26804
26805 2008-09-26  Bruno Haible  <bruno@clisp.org>
26806
26807         * modules/sigpipe-die (Depends-on): Add sigpipe.
26808
26809         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26810         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26811         and GNULIB_STDIO_H_SIGPIPE are set.
26812         * lib/stdio-write.c: New file.
26813         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26814         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26815         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26816         REPLACE_STDIO_WRITE_FUNCS.
26817         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26818         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26819         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26820         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26821         * modules/stdio (Files): Add lib/stdio-write.c.
26822         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26823         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26824         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26825         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26826         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26827         REPLACE_FPRINTF_POSIX.
26828         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26829         REPLACE_PRINTF_POSIX.
26830         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26831         REPLACE_VFPRINTF_POSIX.
26832         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26833         REPLACE_VPRINTF_POSIX.
26834         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26835         SIGPIPE issue.
26836         * doc/posix-functions/fputc.texi: Likewise.
26837         * doc/posix-functions/fputs.texi: Likewise.
26838         * doc/posix-functions/fwrite.texi: Likewise.
26839         * doc/posix-functions/printf.texi: Likewise.
26840         * doc/posix-functions/putc.texi: Likewise.
26841         * doc/posix-functions/putchar.texi: Likewise.
26842         * doc/posix-functions/puts.texi: Likewise.
26843         * doc/posix-functions/vfprintf.texi: Likewise.
26844         * doc/posix-functions/vprintf.texi: Likewise.
26845
26846         * modules/safe-write (Depends-on): Add write.
26847
26848         * modules/sigpipe-tests: New file.
26849         * tests/test-sigpipe.c: New file.
26850         * tests/test-sigpipe.sh: New file.
26851
26852         * modules/write: New file.
26853         * lib/unistd.in.h: Include <sys/types.h>.
26854         (write): New declaration.
26855         * lib/write.c: New file.
26856         * m4/write.m4: New file.
26857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26858         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26859         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26860         GNULIB_WRITE, REPLACE_WRITE.
26861         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26862         and the SIGPIPE issue.
26863
26864         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26865         (raise): New declaration.
26866         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26867         (ext_signal): New function.
26868         (rpl_raise): New function.
26869         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26870         GNULIB_SIGNAL_H_SIGPIPE.
26871         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26872         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26873
26874         * modules/sigpipe: New file.
26875         * m4/sigpipe.m4: New file.
26876
26877 2008-09-25  Derek Price  <derek@ximbiot.com>
26878             Bruno Haible  <bruno@clisp.org>
26879
26880         * gnulib-tool (func_import): Report all license incompatibilities, not
26881         just the first one.
26882
26883 2008-09-25  Bruno Haible  <bruno@clisp.org>
26884
26885         * gnulib-tool (func_import): When computing the edits, consider not
26886         only the Makefile.ams that exist but also those that will be generated.
26887
26888 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26889
26890         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26891         fixes gnulib-tool --test warning about duplicate dependency.
26892
26893 2008-09-25  Bruno Haible  <bruno@clisp.org>
26894
26895         * gnulib-tool: Don't ask the user to perform edits in the generated
26896         Makefile.ams.
26897         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26898         apply to the Makefile.am being generated.
26899         (func_emit_tests_Makefile_am): Execute edits that apply to the
26900         Makefile.am being generated.
26901         (func_import): Setup list of Makefile.am edits before emitting the
26902         Makefile.ams, not at the end.
26903         (func_create_testdir): Update.
26904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26905
26906 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26907
26908         * gnulib-tool (func_import): Store the --tests-base option in the
26909         comment in gnulib-cache.m4.
26910
26911 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26912
26913         * NEWS: Document increased portability that sys_select now provides.
26914
26915         * lib/sys_select.in.h: Install select wrapper.
26916         * lib/sys_socket.in.h: Use more descriptive name when there is no
26917         select wrapper.
26918         * lib/winsock-select.c: New.
26919         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26920         Require gl_HEADER_SYS_SOCKET.
26921         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26922         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26923         * tests/test-sys_select.c: Add functional tests.
26924
26925 2008-09-24  Eric Blake  <ebb9@byu.net>
26926
26927         open, fopen: close fd leak in last patch
26928         * lib/open.c (rpl_open): Close fd before returning error.
26929         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26930         * doc/posix-functions/open.texi (open): Document that Irix also
26931         has the bug.
26932         * doc/posix-functions/fopen.texi (fopen): Likewise.
26933         Reported by Paolo Bonzini.
26934
26935 2008-09-24  Bruno Haible  <bruno@clisp.org>
26936
26937         Ensure that a filename ending in a slash cannot be used to access a
26938         non-directory.
26939         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26940         to check whether it's really a directory.
26941         * lib/fopen.c: Include fcntl.h, unistd.h.
26942         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26943         and fdopen().
26944         * modules/fopen (Depends-on): Add unistd.
26945         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26946         * tests/test-fopen.c (main): Likewise.
26947         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26948         * doc/posix-functions/fopen.texi: Likewise.
26949         Reported by Eric Blake.
26950
26951 2008-09-23  Eric Blake  <ebb9@byu.net>
26952
26953         c-stack: avoid compiler optimizations when provoking overflow
26954         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26955         recursion harder to optimize, to ensure a stack overflow occurs.
26956         * tests/test-c-stack.c (recurse): Likewise.
26957         Borrowed from libsigsegv.
26958
26959         c-stack: work around Irix sigaltstack bug
26960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26961         whether sigaltstack uses wrong end of stack_t (copied in part from
26962         libsigsegv).
26963         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26964         Irix bug, without requiring an over-allocation.
26965         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26966         bug.
26967
26968         fopen: document mingw bug on directories
26969         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26970         not allowing a stream visiting a directory, even though reading
26971         from such a stream is not portable.
26972
26973 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26974
26975         * lib/poll.c: Rewrite.
26976         * modules/poll: Depend on alloca.
26977
26978 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26979
26980         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26981         instead define prototypes for a full set of wrappers.  Ensure
26982         that Cygwin does not use the compatibility code, which is only
26983         for MinGW.
26984         * lib/winsock.c: New.
26985         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26986         * modules/sys_socket: Add lib/winsock.c.
26987
26988         * modules/poll-tests: Add errno and perror.
26989         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26990
26991 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26992
26993         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26994
26995 2008-09-23  Bruno Haible  <bruno@clisp.org>
26996
26997         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26998         * doc/glibc-functions/*: Likewise.
26999
27000 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27001
27002         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27003         success.
27004
27005 2008-09-22  Eric Blake  <ebb9@byu.net>
27006             Bruno Haible  <bruno@clisp.org>
27007
27008         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27009         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27010         supply %A but mishandle pseudo-NaN.
27011         Reported by Simon Josefsson.
27012
27013 2008-09-21  Bruno Haible  <bruno@clisp.org>
27014
27015         * tests/test-lock.c (main): Tweak skip message.
27016         * tests/test-tls.c (main): Likewise.
27017
27018 2008-09-21  Bruno Haible  <bruno@clisp.org>
27019
27020         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27021         whether 'struct sigaction' has sa_sigaction here...
27022         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27023         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27024
27025 2008-09-21  Bruno Haible  <bruno@clisp.org>
27026
27027         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27028         section.
27029         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27030         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27031         the new section.
27032         (Support for obsolete systems lacking POSIX:2001): New section.
27033         (String handling <string.h>): Move strdup to the new section.
27034         Suggested by Simon Josefsson and Paolo Bonzini.
27035
27036 2008-09-21  Bruno Haible  <bruno@clisp.org>
27037
27038         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27039         exponents in %e and %g results on 'long double'. Needed for mingw's
27040         improved *printf functions.
27041         * tests/test-vasprintf-posix.c (test_function): Likewise.
27042         * tests/test-snprintf-posix.h (test_function): Likewise.
27043         * tests/test-sprintf-posix.h (test_function): Likewise.
27044         Reported by Eric Blake.
27045
27046 2008-09-21  Bruno Haible  <bruno@clisp.org>
27047
27048         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27049         * tests/test-sprintf-posix.h (test_function): Likewise.
27050
27051 2008-09-21  Bruno Haible  <bruno@clisp.org>
27052
27053         * modules/getpass (Depends-on): Add strdup-posix.
27054
27055         New module 'strdup-posix'.
27056         * modules/strdup-posix: New file.
27057         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27058         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27060         REPLACE_STRDUP.
27061         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27062         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27064         strdup-posix.
27065
27066         * modules/strdup (Depends-on): Remove malloc-posix.
27067
27068 2008-09-20  Bruno Haible  <bruno@clisp.org>
27069
27070         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27071         Wildenhues.
27072
27073 2008-09-20  Bruno Haible  <bruno@clisp.org>
27074
27075         Ensure that wint_t gets defined on IRIX 5.3.
27076         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27077         * lib/wctype.in.h (wint_t): Likewise.
27078         (__wctype_wint_t): Remove type.
27079         (isw*): Use wint_t instead of __wctype_wint_t.
27080         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27081         * modules/wchar (Files): Add m4/wint_t.m4.
27082         (Makefile.am): Substitute HAVE_WINT_T.
27083         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27084         * tests/test-wctype.c: Check that wint_t is defined.
27085         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27086         * doc/posix-headers/wctype.texi: Likewise.
27087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27088
27089 2008-09-18  Bruno Haible  <bruno@clisp.org>
27090
27091         * gnulib-tool (func_exit): Update comment.
27092
27093 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27094
27095         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27096         assumes strdup exists and does not depend on strdup to return
27097         ENOMEM on out of memory conditions.
27098
27099 2008-09-18  Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27102         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27103         digits for the exponent.
27104
27105 2008-09-18  Jim Meyering  <meyering@redhat.com>
27106             Bruno Haible  <bruno@clisp.org>
27107
27108         * lib/vasnprintf.c (decimal_point_char): Define also if
27109         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27110
27111 2008-09-16  Bruno Haible  <bruno@clisp.org>
27112         and Eric Blake  <ebb9@byu.net>
27113
27114         vasnprintf: support Irix 5.3
27115         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27116         that mishandle long double infinity.
27117         Reported by Tom G. Christensen.
27118
27119 2008-09-16  Bruno Haible  <bruno@clisp.org>
27120
27121         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27122         Solaris 9.
27123         * doc/glibc-functions/alphasort.texi: Likewise.
27124         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27125
27126 2008-09-16  Jim Meyering  <meyering@redhat.com>
27127
27128         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27129         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27130         a umask modification leak out of a subshell.  Otherwise, the
27131         opensolaris /bin/sh would be accepted and thus cause unwarranted
27132         failures in the coreutils test suite.
27133
27134 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27135
27136         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27137         to succeed.
27138
27139 2008-09-16  Jim Meyering  <meyering@redhat.com>
27140
27141         avoid spurious test failure when library is built without ACL support
27142         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27143         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27144         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27145         * tests/test-copy-acl.sh: Likewise.
27146
27147 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27148
27149         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27150         based on character occurrence counts.
27151
27152 2008-09-15  Eric Blake  <ebb9@byu.net>
27153
27154         tests: avoid some compiler warnings
27155         * tests/test-memchr.c (main): Pass NULL indirectly.
27156         * tests/test-closein.c (main): Avoid unused variable.
27157
27158 2008-09-15  Bruno Haible  <bruno@clisp.org>
27159
27160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27161         are missing on OpenBSD 4.0 individually.
27162         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27163
27164 2008-09-15  Bruno Haible  <bruno@clisp.org>
27165
27166         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27167         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27168         * doc/posix-functions/perror.texi: Likewise.
27169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27170         is missing.
27171         Reported by Eric Blake.
27172
27173         * lib/errno.in.h: Use replacement values >= 2000.
27174         Reported by Eric Blake.
27175
27176 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27177
27178         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27179         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27180         limit.
27181         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27182         compareseq was aborted.
27183
27184 2008-09-14  Bruno Haible  <bruno@clisp.org>
27185
27186         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27187         yvec_edit_count.
27188         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27189         (fstrcmp_bounded): Simplify result computation accordingly.
27190
27191 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27192
27193         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27194         (fstrcmp): Define in terms of fstrcmp_bounded.
27195         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27196         lower_bound argument.
27197         Return quickly if the result is certainly < lower_bound.
27198         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27199
27200 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27201
27202         * lib/diffseq.h (EARLY_ABORT): New macro.
27203         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27204         evaluates to true.
27205
27206 2008-09-14  Bruno Haible  <bruno@clisp.org>
27207
27208         * modules/perror-tests: New file.
27209         * tests/test-perror.sh: New file.
27210         * tests/test-perror.c: New file.
27211
27212         New module 'perror'.
27213         * lib/stdio.in.h (perror): New declaration.
27214         * lib/perror.c: New file.
27215         * m4/perror.m4: New file.
27216         * modules/perror: New file.
27217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27218         * doc/posix-functions/perror.texi: Mention the perror module.
27219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27220         REPLACE_PERROR.
27221         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27222         REPLACE_PERROR.
27223
27224 2008-09-14  Bruno Haible  <bruno@clisp.org>
27225
27226         * modules/stdio (Makefile.am): Reorder to match the order in
27227         lib/stdio.in.h.
27228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27229
27230 2008-09-13  Bruno Haible  <bruno@clisp.org>
27231
27232         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27233
27234 2008-09-13  Bruno Haible  <bruno@clisp.org>
27235
27236         Extend strerror to cover the added errno values.
27237         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27238         (rpl_strerror): Provide error messages for the added errno values and
27239         for the WSA* values.
27240         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27241         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27242         strerror.
27243         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27244         * modules/strerror (Depends-on): Add errno.
27245         * doc/posix-functions/strerror.texi: Document the change.
27246         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27247         and EOVERFLOW.
27248
27249 2008-09-13  Bruno Haible  <bruno@clisp.org>
27250
27251         * modules/EOVERFLOW: Remove file.
27252         * m4/eoverflow.m4: Remove file.
27253         * modules/EOVERFLOW-tests: Remove file.
27254         * tests/test-EOVERFLOW.c: Remove file.
27255         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27256         * modules/ftell (Depends-on): Likewise.
27257         * modules/getdelim (Depends-on): Likewise.
27258         * modules/getugroups (Depends-on): Likewise.
27259         * modules/poll (Depends-on): Likewise.
27260         * modules/snprintf (Depends-on): Likewise.
27261         * modules/sprintf-posix (Depends-on): Likewise.
27262         * modules/vasnprintf (Depends-on): Likewise.
27263         * modules/vasprintf (Depends-on): Likewise.
27264         * modules/vfprintf-posix (Depends-on): Likewise.
27265         * modules/vsnprintf (Depends-on): Likewise.
27266         * modules/vsprintf-posix (Depends-on): Likewise.
27267         * modules/xvasprintf (Depends-on): Likewise.
27268         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27269         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27270         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27271         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27273         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27274         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27275         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27276         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27277         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27278         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27279         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27280         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27281         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27282         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27283         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27284         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27285         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27286         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27287         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27288         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27289         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27290         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27291         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27292         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27293         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27294         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27295         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27296         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27297         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27298         * MODULES.html.sh: Remove EOVERFLOW.
27299         * NEWS: Mention the change.
27300
27301 2008-09-13  Bruno Haible  <bruno@clisp.org>
27302
27303         * modules/errno-tests: New file.
27304         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27305
27306         * lib/errno.in.h: New file.
27307         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27308         * modules/errno: New file.
27309         * doc/posix-headers/errno.texi: Update documentation.
27310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27311
27312 2008-09-13  Bruno Haible  <bruno@clisp.org>
27313
27314         * tests/test-poll.c: Use #if for native Windows, rather than testing
27315         __MSVCRT__.
27316
27317 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27318             Bruno Haible  <bruno@clisp.org>
27319
27320         * lib/glob.c: Don't include <pwd.h> on native Windows.
27321         (WINDOWS32): New macro.
27322         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27323
27324 2008-09-13  Bruno Haible  <bruno@clisp.org>
27325
27326         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27327         (ETIMEDOUT): Remove macro.
27328         (glthread_cond_timedwait_multithreaded): New declaration.
27329         (glthread_cond_timedwait): Use it.
27330         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27331         (glthread_cond_timedwait_multithreaded): New function.
27332
27333 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27334
27335         * modules/poll-tests: Do not check for io.h.
27336         * tests/test-poll.c: Check for __MSVCRT__ instead.
27337
27338 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27339
27340         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27341         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27342         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27343
27344 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27345
27346         * modules/poll-tests: New.
27347         * tests/test-poll.c: New.
27348
27349 2008-09-12  Eric Blake  <ebb9@byu.net>
27350
27351         frexp: test for NetBSD failure on -0.0
27352         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27353         not all, bugs from NetBSD 3.0 have been fixed.
27354         * doc/posix-functions/frexp.texi (frexp): Document bug.
27355         Reported by Thomas Klausner.
27356
27357         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27358         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27359         literal -0.0.
27360         Reported by Jonathan C. Patschke <jp@centtech.com>.
27361
27362 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27363
27364         * lib/glthread/cond.h: Use dummy implementation also if
27365         USE_WIN32_THREADS.
27366
27367 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27368
27369         * modules/fnmatch-posix (License): Change to LGPLv2+.
27370         * modules/fnmatch-gnu (License): Likewise.
27371
27372 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27373
27374         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27375
27376 2008-09-11  Jim Meyering  <meyering@redhat.com>
27377
27378         * users.txt: Add gtk-vnc.
27379
27380 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27381
27382         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27383         rotate amounts.
27384
27385         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27386         required for 16-bit and 8-bit rotates.
27387         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27388         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27389         UINT8_MAX instead of hard-coded constants.
27390         Suggested by Paul Eggert.
27391
27392 2008-09-07  Bruno Haible  <bruno@clisp.org>
27393
27394         * tests/test-striconveh.c (main): Check behaviour when converting from
27395         UTF-7.
27396
27397         Make striconveh work better with stateful encodings.
27398         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27399         that iconv does not increment the inptr when returning -1/EINVAL.
27400
27401 2008-09-07  Bruno Haible  <bruno@clisp.org>
27402
27403         * build-aux/config.rpath: Update according to libtool-2.2.6.
27404         * build-aux/config.libpath: Likewise.
27405
27406 2008-09-06  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27409         * lib/freadptr.c (freadptr): Likewise.
27410         * lib/freadseek.c (freadptrinc): Likewise.
27411         Reported by Simon Josefsson.
27412
27413 2008-09-06  Bruno Haible  <bruno@clisp.org>
27414
27415         * modules/freadptr (License): Change to LGPLv2+.
27416         * modules/freadseek (License): Likewise.
27417         Suggested by Eric Blake.
27418
27419         * modules/memchr2 (License): Change to LGPLv2+.
27420         Approved by Eric Blake.
27421
27422 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27423             Bruno Haible  <bruno@clisp.org>
27424
27425         Make gnulib-tool work with native 'sed' on AIX.
27426         * gnulib-tool (sed_noop): New variable.
27427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27428         func_add_or_update, func_create_testdir): Use it to initialize sed
27429         script variables.
27430         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27431
27432 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27433             Bruno Haible  <bruno@clisp.org>
27434
27435         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27436         also works after #include directives.
27437
27438 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27439
27440         getdate.y: reject an out-of-range timezone value
27441         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27442         the range [-24...+24].  When specified with only one or two digits,
27443         * tests/test-getdate.c: Tests for the fix.
27444         * doc/getdate.texi: Document this change.
27445
27446 2008-09-03  Bruno Haible  <bruno@clisp.org>
27447
27448         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27449
27450 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27451
27452         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27453         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27454         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27455         Blake <ebb9@byu.net>.
27456
27457         * tests/test-bitrotate.c: Add more test vectors.
27458
27459 2008-09-02  Eric Blake  <ebb9@byu.net>
27460
27461         vasnprintf-posix: handle large precision via %.*d
27462         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27463         when handling it ourselves.
27464         * tests/test-vasnprintf-posix.c (test_function): Add test.
27465         * tests/test-snprintf-posix.h (test_function): Likewise.
27466         * tests/test-sprintf-posix.h (test_function): Likewise.
27467         * tests/test-vasprintf-posix.c (test_function): Likewise.
27468         Reported by Alain Guibert.
27469
27470 2008-09-01  Eric Blake  <ebb9@byu.net>
27471
27472         c-stack: make configure-time check more robust
27473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27474         successful sigaction call.
27475         Reported by Tom G. Christensen.
27476
27477 2008-09-01  Bruno Haible  <bruno@clisp.org>
27478
27479         New module 'findprog-lgpl'.
27480         * modules/findprog-lgpl: New file.
27481         * lib/findprog-lgpl.c: New file.
27482         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27483         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27484         to decide whether to use strdup or xstrdup, concatenated_filename or
27485         xconcatenated_filename.
27486
27487 2008-09-01  Bruno Haible  <bruno@clisp.org>
27488
27489         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27490         'xconcat-filename' (GPL).
27491         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27492         (License): Change to LGPLv2+.
27493         * modules/xconcat-filename: New file.
27494         * lib/concat-filename.h (concatenated_filename): Change specification.
27495         (xconcatenated_filename): New declaration.
27496         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27497         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27498         memory situations.
27499         * lib/xconcat-filename.c: New file.
27500         * NEWS: Mention the change.
27501         * lib/findprog.c: Include concat-filename.h, not filename.h.
27502         (find_in_path): Use xconcatenated_filename instead of
27503         concatenated_filename.
27504         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27505         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27506         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27507         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27508         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27509         instead of concatenated_filename.
27510         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27511         (execute_java_class): Use xconcatenated_filename instead of
27512         concatenated_filename.
27513         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27514         * modules/javacomp (Depends-on): Likewise.
27515         * modules/javaexec (Depends-on): Likewise.
27516
27517 2008-09-01  Bruno Haible  <bruno@clisp.org>
27518
27519         Split module 'filename' into 'filename' and 'concat-filename'.
27520         * modules/filename: Keep only lib/filename.h.
27521         (License): Change to LGPLv2+.
27522         * modules/concat-filename: New file, extracted from modules/filename.
27523         * lib/filename.h (concatenated_filename): Remove declaration.
27524         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27525         * lib/concat-filename.c: Include concat-filename.h.
27526         * NEWS: Mention the change.
27527
27528 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27529
27530         * lib/bitrotate.h (rotl8, rotr8): Add.
27531
27532         * modules/bitrotate (configure.ac): Need
27533         AC_REQUIRE([AC_C_INLINE]).
27534         (Description): Mention stdint.h.  Reported by Bruno Haible
27535         <bruno@clisp.org>.
27536
27537         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27538         Paolo Bonzini <bonzini@gnu.org>.
27539
27540 2008-08-31  Bruno Haible  <bruno@clisp.org>
27541
27542         Assume Solaris specific bi-arch conventions on Solaris systems.
27543         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27544         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27545         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27546         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27547         like acl_libdirstem.
27548         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27549         acl_libdirstem.
27550         * NEWS: Mention the change.
27551         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27552
27553 2008-08-31  Jim Meyering  <meyering@redhat.com>
27554
27555         * lib/strftime.h: Add comments describing the two added arguments.
27556
27557         remove duplicate #include directives
27558         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27559         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27560
27561 2008-08-31  Bruno Haible  <bruno@clisp.org>
27562
27563         New module 'sigpipe-die'.
27564         * modules/sigpipe-die: New file.
27565         * lib/sigpipe-die.h: New file.
27566         * lib/sigpipe-die.c: New file.
27567         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27568
27569 2008-08-31  Bruno Haible  <bruno@clisp.org>
27570
27571         Don't override previously installed signal handlers.
27572         * lib/fatal-signal.c (saved_sigactions): New variable.
27573         (uninstall_handlers): Reset the signal to the saved handler, not
27574         to SIG_DFL (except when ignored).
27575         (install_handlers): Save the previous handlers.
27576
27577 2008-08-30  Bruno Haible  <bruno@clisp.org>
27578
27579         * gnulib-tool (func_reset_sigpipe): New function.
27580         (func_get_automake_snippet, func_modules_transitive_closure,
27581         func_import): Invoke it before a join command that reads from stdin,
27582         to avoid "echo: write error: Broken pipe" error messages on stderr.
27583         Reported by Sam Steingold <sds@gnu.org>.
27584
27585 2008-08-30  Bruno Haible  <bruno@clisp.org>
27586
27587         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27588         Code copied from m4/open.m4.
27589         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27590         access and the filename ends in a slash. Code copied from lib/open.c.
27591         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27592         * tests/test-fopen.c (main): Check against bug with trailing slash.
27593
27594 2008-08-29  Bruno Haible  <bruno@clisp.org>
27595
27596         Avoid some "gcc -pedantic" warnings.
27597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27598         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27599         * lib/dirent.in.h: Likewise.
27600         * lib/fcntl.in.h: Likewise.
27601         * lib/float.in.h: Likewise.
27602         * lib/iconv.in.h: Likewise.
27603         * lib/inttypes.in.h: Likewise.
27604         * lib/locale.in.h: Likewise.
27605         * lib/math.in.h: Likewise.
27606         * lib/netinet_in.in.h: Likewise.
27607         * lib/search.in.h: Likewise.
27608         * lib/signal.in.h: Likewise.
27609         * lib/stdarg.in.h: Likewise.
27610         * lib/stdint.in.h: Likewise.
27611         * lib/stdio.in.h: Likewise.
27612         * lib/stdlib.in.h: Likewise.
27613         * lib/string.in.h: Likewise.
27614         * lib/strings.in.h: Likewise.
27615         * lib/sys_select.in.h: Likewise.
27616         * lib/sys_socket.in.h: Likewise.
27617         * lib/sys_stat.in.h: Likewise.
27618         * lib/sys_time.in.h: Likewise.
27619         * lib/sysexits.in.h: Likewise.
27620         * lib/time.in.h: Likewise.
27621         * lib/unistd.in.h: Likewise.
27622         * lib/wchar.in.h: Likewise.
27623         * lib/wctype.in.h: Likewise.
27624         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27625         * modules/fchdir (Makefile.am): Likewise.
27626         * modules/fcntl (Makefile.am): Likewise.
27627         * modules/float (Makefile.am): Likewise.
27628         * modules/iconv_open (Makefile.am): Likewise.
27629         * modules/inttypes (Makefile.am): Likewise.
27630         * modules/locale (Makefile.am): Likewise.
27631         * modules/math (Makefile.am): Likewise.
27632         * modules/netinet_in (Makefile.am): Likewise.
27633         * modules/search (Makefile.am): Likewise.
27634         * modules/signal (Makefile.am): Likewise.
27635         * modules/stdarg (Makefile.am): Likewise.
27636         * modules/stdint (Makefile.am): Likewise.
27637         * modules/stdio (Makefile.am): Likewise.
27638         * modules/stdlib (Makefile.am): Likewise.
27639         * modules/string (Makefile.am): Likewise.
27640         * modules/strings (Makefile.am): Likewise.
27641         * modules/sys_select (Makefile.am): Likewise.
27642         * modules/sys_socket (Makefile.am): Likewise.
27643         * modules/sys_stat (Makefile.am): Likewise.
27644         * modules/sys_time (Makefile.am): Likewise.
27645         * modules/sysexits (Makefile.am): Likewise.
27646         * modules/time (Makefile.am): Likewise.
27647         * modules/unistd (Makefile.am): Likewise.
27648         * modules/wchar (Makefile.am): Likewise.
27649         * modules/wctype (Makefile.am): Likewise.
27650         Reported by Reuben Thomas <rrt@sc3d.org>.
27651
27652 2008-08-29  Bruno Haible  <bruno@clisp.org>
27653
27654         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27655         any more.
27656
27657 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27658
27659         * MODULES.html.sh (Misc): Add bitrotate.
27660
27661         * modules/bitrotate: New file.
27662
27663         * lib/bitrotate.h: New file.
27664
27665         * modules/bitrotate-tests: New file.
27666
27667         * tests/test-bitrotate.c: New file.
27668
27669         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27670         on the bitrotate module.
27671
27672         * lib/arctwo.c: Use new bitrotate module.
27673
27674 2008-08-29  Jim Meyering  <meyering@redhat.com>
27675
27676         bootstrap: merge changes from coreutils
27677         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27678         of copied files.  Remove a kludge, now that this is fixed.
27679         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27680         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27681         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27682
27683 2008-08-29  Bruno Haible  <bruno@clisp.org>
27684
27685         * MODULES.html.sh: Remove --cvs-urls option.
27686
27687 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27688
27689         maint.mk: adjust to file name change
27690         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27691
27692 2008-08-28  Jim Meyering  <meyering@redhat.com>
27693
27694         * modules/getndelim2 (License): Relicense to LGPLv2+.
27695         Approved by Richard Stallman for the version of 1995, and by
27696         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27697
27698 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27699
27700         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27701         dummy if one is not available.  Do not touch them if
27702         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27703         (getc_maybe_unlocked): New.
27704         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27705
27706 2008-08-26  Eric Blake  <ebb9@byu.net>
27707
27708         doc/INSTALL: resync from autoconf
27709         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27710         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27711         moving...
27712         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27713         * INSTALL: Regenerate.
27714         * INSTALL.ISO: New file.
27715         * INSTALL.UTF-8: Likewise.
27716
27717 2008-08-26  Jim Meyering  <meyering@redhat.com>
27718
27719         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27720         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27721         these definitions conditional, so that they may be overridden, too.
27722
27723 2008-08-26  Bruno Haible  <bruno@clisp.org>
27724
27725         Generate INSTALL file variants with prettier quotes.
27726         * doc/Makefile (INSTALL_PRELUDE): New macro.
27727         (INSTALL): Use it.
27728         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27729
27730 2008-08-26  Bruno Haible  <bruno@clisp.org>
27731
27732         Run makeinfo in an English locale.
27733         * doc/Makefile (MAKEINFO): New variable.
27734
27735 2008-08-26  Bruno Haible  <bruno@clisp.org>
27736
27737         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27738         Suggested by Eric Blake.
27739
27740 2008-08-25  Bruno Haible  <bruno@clisp.org>
27741
27742         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27743
27744 2008-08-25  Eric Blake  <ebb9@byu.net>
27745
27746         c-stack: test that stack overflow can be caught
27747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27748         that platform allows handling stack overflow; at least OS/2 EMX
27749         has sigaltstack, but crashes before transferring control to
27750         handler on stack overflow.
27751         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27752         check for HAVE_STACK_OVERFLOW_HANDLING.
27753         Reported by Elbert Pol.
27754
27755 2008-08-25  Bruno Haible  <bruno@clisp.org>
27756
27757         * doc/posix-functions/strftime.texi: Fix description of strftime
27758         module.
27759
27760 2008-08-24  Bruno Haible  <bruno@clisp.org>
27761
27762         * tests/uniwidth/test-uc_width2.c: New file.
27763         * tests/uniwidth/test-uc_width2.sh: New file.
27764         * modules/uniwidth/width-tests (Files): Add the new files.
27765         (TESTS): Add uniwidth/test-uc_width2.sh.
27766         (TESTS_ENVIRONMENT): New variable.
27767         (check_PROGRAMS): Add test-uc_width2.
27768         (test_uc_width2_SOURCES): New variable.
27769
27770         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27771         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27772         not 0x00AB.
27773         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27774
27775 2008-08-22  Eric Blake  <ebb9@byu.net>
27776
27777         test-lock, test-tls: mention why a test is skipped
27778         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27779         skipped.
27780         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27781
27782         count-one-bits: relax license
27783         * modules/count-one-bits (License): Relicense to LGPLv2+.
27784         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27785
27786 2008-08-22  Andreas Schwab  <schwab@suse.de>
27787
27788         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27789         Remove spurious space in assignment.
27790
27791 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27792
27793         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27794         Paul Eggert <eggert@CS.UCLA.EDU>.
27795
27796 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27797
27798         * modules/gettext: Add m4/threadlib.m4.
27799
27800 2008-08-19  Eric Blake  <ebb9@byu.net>
27801
27802         test-c-stack: fix compilation failure on FreeBSD 5.0
27803         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27804         headers before <sys/resource.h>.
27805         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27806         the bug.
27807         Reported by Nelson H. F. Beebe.
27808
27809         strverscmp: migrate from "strverscmp.h" to <string.h>
27810         * modules/string (Makefile.am): Add new hooks.
27811         * modules/strverscmp (Files): Remove strverscmp.h.
27812         (Depends-on): Add string.
27813         (configure.ac): Add indicator.
27814         (Include): Mention new header.
27815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27816         defaults.
27817         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27818         results.
27819         * lib/strverscmp.h: Delete.
27820         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27821         * tests/test-strverscmp.c (includes): Adjust client.
27822         * lib/check-version.c (includes): Likewise.
27823         * NEWS: Document the change.
27824
27825         strverscmp: add unit test
27826         * modules/strverscmp-tests: New file.
27827         * tests/test-strverscmp.c: Likewise.
27828
27829 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27830
27831         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27832         regarding Windows crypto stuff, from Mono.
27833
27834 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27835
27836         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27837         if present, for intel RND.  Return error on failures.
27838
27839 2008-08-18  Ben Pfaff  <blp@gnu.org>
27840
27841         gitlog-to-changelog: give better diagnostic for failed pipe-open
27842         * build-aux/gitlog-to-changelog: Improve error message: suggest
27843         that the version of Git may be too old.
27844
27845 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27846
27847         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27848         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27849
27850 2008-08-18  Bruno Haible  <bruno@clisp.org>
27851
27852         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27853         pthread_in_use().
27854
27855 2008-08-18  Bruno Haible  <bruno@clisp.org>
27856
27857         * lib/glthread/threadlib.c: Include <pthread.h>.
27858
27859 2008-08-18  Bruno Haible  <bruno@clisp.org>
27860
27861         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27862         glthread_recursive_lock_* macros.
27863         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27864         Fix syntax error.
27865
27866 2008-08-18  Bruno Haible  <bruno@clisp.org>
27867
27868         * lib/glthread/thread.c: Avoid forcing a context switch right after
27869         thread creation.
27870
27871 2008-08-17  Bruno Haible  <bruno@clisp.org>
27872
27873         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27874         * lib/glthread/thread.h: Provide Win32 specific implementation.
27875         * modules/thread (Files): Add lib/glthread/thread.c.
27876         (Depends-on): Add lock.
27877         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27878
27879 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27880
27881         New module 'yield'.
27882         * modules/yield: New file.
27883         * lib/glthread/yield.h: New file.
27884         * m4/yield.m4: New file.
27885         * MODULES.html.sh (Multithreading): Add yield.
27886
27887 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27888
27889         New module 'thread'.
27890         * modules/thread: New file.
27891         * lib/glthread/thread.h: New file.
27892         * m4/thread.m4: New file.
27893         * MODULES.html.sh (Multithreading): Add thread.
27894
27895 2008-08-17  Bruno Haible  <bruno@clisp.org>
27896
27897         * lib/glthread/lock.h: Include <stdlib.h> always.
27898         * lib/glthread/tls.h: Likewise.
27899         * lib/glthread/cond.h: Likewise.
27900
27901 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27902
27903         New module 'cond'.
27904         * modules/cond: New file.
27905         * lib/glthread/cond.h: New file.
27906         * lib/glthread/cond.c: New file.
27907         * m4/cond.m4: New file.
27908         * MODULES.html.sh (Multithreading): Add cond.
27909
27910 2008-08-16  Eric Blake  <ebb9@byu.net>
27911
27912         c-stack: fix regression on Irix 5.3 from 2008-06-21
27913         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27914         sa_sigaction...
27915         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27916         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27917         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27918         * modules/signal (Makefile.am): Use the value.
27919         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27920         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27921         * doc/posix-headers/signal.texi (signal.h): Document this
27922         portability issue.
27923         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27924         Reported by Tom G. Christensen.
27925
27926 2008-08-17  Bruno Haible  <bruno@clisp.org>
27927
27928         New module 'threadlib'.
27929         * modules/threadlib: New file.
27930         * lib/glthread/threadlib.c: New file, extracted from
27931         lib/glthread/lock.c.
27932         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27933         functions.
27934         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27935         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27936         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27937         macros.
27938         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27939         (gl_DISABLE_THREADS): Remove macro.
27940         * modules/lock (Files): Remove build-aux/config.rpath.
27941         (Depends-on): Remove havelib. Add threadlib.
27942         (configure.ac-early): Remove section.
27943         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27944         * modules/tls (Depends-on): Remove lock. Add threadlib.
27945         (Link): New section, copied from threadlib.
27946         * MODULES.html.sh (Multithreading): Add threadlib.
27947
27948 2008-08-14  Bruno Haible  <bruno@clisp.org>
27949
27950         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27951         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27952         glthread_rwlock_unlock, glthread_rwlock_destroy,
27953         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27954         glthread_recursive_lock_destroy): Define as macros always.
27955         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27956         glthread_lock_lock.
27957         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27958         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27959         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27960         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27961         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27962         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27963         (glthread_recursive_lock_lock_func): Renamed from
27964         glthread_recursive_lock_lock.
27965         (glthread_recursive_lock_unlock_func): Renamed from
27966         glthread_recursive_lock_unlock.
27967         (glthread_recursive_lock_destroy_func): Renamed from
27968         glthread_recursive_lock_destroy.
27969
27970 2008-08-14  Bruno Haible  <bruno@clisp.org>
27971
27972         * lib/glthread/lock.h: Renamed from lib/lock.h.
27973         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27974         * lib/glthread/tls.h: Renamed from lib/tls.h.
27975         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27976         * lib/fstrcmp.c: Update includes.
27977         * lib/strsignal.c: Update includes.
27978         * modules/lock (Files, Makefile.am): Update.
27979         (Include): Change to "glthread/lock.h".
27980         * modules/tls (Files, Makefile.am): Update.
27981         (Include): Change to "glthread/tls.h".
27982         * tests/test-lock.c: Update includes.
27983         * tests/test-tls.c: Update includes.
27984         * NEWS: Mention the renamed header files.
27985
27986 2008-08-11  Jim Meyering  <meyering@redhat.com>
27987
27988         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27989
27990 2008-08-11  Eric Blake  <ebb9@byu.net>
27991
27992         test-c-stack: avoid C99-ism
27993         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27994         before statement.
27995         Reported by Alain Guibert.
27996
27997 2008-08-10  Jim Meyering  <meyering@redhat.com>
27998
27999         ensure that return value of uinttostr et al are not ignored
28000         * lib/inttostr.h (__GNUC_PREREQ): Define.
28001         (__attribute_warn_unused_result__): Define.
28002         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28003
28004 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28005
28006         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28007         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28008
28009 2008-08-07  Jim Meyering  <meyering@redhat.com>
28010
28011         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28012
28013         * modules/mkstemp (License): Relicense under LGPLv2+.
28014         * modules/tempname (License): Likewise.
28015
28016 2008-08-06  Bruno Haible  <bruno@clisp.org>
28017
28018         * lib/poll.c (poll): Further micro-optimization.
28019
28020 2008-08-06  Jim Meyering  <meyering@redhat.com>
28021
28022         inet_pton.c: use locale-independent tolower
28023         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28024         (inet_pton6): Use c_tolower rather than tolower.
28025         * modules/inet_pton (Depends-on): Add c-ctype.
28026
28027 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28028
28029         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28030         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28031
28032 2008-08-06  Jim Meyering  <meyering@redhat.com>
28033
28034         * modules/inet_pton (License): Relicense under LGPLv2+.
28035
28036 2008-08-03  Bruno Haible  <bruno@clisp.org>
28037
28038         Additional non-aborting API for lock and tls.
28039         * lib/lock.h: Include <errno.h>.
28040         (glthread_lock_init): New macro/function.
28041         (gl_lock_init): Define as wrapper around glthread_lock_init.
28042         (glthread_lock_lock): New macro/function.
28043         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28044         (glthread_lock_unlock): New macro/function.
28045         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28046         (glthread_lock_destroy): New macro/function.
28047         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28048         (glthread_rwlock_init): New macro/function.
28049         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28050         (glthread_rwlock_rdlock): New macro/function.
28051         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28052         (glthread_rwlock_wrlock): New macro/function.
28053         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28054         (glthread_rwlock_unlock): New macro/function.
28055         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28056         (glthread_rwlock_destroy): New macro/function.
28057         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28058         (glthread_recursive_lock_init): New macro/function.
28059         (gl_recursive_lock_init): Define as wrapper around
28060         glthread_recursive_lock_init.
28061         (glthread_recursive_lock_lock): New macro/function.
28062         (gl_recursive_lock_lock): Define as wrapper around
28063         glthread_recursive_lock_lock.
28064         (glthread_recursive_lock_unlock): New macro/function.
28065         (gl_recursive_lock_unlock): Define as wrapper around
28066         glthread_recursive_lock_unlock.
28067         (glthread_recursive_lock_destroy): New macro/function.
28068         (gl_recursive_lock_destroy): Define as wrapper around
28069         glthread_recursive_lock_destroy.
28070         (glthread_once): New macro/function.
28071         (gl_once): Define as wrapper around glthread_once.
28072         Update function declarations.
28073         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28074         glthread_rwlock_init. Return error code.
28075         (glthread_rwlock_rdlock_multithreaded): Renamed from
28076         glthread_rwlock_rdlock. Return error code.
28077         (glthread_rwlock_wrlock_multithreaded): Renamed from
28078         glthread_rwlock_wrlock. Return error code.
28079         (glthread_rwlock_unlock_multithreaded): Renamed from
28080         glthread_rwlock_unlock. Return error code.
28081         (glthread_rwlock_destroy_multithreaded): Renamed from
28082         glthread_rwlock_destroy. Return error code.
28083         (glthread_recursive_lock_init_multithreaded): Renamed from
28084         glthread_recursive_lock_init. Return error code.
28085         (glthread_recursive_lock_lock_multithreaded): Renamed from
28086         glthread_recursive_lock_lock. Return error code.
28087         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28088         glthread_recursive_lock_unlock. Return error code.
28089         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28090         glthread_recursive_lock_destroy. Return error code.
28091         (glthread_once_call): Make static.
28092         (glthread_once_multithreaded): Renamed from glthread_once.
28093         * lib/tls.h: Include <errno.h>.
28094         (glthread_tls_key_init): New macro/function.
28095         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28096         (glthread_tls_set): New macro/function.
28097         (gl_tls_set): Define as wrapper around glthread_tls_set.
28098         (glthread_tls_key_destroy): New macro/function.
28099         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28100         Update function declarations.
28101         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28102         glthread_tls_get.
28103         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28104
28105 2008-08-04  Eric Blake  <ebb9@byu.net>
28106
28107         gnumakefile: use space, not TAB, outside of targets
28108         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28109
28110 2008-08-02  Jim Meyering  <meyering@redhat.com>
28111
28112         getdate.y: avoid locale-dependent date parsing failure
28113         In Turkish locales, getdate would fail to recognize keywords
28114         containing a lowercase "i".  The solution is not to rely on
28115         locale-sensitive case-conversion.
28116         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28117         (lookup_word): Use c_toupper in place of toupper.
28118         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28119         Reported by Vefa Bicakci <bicave@superonline.com> in
28120         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28121         * modules/getdate (Depends-on): Add c-ctype.
28122
28123 2008-08-02  Bruno Haible  <bruno@clisp.org>
28124
28125         * gnulib-tool (func_import): When updating or creating a .gitignore
28126         file, prepend each added line with a slash, and ignore leading slashes
28127         from the existing lines.
28128         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28129
28130 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28131
28132         Portability fix for GNU make 3.79.1.
28133         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28134         versions do not understand.
28135
28136 2008-08-01  Bruno Haible  <bruno@clisp.org>
28137
28138         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28139         * tests/test-isnanf.h (zero): New variable.
28140         (main): Avoid literal -0.0f.
28141         * tests/test-isnand.h (zero): New variable.
28142         (main): Avoid literal -0.0.
28143         * tests/test-isnanl.h (zero): New variable.
28144         (main): Avoid literal -0.0L.
28145         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28146         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28147         -0.0, -0.0L.
28148         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28149         (test_signbitd): Avoid literal -0.0.
28150         (test_signbitl): Avoid literal -0.0L.
28151         * tests/test-ceilf1.c (zero): New variable.
28152         (main): Avoid literal -0.0f.
28153         * tests/test-ceill.c (zero): New variable.
28154         (main): Avoid literal -0.0L.
28155         * tests/test-floorf1.c (zero): New variable.
28156         (main): Avoid literal -0.0f.
28157         * tests/test-floorl.c (zero): New variable.
28158         (main): Avoid literal -0.0L.
28159         * tests/test-roundf1.c (zero): New variable.
28160         (main): Avoid literal -0.0f.
28161         * tests/test-round1.c (zero): New variable.
28162         (main): Avoid literal -0.0.
28163         * tests/test-roundl.c (zero): New variable.
28164         (main): Avoid literal -0.0L.
28165         * tests/test-truncf1.c (zero): New variable.
28166         (main): Avoid literal -0.0f.
28167         * tests/test-trunc1.c (zero): New variable.
28168         (main): Avoid literal -0.0.
28169         * tests/test-truncl.c (zero): New variable.
28170         (main): Avoid literal -0.0L.
28171         * tests/test-frexp.c (zero): New variable.
28172         (main): Avoid literal -0.0.
28173         * tests/test-frexpl.c (zero): New variable.
28174         (main): Avoid literal -0.0L.
28175         * tests/test-ldexpl.c (zero): New variable.
28176         (main): Avoid literal -0.0L.
28177         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28178         (zerod, zerol): New variables.
28179         (test_function): Avoid literals -0.0, -0.0L.
28180         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28181         (zerod, zerol): New variables.
28182         (test_function): Avoid literals -0.0, -0.0L.
28183         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28184         (zerod, zerol): New variables.
28185         (test_function): Avoid literals -0.0, -0.0L.
28186         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28187         (zerod, zerol): New variables.
28188         (test_function): Avoid literals -0.0, -0.0L.
28189         * tests/test-strtod.c (zero): New variable.
28190         (main): Avoid literal -0.0.
28191         Reported by Jonathan C. Patschke <jp@centtech.com>.
28192
28193 2008-07-31  Jim Meyering  <meyering@redhat.com>
28194
28195         sha256.h: correct definition of SHA224_DIGEST_SIZE
28196         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28197         Reported by Paulie Pena IV <paulie4@gmail.com>.
28198         Define as 224 / 8, rather than as a literal.
28199         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28200         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28201         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28202
28203 2008-07-31  Bruno Haible  <bruno@clisp.org>
28204
28205         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28206         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28207         Reported by Jonathan Patschke <jp@centtech.com>.
28208
28209 2008-07-31  Bruno Haible  <bruno@clisp.org>
28210
28211         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28212         Reported by Paolo Bonzini <bonzini@gnu.org>.
28213
28214 2008-07-30  Eric Blake  <ebb9@byu.net>
28215
28216         test-strtod: allow compilation without -lm
28217         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28218         Reported by Dennis Clarke <blastwave@gmail.com>.
28219
28220 2008-07-28  Jim Meyering  <meyering@redhat.com>
28221
28222         bootstrap: work also when there are no .po files in po/
28223         * build-aux/bootstrap (update_po_files): Complete the change
28224         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28225
28226 2008-07-27  Jim Meyering  <meyering@redhat.com>
28227
28228         * users.txt: Add zile.
28229
28230 2008-07-26  Ben Pfaff  <blp@gnu.org>
28231
28232         Add missing dependencies on new m4/exponent[fdl].m4 files.
28233         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28234         * modules/isnand-nolibm: Add m4/exponentd.m4.
28235         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28236         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28237         m4/isnan[fdl].m4, because the macros actually used moved.
28238         Reported by Jim Meyering.
28239
28240 2008-07-14  Ben Pfaff  <blp@gnu.org>
28241
28242         Add isinf module.
28243         * lib/isinf.c: New file.
28244         * lib/math.in.h: Define isinf macro if we have decided to replace
28245         it.
28246         * m4/isinf.m4: New file.
28247         * m4/math_h.m4: Initialize and substitute variables for isinf
28248         module.
28249         * modules/isinf: New file.
28250         * modules/isinf-tests: New file.
28251         * modules/math: Add substitutions for new module.
28252         * tests/test-isinf.c: New file.
28253         * doc/posix-functions/isinf.texi: Mention new module.
28254         * MODULES.html.sh: Mention new module.
28255
28256 2008-07-14  Ben Pfaff  <blp@gnu.org>
28257
28258         Factor out some macros for use by additional modules.
28259         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28260         exponentf.m4.
28261         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28262         exponentd.m4.
28263         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28264         file exponentl.m4.
28265         * m4/exponentf.m4: New file.
28266         * m4/exponentd.m4: New file.
28267         * m4/exponentl.m4: New file.
28268         * modules/isnanf: Use new file m4/exponentf.m4.
28269         * modules/isnand: Use new file m4/exponentd.m4.
28270         * modules/isnanl: Use new file m4/exponentl.m4.
28271
28272 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28273
28274         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28275         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28276         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28277         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28278
28279         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28280         readlink on platforms without PATH_MAX.
28281
28282 2008-07-21  Eric Blake  <ebb9@byu.net>
28283
28284         Warn, not fail, on stale version.
28285         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28286
28287         Don't allow installation with stale devel version number.
28288         * top/GNUmakefile (_is-install-target): New macro.
28289         (_curr-ver): Forbid installation with stale version number.
28290
28291 2008-07-20  Bruno Haible  <bruno@clisp.org>
28292
28293         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28294         TESTS_ENVIRONMENT.
28295         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28296
28297 2008-07-20  Bruno Haible  <bruno@clisp.org>
28298
28299         * lib/c-stack.h (c_stack_action): Add documentation.
28300         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28301
28302 2008-07-20  Bruno Haible  <bruno@clisp.org>
28303
28304         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28305         * modules/readlink (License): Likewise.
28306
28307 2008-07-17  Eric Blake  <ebb9@byu.net>
28308
28309         * modules/c-stack (Link): Fix typo.
28310
28311         Make c-stack use libsigsegv, when available.
28312         * modules/c-stack (Depends-on): Add libsigsegv.
28313         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28314         needed.
28315         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28316         (segv_handler, overflow_handler, c_stack_action)
28317         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28318         implementation when libsigsegv is available, but only when using
28319         the library is necessary.
28320         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28321         comment, explaining why XSI check fails on Linux.
28322         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28323         * tests/test-c-stack2.sh: Tweak skip message.
28324         * NEWS: Document new link-time requirements.
28325
28326 2008-07-16  Eric Blake  <ebb9@byu.net>
28327
28328         c-stack: Expose false positives when not using libsigsegv.
28329         * modules/c-stack-tests (Files): Expand test.
28330         * tests/test-c-stack.c (main): Add means to conditionally trigger
28331         non-overflow SIGSEGV.
28332         * tests/test-c-stack2.sh: New file.
28333
28334 2008-07-14  Bruno Haible  <bruno@clisp.org>
28335
28336         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28337         Reported by Eric Blake.
28338
28339 2008-07-14  Sam Steingold  <sds@gnu.org>
28340             Bruno Haible  <bruno@clisp.org>
28341
28342         New module libsigsegv.
28343         * modules/libsigsegv: New file.
28344         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28345         modifications.
28346         * MODULES.html.sh (Signal handling): New section.
28347
28348 2008-07-14  Bruno Haible  <bruno@clisp.org>
28349
28350         * modules/unictype/ctype-* (Description): Add the word "function".
28351         Improves the resulting doc in MODULES.html.
28352
28353 2008-07-12  Ben Pfaff  <blp@gnu.org>
28354
28355         Add longlong module.
28356         * modules/longlong: New file.
28357
28358 2008-07-12  Bruno Haible  <bruno@clisp.org>
28359
28360         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28361         to empty.
28362
28363 2008-07-10  Ben Pfaff  <blp@gnu.org>
28364
28365         Add isnan module.
28366         * doc/posix-functions/isnan.texi: Mention new module.
28367         * lib/math.in.h: Define isnan macro if we have decided to replace
28368         it.
28369         * m4/isnan.m4: New file.
28370         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28371         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28372         also.
28373         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28374         redundancy.
28375         * m4/math_h.m4: Initialize and substitute variables for isnan
28376         module.
28377         * modules/isnan: New file.
28378         * modules/isnan-tests: New file.
28379         * modules/math: Add substitutions for new module.
28380         * tests/test-isnan.c: New file.
28381         * MODULES.html.sh: Mention new module.
28382
28383 2008-07-10  Ben Pfaff  <blp@gnu.org>
28384
28385         Add isnanf module.
28386         * lib/isnanf.m4: New file.
28387         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28388         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28389         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28390         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28391         * modules/isnanf: New file.
28392         * modules/isnanf-tests: New file.
28393         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28394         files.
28395         * tests/test-isnanf-nolibm.c: factored most of its contents into
28396         new file tests/test-isnanf.h.
28397         * tests/test-isnanf.h: New file.
28398         * tests/test-isnanf.c: New file.
28399         * MODULES.html.sh: Mention new module.
28400         * doc/glibc-functions/isnanf.texi: Mention new module.
28401
28402 2008-07-10  Ben Pfaff  <blp@gnu.org>
28403
28404         Add isnand module.
28405         * lib/isnand.h: New file.
28406         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28407         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28408         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28409         functionality also.
28410         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28411         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28412         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28413         * modules/isnand: New file.
28414         * modules/isnand-tests: New file.
28415         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28416         files.
28417         * tests/test-isnand-nolibm.c: factored most of its contents into
28418         new file tests/test-isnand.h.
28419         * tests/test-isnand.h: New file.
28420         * tests/test-isnand.c: New file.
28421         * MODULES.html.sh: Mention new module.
28422
28423 2008-07-10  Ben Pfaff  <blp@gnu.org>
28424
28425         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28426         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28427         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28428         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28429         * modules/isnanf-nolibm: Update references to renamed files.
28430         * modules/isnand-nolibm: Likewise.
28431         * modules/isnanf-nolibm-tests: Likewise.
28432         * modules/isnand-nolibm-tests: Likewise.
28433         * lib/frexp.c: Likewise.
28434         * lib/isfinite.c: Likewise.
28435         * lib/signbitd.c: Likewise.
28436         * lib/signbitf.c: Likewise.
28437         * lib/vasnprintf.c: Likewise.
28438         * tests/test-ceilf1.c: Likewise.
28439         * tests/test-ceilf2.c: Likewise.
28440         * tests/test-floorf1.c: Likewise.
28441         * tests/test-floorf2.c: Likewise.
28442         * tests/test-frexp.c: Likewise.
28443         * tests/test-round1.c: Likewise.
28444         * tests/test-round2.c: Likewise.
28445         * tests/test-roundf1.c: Likewise.
28446         * tests/test-strtod.c: Likewise.
28447         * tests/test-trunc1.c: Likewise.
28448         * tests/test-trunc2.c: Likewise.
28449         * tests/test-truncf1.c: Likewise.
28450         * tests/test-truncf2.c: Likewise.
28451         * NEWS: Mention the renamed header files.
28452
28453 2008-07-11  Jim Meyering  <meyering@redhat.com>
28454
28455         vc-list-files: make the last-resort awk code more portable
28456         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28457         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28458         does not support it.
28459
28460 2008-07-10  Eric Blake  <ebb9@byu.net>
28461
28462         Work with tar's bootstrap.
28463         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28464         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28465         an m4 comment.
28466
28467 2008-07-09  Jim Meyering  <meyering@redhat.com>
28468
28469         posix-shell.m4: fix typo that made this test malfunction
28470         * m4/posix-shell.m4: Remove capitalization in variable name.
28471
28472 2008-07-08  Bruno Haible  <bruno@clisp.org>
28473
28474         * m4/onceonly.m4: Update comments.
28475         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28476
28477 2008-07-04  Jim Meyering  <meyering@redhat.com>
28478
28479         * users.txt: Add vc-dwim.
28480         (bison, coreutils): Use the gitweb URL.
28481
28482 2008-07-03  Jim Meyering  <meyering@redhat.com>
28483
28484         * users.txt: Add libffcall.  From Sam Steingold.
28485
28486 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28487
28488         getdate.y: do not ignore TZ with relative day, month or year offset
28489         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28490         relative-date-handling, since otherwise, the latter would clobber the
28491         sole output (an updated Start value) of the tz-handling block.
28492         * tests/test-getdate.c: Tests for the fix
28493
28494 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28495
28496         Recognize 'foo_LIBRARIES += libgnu.a'.
28497         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28498         makefile snippet has already specified an installation location,
28499         also using '+='.
28500
28501 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28502
28503         getdate.y: factor out common actions
28504         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28505         Use them in place of open-coded actions.
28506
28507 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28508
28509         Add self-test for getdate module.
28510         * modules/getdate-tests: New file.
28511         * tests/test-getdate.c: New file.
28512
28513 2008-06-29  Bruno Haible  <bruno@clisp.org>
28514
28515         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28516         .gitignore.
28517         Reported by Sylvain Beucler <beuc@beuc.net>.
28518
28519 2008-06-29  Bruno Haible  <bruno@clisp.org>
28520
28521         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28522         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28523
28524 2008-06-29  Bruno Haible  <bruno@clisp.org>
28525
28526         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28527         EXTRA_DIST.
28528         Reported by Sylvain Beucler <beuc@beuc.net>.
28529
28530 2008-06-26  Jim Meyering  <meyering@redhat.com>
28531
28532         make several modules depend on the "open" module
28533         This provides slightly increased consistency when opening-for-write
28534         the name of a non-directory spelled with a trailing slash.
28535         * modules/chdir-safer: Likewise.
28536         * modules/chown: Likewise.
28537         * modules/clean-temp: Likewise.
28538         * modules/copy-file: Likewise.
28539         * modules/fchdir: Likewise.
28540         * modules/fcntl-safer: Likewise.
28541         * modules/pipe: Likewise.
28542         * modules/utime: Likewise.
28543         Prompted by Eric Blake and Bruno Haible.
28544
28545 2008-06-24  Andreas Schwab  <schwab@suse.de>
28546
28547         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28548         literals can be used as initializers for global variables.
28549
28550 2008-06-23  Eric Blake  <ebb9@byu.net>
28551
28552         Make gnulib-cache.m4 easier to diff.
28553         * gnulib-tool (func_import): Allow newlines when reading cached
28554         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28555
28556 2008-06-23  Bruno Haible  <bruno@clisp.org>
28557
28558         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28559         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28560         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28561         m4/signalblocking.m4.
28562         (gl_PREREQ_SIGACTION): Don't invoke it.
28563         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28564         gl_PREREQ_SIG_HANDLER_H.
28565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28566         Don't check for sigaction here.
28567
28568 2008-06-23  Bruno Haible  <bruno@clisp.org>
28569
28570         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28571         (install_handlers): Don't set the SA_RESETHAND flag.
28572
28573 2008-06-23  Bruno Haible  <bruno@clisp.org>
28574
28575         * m4/sigaction.m4: Comment fixes.
28576         * lib/signal.in.h: Likewise.
28577
28578 2008-06-23  Eric Blake  <ebb9@byu.net>
28579
28580         Fix typo.
28581         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28582
28583         Avoid SA_ namespace.
28584         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28585         Reported by Ralf Wildenhues.
28586
28587         Avoid test failure due to SA_RESTORER.
28588         * tests/test-sigaction.c (SA_MASK): New macro.
28589         (main): Avoid failing due to extension flags being set.
28590         Reported by Jim Meyering.
28591
28592         Revert use of sig-handler.h in sigprocmask.c.
28593         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28594         it requires the existence of struct sigaction.
28595         * lib/sigprocmask.c (handler_t): Restore typedef.
28596         (rpl_signal, old_handlers): Use local type.
28597
28598 2008-06-22  Bruno Haible  <bruno@clisp.org>
28599
28600         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28601         conditionally.
28602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28603
28604 2008-06-22  Bruno Haible  <bruno@clisp.org>
28605
28606         * doc/posix-functions/siginterrupt.texi: Move note.
28607
28608         * lib/signal.in.h (SA_RESTART): New macro.
28609         * lib/sigaction.c: Update comment.
28610
28611         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28612
28613         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28614         (gl_PREREQ_SIGPROCMASK): Invoke it.
28615         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28616
28617         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28618
28619         * lib/sigprocmask.c: Update a comment.
28620
28621 2008-06-21  Eric Blake  <ebb9@byu.net>
28622
28623         Use sigaction module rather than signal().
28624         * modules/c-stack (Depends-on): Add sigaction.
28625         * modules/fatal-signal (Depends-on): Likewise.
28626         * modules/nanosleep (Depends-on): Likewise.
28627         * modules/sigprocmask (Files): Add sig-handler.h.
28628         * modules/sigaction (Files): Likewise.
28629         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28630         Eggert.
28631         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28632         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28633         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28634         (init_fatal_signals): Likewise.
28635         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28636         (siginterrupt): Delete fallback.
28637         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28638         instead.
28639         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28640         siginterrupt.
28641
28642         New module sigaction, for mingw.
28643         * modules/sigaction: New module...
28644         * modules/sigaction-tests: ...and its test.
28645         * m4/sigaction.m4: New file.
28646         * lib/sigaction.c: Likewise.
28647         * tests/test-sigaction.c: Likewise.
28648         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28649         * modules/signal (Makefile.am): Likewise.
28650         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28651         needed.
28652         * doc/posix-headers/signal.texi (signal.h): Mention provided
28653         types.
28654         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28655         that sigaction is preferable.
28656         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28657         module.
28658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28659         sigaction.
28660
28661         Improve robustness of sigprocmask by overriding signal.
28662         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28663         is in use.
28664         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28665         (SIGKILL, SIGSTOP): Provide fallbacks.
28666         (rpl_signal): Implement.
28667         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28668         signal can be called inside handlers.
28669
28670         Fix nanosleep module on mingw.
28671         * modules/nanosleep (Depends-on): Add sys_select.
28672         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28673
28674         Fix licensing of sigprocmask.
28675         * modules/raise (License): Relicense as LGPL.
28676
28677 2008-06-21  Bruno Haible  <bruno@clisp.org>
28678
28679         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28680         result if it contains question marks.
28681         Reported by Michael Geng <linux@michaelgeng.de>.
28682
28683 2008-06-19  Bruno Haible  <bruno@clisp.org>
28684
28685         Fix CVS-ism.
28686         * doc/gnulib.texi: Include updated-stamp.texi.
28687         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28688         (updated-stamp.texi): New rule.
28689         (gnulib.info): Depend on it.
28690         * doc/.gitignore: Add updated-stamp.texi.
28691         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28692
28693 2008-06-19  Bruno Haible  <bruno@clisp.org>
28694
28695         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28696         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28697
28698 2008-06-19  Eric Blake  <ebb9@byu.net>
28699
28700         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28701         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28702         Reported by Stepan Kasal.
28703
28704 2008-06-18  Bruno Haible  <bruno@clisp.org>
28705
28706         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28707         Reported by Eric Blake.
28708
28709 2008-06-18  Eric Blake  <ebb9@byu.net>
28710
28711         Work around cygwin 1.5.25 strsignal bug.
28712         * tests/test-strsignal.c: Allow for const char *.
28713         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28714
28715 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28716
28717         * users.txt: Update URL to article and add author/date
28718         information.
28719
28720 2008-06-17  Bruno Haible  <bruno@clisp.org>
28721
28722         New macro gl_DISABLE_THREADS.
28723         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28724         if the user did not pass --enable-threads or --disable-threads option.
28725         (gl_DISABLE_THREADS): New macro.
28726         Reported by Eric Blake <ebb9@byu.net>.
28727
28728 2008-06-17  Bruno Haible  <bruno@clisp.org>
28729
28730         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28731         when the macro ignores it.
28732         Based on a patch by Eric Blake <ebb9@byu.net>.
28733
28734 2008-06-17  Bruno Haible  <bruno@clisp.org>
28735
28736         * modules/tls (License): Change to LGPLv2+.
28737         Reported by Eric Blake.
28738
28739 2008-06-17  Eric Blake  <ebb9@byu.net>
28740
28741         Simplify c-stack prerequisites.
28742         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28744         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28745         check.
28746         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28747         <sys/resource.h>.
28748
28749         Move c-stack test into testsuite.
28750         * modules/c-stack-tests: New file.
28751         * lib/c-stack.c [DEBUG]: Move test program...
28752         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28753         fail test if sigaltstack is lacking.
28754         * tests/test-c-stack.sh: New driver file.
28755
28756 2008-06-16  Eric Blake  <ebb9@byu.net>
28757
28758         Use raise module consistently.
28759         * modules/fatal-signal (Depends-on): Add raise.
28760         * modules/sigprocmask (Depends-on): Likewise.
28761         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28762         * lib/sigprocmask.c (sigprocmask): Likewise.
28763         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28764         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28765
28766         Fix compliance bug in sigpending.
28767         * lib/sigprocmask.c (sigpending): Return pending array via
28768         parameter, not return value.
28769
28770 2008-06-14  Eric Blake  <ebb9@byu.net>
28771
28772         Improve obstack-printf test code.
28773         * tests/test-obstack-printf.c (test_function): Fix comment, and
28774         simplify usage of obstack_* in macros.  Add a test for coverage.
28775         Reported by Bruno Haible.
28776
28777 2008-06-14  Bruno Haible  <bruno@clisp.org>
28778
28779         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28780         array size as a constant, not as a const variable.
28781         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28782         AC_USE_SYSTEM_EXTENSIONS.
28783         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28784         Test whether the obstack_printf function actually exists.
28785         * modules/obstack-printf (Depends-on): Add extensions.
28786         (Include): Remove obstack.h.
28787         * modules/obstack-printf-posix (Depends-on): Add extensions.
28788         (Include): Remove obstack.h.
28789
28790 2008-06-13  Eric Blake  <ebb9@byu.net>
28791
28792         Add obstack-printf and obstack-printf-posix modules.
28793         * modules/obstack-printf: New file.
28794         * modules/obstack-printf-posix: Likewise.
28795         * MODULES.html.sh (Misc): Mention them.
28796         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28797         Likewise.
28798         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28799         Likewise.
28800         * modules/stdio (Makefile.am): Accomodate new modules.
28801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28802         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28803         Declare.
28804         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28805         functions.
28806         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28807         (gl_REPLACE_OBSTACK_PRINTF): New macros
28808         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28809         * tests/test-obstack-printf.c: New file.
28810         * modules/obstack-printf-tests: Likewise.
28811         * modules/obstack-printf-posix-tests: Likewise.
28812
28813 2008-06-11  Bruno Haible  <bruno@clisp.org>
28814
28815         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28816         * lib/open.c: Include errno.h.
28817         (open): Fail when attempting to write to a file that has a trailing
28818         slash.
28819         * tests/test-open.c (main): Test against trailing slash bug.
28820         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28821
28822 2008-06-10  Bruno Haible  <bruno@clisp.org>
28823
28824         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28825         for $? to work inside the trap command, with various /bin/sh-s.
28826         * tests/test-vc-list-files-cvs.sh: Likewise.
28827
28828 2008-06-10  Bruno Haible  <bruno@clisp.org>
28829
28830         * lib/acl-internal.h: Don't include gettext.h here.
28831         * lib/set-mode-acl.c: Include gettext.h here.
28832         * lib/copy-acl.c: Likewise.
28833
28834 2008-06-10  Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28837         * lib/wait-process.c (wait_subprocess): Likewise.
28838         * lib/execute.h (execute): Add termsigp argument.
28839         * lib/execute.c (execute): Likewise.
28840         * lib/csharpcomp.c (compile_csharp_using_pnet,
28841         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28842         * lib/csharpexec.c (execute_csharp_using_pnet,
28843         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28844         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28845         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28846         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28847         is_jikes_present): Update.
28848         * lib/javaexec.c (execute_java_class): Update.
28849         * lib/javaversion.c (execute_and_read_line): Update.
28850         * NEWS: Document the changes.
28851         Reported by Eric Blake.
28852
28853 2008-06-10  Eric Blake  <ebb9@byu.net>
28854
28855         Add missing include.
28856         * tests/test-strstr.c (includes): Add <signal.h>.
28857         * tests/test-strcasestr.c (includes): Likewise.
28858         * tests/test-memmem.c (includes): Likewise.
28859
28860 2008-06-10  Bruno Haible  <bruno@clisp.org>
28861
28862         * lib/wait-process.c (wait_subprocess): Add an assertion.
28863
28864 2008-06-10  Bruno Haible  <bruno@clisp.org>
28865
28866         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28867
28868 2008-06-10  Bruno Haible  <bruno@clisp.org>
28869
28870         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28871         using alarm().
28872         * tests/test-strcasestr.c (main): Likewise.
28873         * tests/test-strstr.c (main): Likewise.
28874
28875 2008-06-09  Bruno Haible  <bruno@clisp.org>
28876
28877         Work around the Solaris 10 ACE ACLs ABI change.
28878         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28879         declare if ACL_NO_TRIVIAL is present.
28880         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28881         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28882         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28883         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28884         define if ACL_NO_TRIVIAL is present.
28885         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28886         and use the current ABI.
28887         (file_has_acl): Use same #if condition as elsewhere.
28888         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28889         in use, and use the current ABI.
28890         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28891         Reported by Jim Meyering.
28892
28893 2008-06-09  Eric Blake  <ebb9@byu.net>
28894
28895         Work around environments that (stupidly) ignore SIGALRM.
28896         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28897         before using alarm().
28898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28900         Reported by Ian Beckwith <ianb@erislabs.net>.
28901
28902         Produce autobuild blurb earlier in log.
28903         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28904
28905 2008-06-09  Jim Meyering  <meyering@redhat.com>
28906         and Ondřej Vašík  <ovasik@redhat.com>
28907
28908         utimens.c: correct kernel bug work-around
28909         Ondřej Vašík found that the invalid return value of 280 indicates
28910         failure, not success, and the kernel bug we're trying to work
28911         around affects not just the utimensat call, but also the fallback
28912         futimens call.
28913         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28914         not success.
28915         [HAVE_FUTIMENS]: Use the same work-around, here.
28916
28917 2008-06-09  Jim Meyering  <meyering@redhat.com>
28918
28919         add more guards around definition of ACE_-related code
28920         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28921         ALLOW and ACE_OWNER are also defined.
28922
28923 2008-06-08  Bruno Haible  <bruno@clisp.org>
28924
28925         * lib/acl-internal.h: Add me as co-author.
28926         * lib/file-has-acl.c: Likewise.
28927         * lib/set-mode-acl.c: Likewise.
28928         * lib/copy-acl.c: Likewise.
28929
28930 2008-06-08  Bruno Haible  <bruno@clisp.org>
28931
28932         Add support for AIX ACLs.
28933         * lib/acl-internal.h (acl_nontrivial): New declaration.
28934         * lib/file-has-acl.c (acl_nontrivial): New function.
28935         (file_has_acl): Add implementation using AIX 4 ACL API.
28936         * lib/set-mode-acl.c (qset_acl): Likewise.
28937         * lib/copy-acl.c (qcopy_acl): Likewise.
28938
28939 2008-06-08  Bruno Haible  <bruno@clisp.org>
28940
28941         Add support for HP-UX ACLs.
28942         * lib/acl-internal.h (acl_nontrivial): New declaration.
28943         * lib/file-has-acl.c (acl_nontrivial): New function.
28944         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28945         * lib/set-mode-acl.c (qset_acl): Likewise.
28946         * lib/copy-acl.c (qcopy_acl): Likewise.
28947
28948 2008-06-08  Bruno Haible  <bruno@clisp.org>
28949
28950         Add support for Cygwin ACLs.
28951         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28952         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28953         the chmod_or_fchmod call.
28954         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28955
28956 2008-06-08  Bruno Haible  <bruno@clisp.org>
28957
28958         Fix bug with setuid modes in Solaris 10+ code.
28959         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28960         succeeded, when the mode contains some special bits.
28961
28962 2008-06-08  Bruno Haible  <bruno@clisp.org>
28963
28964         Add support for Solaris 7..10 ACLs.
28965         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28966         declarations.
28967         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28968         functions.
28969         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28970         * lib/set-mode-acl.c (qset_acl): Likewise.
28971         * lib/copy-acl.c (qcopy_acl): Likewise.
28972
28973 2008-06-08  Bruno Haible  <bruno@clisp.org>
28974
28975         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28976         declaration.
28977         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28978         (acl_access_nontrivial): Remove MacOS X case.
28979         (file_has_acl): Use acl_extended_nontrivial.
28980         * lib/copy-acl.c (qcopy_acl): Likewise.
28981
28982 2008-06-08  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28985
28986 2008-06-08  Jim Meyering  <meyering@redhat.com>
28987
28988         * modules/acl (Maintainer): Add Bruno Haible.
28989
28990 2008-06-07  Bruno Haible  <bruno@clisp.org>
28991
28992         Improve support for Tru64 ACLs.
28993         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28994         ACL on OSF/1.
28995
28996 2008-06-07  Bruno Haible  <bruno@clisp.org>
28997
28998         Add support for MacOS X ACLs.
28999         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29000         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29001         * lib/set-mode-acl.c (qset_acl): Likewise.
29002         * lib/copy-acl.c (qcopy_acl): Likewise.
29003
29004 2008-06-07  Bruno Haible  <bruno@clisp.org>
29005
29006         Fix memory leak introduced on 2008-05-22.
29007         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29008         use.
29009
29010 2008-06-07  Bruno Haible  <bruno@clisp.org>
29011
29012         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29013         to construct an empty ACL.
29014
29015 2008-06-07  Bruno Haible  <bruno@clisp.org>
29016
29017         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29018         precisely.
29019         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29020
29021 2008-06-07  Bruno Haible  <bruno@clisp.org>
29022
29023         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29024         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29025
29026 2008-06-07  Bruno Haible  <bruno@clisp.org>
29027
29028         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29029         regardless of POSIX.
29030         * doc/posix-functions/_longjmp.texi: Likewise.
29031         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29032         SystemV platform in this case.
29033
29034 2008-06-06  Eric Blake  <ebb9@byu.net>
29035
29036         Document abort() bugs.
29037         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29038
29039         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29040         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29041         sigsetjmp.
29042         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29043         siglongjmp, but only as a macro.
29044         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29045         is obsolete.
29046         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29047
29048         Tweak documentation to cover cygwin argz bugs.
29049         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29050         argz bug fix; no code change needed since no cygwin releases
29051         occurred between the last fix and the bug being tested.
29052         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29053         module and recently fixed cygwin bugs.
29054         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29055         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29056         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29057         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29058         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29059         Likewise.
29060         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29061         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29062         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29063         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29064         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29065         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29066         Likewise.
29067
29068         Avoid gcc warning on cygwin.
29069         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29070         !ACL_NO_TRIVIAL]: Avoid unused variable.
29071
29072 2008-06-05  Eric Blake  <ebb9@byu.net>
29073
29074         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29075         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29076         git-version-gen fails to come up with a version.
29077         Reported by Simon Josefsson.
29078
29079 2008-06-05  Jim Meyering  <meyering@redhat.com>
29080             Paul Eggert  <eggert@cs.ucla.edu>
29081
29082         utimens.c: work around a probable Linux kernel bug
29083         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29084         appears to be a kernel bug that causes utimensat to return 280
29085         instead of 0, indicating success.
29086
29087 2008-06-04  Bruno Haible  <bruno@clisp.org>
29088
29089         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29090         2008-06-01 commit.
29091
29092 2008-06-04  Bruno Haible  <bruno@clisp.org>
29093
29094         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29095         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29096         (file_has_acl): Use it. Save errno afterwards.
29097         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29098
29099 2008-06-03  Bruno Haible  <bruno@clisp.org>
29100
29101         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29102         draft code. Simplify #ifs.
29103         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29104         Put Solaris code after POSIX-draft code. Fix comments regarding
29105         Solaris 10, HP-UX. Mention Cygwin.
29106         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29107
29108 2008-06-03  Eric Blake  <ebb9@byu.net>
29109
29110         Provide fallback for older kernels.
29111         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29112         Provide runtime fallback if kernel lacks support.
29113         Reported by Mike Frysinger.
29114
29115 2008-06-02  Bruno Haible  <bruno@clisp.org>
29116
29117         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29118         it exists.
29119
29120 2008-06-02  Bruno Haible  <bruno@clisp.org>
29121
29122         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29123         * lib/copy-acl.c (qcopy_acl): Update comment.
29124
29125 2008-06-02  Bruno Haible  <bruno@clisp.org>
29126
29127         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29128         like ACL APIs.
29129
29130 2008-06-02  Bruno Haible  <bruno@clisp.org>
29131
29132         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29133         * tests/test-set-mode-acl.sh: Likewise.
29134         * tests/test-copy-acl.sh: Likewise.
29135         * tests/test-copy-file.sh: Likewise.
29136
29137 2008-06-02  Bruno Haible  <bruno@clisp.org>
29138
29139         * tests/test-file-has-acl.sh: Remove unused code.
29140
29141 2008-06-01  Bruno Haible  <bruno@clisp.org>
29142
29143         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29144         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29145         messages.
29146         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29147
29148 2008-06-01  Bruno Haible  <bruno@clisp.org>
29149
29150         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29151         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29152         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29153         APIs.
29154         * modules/acl-tests (configure.ac): Remove tests now contained in
29155         m4/acl.m4.
29156
29157 2008-06-02  Jim Meyering  <meyering@redhat.com>
29158
29159         announce-gen: use a better key-server host name
29160         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29161         it may be more consistently reliable.  Suggested by Werner Koch
29162         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29163
29164 2008-06-01  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29167         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29168
29169 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29170
29171         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29172
29173 2008-06-01  Bruno Haible  <bruno@clisp.org>
29174
29175         New ACL tests.
29176         * tests/test-file-has-acl.sh: New file.
29177         * tests/test-file-has-acl.c: New file.
29178         * tests/test-set-mode-acl.sh: New file.
29179         * tests/test-set-mode-acl.c: New file.
29180         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29181         * tests/test-copy-acl.c: New file.
29182         * modules/acl-tests: New file, based on modules/copy-file-tests.
29183         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29184         (Depends-on): Add acl-tests.
29185         (configure.ac): Remove checks.
29186         (Makefile.am): Don't create test-sameacls program here any more.
29187
29188 2008-06-01  Bruno Haible  <bruno@clisp.org>
29189
29190         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29191         * tests/test-sameacls.c: Include progname.h.
29192         (main): Invoke set_program_name. Portability fixes for MacOS X,
29193         Solaris, HP-UX.
29194
29195 2008-06-01  Bruno Haible  <bruno@clisp.org>
29196
29197         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29198         function.
29199         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29200
29201 2008-06-01  Bruno Haible  <bruno@clisp.org>
29202
29203         * modules/rpmatch (Depends-on): Add strdup.
29204
29205 2008-06-01  Bruno Haible  <bruno@clisp.org>
29206
29207         * lib/pipe.c: Include unistd-safer.h.
29208         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29209         * modules/pipe (Depends-on): Add unistd-safer.
29210
29211 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29212
29213         * modules/autobuild (configure.ac): Call AB_INIT.
29214
29215 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29216
29217         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29218         Suggested by Bruno Haible <bruno@clisp.org>.
29219
29220 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29221
29222         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29223         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29224         <bruno@clisp.org>.
29225
29226 2008-05-29  Eric Blake  <ebb9@byu.net>
29227
29228         Prefer new POSIX 200x interfaces over futimesat.
29229         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29230         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29231         when available.
29232         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29233
29234 2008-05-28  Bruno Haible  <bruno@clisp.org>
29235
29236         * modules/stpcpy (License): Change to LGPLv2+.
29237         Requested by David Lutterkort <dlutter@redhat.com>.
29238
29239 2008-05-27  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29242         current mingw.
29243         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29244
29245 2008-05-27  Bruno Haible  <bruno@clisp.org>
29246
29247         * modules/iconv_open (Link): New section, from module 'iconv'.
29248         * modules/striconv (Link): Likewise.
29249         * modules/striconveh (Link): Likewise.
29250         * modules/xstriconv (Link): Likewise.
29251         * modules/unicodeio (Link): Likewise.
29252         * modules/propername (Link): Likewise.
29253         Reported by Jim Meyering.
29254
29255 2008-05-26  Jim Meyering  <meyering@redhat.com>
29256
29257         sha256: do not artificially restrict buffer length to be < 2^32
29258         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29259         uint32_t to size_t.
29260         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29261         to match.
29262
29263         avoid unaligned access errors, e.g., on sparc
29264         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29265         direct access through a possibly-unaligned uint64* pointer.
29266         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29267         direct access through a possibly-unaligned uint32* pointer.
29268         Prompted by this patch from Tom "spot" Callaway:
29269         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29270
29271         sha512.c: fix typo in comment
29272         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29273
29274 2008-05-25  Bruno Haible  <bruno@clisp.org>
29275
29276         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29277         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29278         (Makefile.am): Update lib_SOURCES.
29279
29280 2008-05-25  Bruno Haible  <bruno@clisp.org>
29281
29282         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29283
29284 2008-05-25  Jim Meyering  <meyering@redhat.com>
29285
29286         useless-if-before-free: freed expr may have white-space differences
29287         * build-aux/useless-if-before-free: Recognize cases in which the
29288         freed expression differs from the tested one in embedded white
29289         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29290         $1 was used, so we can't make any regexp shy.  Improved tests now
29291         detect this.
29292
29293         useless-if-before-free: accept white space in the expression.
29294         * build-aux/useless-if-before-free: For now, any white space
29295         in the expression must be identical in the free argument.
29296
29297         useless-if-before-free: efficiency tweak
29298         * build-aux/useless-if-before-free: Make the expression-matching
29299         regexp "shy".
29300         Make the *outer* regexp shy, not the expr-matching one.
29301
29302         update code-in-comment to accept cast of free arg
29303         * build-aux/useless-if-before-free: Update regexp.
29304
29305 2008-05-25  Bruno Haible  <bruno@clisp.org>
29306
29307         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29308         * modules/copy-file-tests (Files, Makefile.am): Update.
29309         * tests/test-copy-file.c (func_test_copy): Update.
29310
29311 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29312
29313         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29314
29315 2008-05-23  Bruno Haible  <bruno@clisp.org>
29316
29317         Improve support for ACLs on OSF/1.
29318         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29319         Remove fallback for unknown flavors of ACLs.
29320
29321 2008-05-22  Bruno Haible  <bruno@clisp.org>
29322
29323         Add support for ACLs on OSF/1.
29324         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29325         replacements.
29326         (acl_free_text): New macro fallback.
29327         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29328         acl_free.
29329         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29330         acl_free_text function. Require AC_C_INLINE.
29331
29332 2008-05-22  Bruno Haible  <bruno@clisp.org>
29333
29334         Make copy_acl work on MacOS X 10.5.
29335         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29336         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29337         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29338         If MODE_INSIDE_ACL, don't assume that every system has the same text
29339         representation for ACLs as FreeBSD.
29340         * lib/copy-acl.c (copy_acl): Add support for platforms with
29341         !MODE_INSIDE_ACL.
29342         * lib/file-has-acl.c (file_has_acl): Likewise.
29343         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29344         FreeBSD, MacOS X, or IRIX, respectively.
29345
29346 2008-05-22  Bruno Haible  <bruno@clisp.org>
29347
29348         * lib/acl.h: Don't include <sys/acl.h>.
29349         (GETACLCNT): Move fallback to lib/acl-internal.h.
29350         * lib/acl-internal.h: Include <sys/acl.h> here.
29351         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29352
29353 2008-05-22  Bruno Haible  <bruno@clisp.org>
29354
29355         Split off copy_acl function to separate file.
29356         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29357         * lib/acl.c (copy_acl): Moved function to separate file.
29358         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29359         * modules/acl (Files): Add lib/copy-acl.c.
29360         (Makefiles.am): Augment lib_SOURCES.
29361
29362 2008-05-22  Bruno Haible  <bruno@clisp.org>
29363
29364         * modules/copy-file-tests: New file.
29365         * tests/test-copy-file.sh: New file.
29366         * tests/test-copy-file.c: New file.
29367         * tests/test-copy-file-sameacls.c: New file.
29368
29369 2008-05-22  Eric Blake  <ebb9@byu.net>
29370
29371         Avoid gcc warning.
29372         * tests/test-memcmp.c (main): Pass NULL indirectly.
29373
29374 2008-05-21  Bruno Haible  <bruno@clisp.org>
29375
29376         Add reference doc about ACLs.
29377         * doc/acl-resources.txt: New file.
29378         * doc/acl-cygwin.txt: New file.
29379
29380 2008-05-21  Bruno Haible  <bruno@clisp.org>
29381
29382         Avoid one more warning from gcc.
29383         * lib/vasnprintf.c (IF_LINT): Update comments.
29384         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29385
29386 2008-05-21  Jim Meyering  <meyering@redhat.com>
29387
29388         avoid a warning from gcc
29389         * lib/vasnprintf.c (IF_LINT): Define.
29390         (scale10_round_decimal_long_double):
29391         Use it to avoid a "may be used uninitialized" warning.
29392         (scale10_round_decimal_double): Likewise.
29393
29394 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29395
29396         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29397         declared.
29398
29399 2008-05-20  Bruno Haible  <bruno@clisp.org>
29400
29401         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29402         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29403
29404 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29405
29406         * modules/memcmp-tests: New file.
29407         * tests/test-memcmp.c: New file.
29408
29409 2008-05-19  Bruno Haible  <bruno@clisp.org>
29410
29411         * modules/propername (Notice, configure.ac): Put quoted "..." into
29412         --keyword option.
29413         * lib/propername.h: Update comments accordingly.
29414         Reported by Eric Blake.
29415
29416 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29417
29418         * modules/getpass-gnu (Depends-on): Add fseeko.
29419
29420 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29421
29422         * modules/base64-tests: New file.
29423
29424 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29425
29426         * lib/base64.c (base64_decode_ctx): If a decode context structure
29427         was passed in use it to ignore newlines.  If a context structure
29428         was _not_ passed in, continue to treat newlines as garbage (this
29429         is the historical behavior).  Formerly base64_decode.
29430         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29431         takes a decode context structure.
29432         * lib/base64.h (base64_decode): Macro for four-argument calls.
29433         (base64_decode_alloc): Likewise.
29434         * lib/base64.c (base64_decode_ctx): If a decode context structure
29435         was passed in use it to ignore newlines.  If a context structure
29436         was _not_ passed in, continue to treat newlines as garbage (this
29437         is the historical behavior).  Formerly base64_decode.
29438         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29439         takes a decode context structure.
29440         * lib/base64.h (base64_decode): Macro for four-argument calls.
29441         (base64_decode_alloc): Likewise.
29442
29443 2008-05-19  Jim Meyering  <meyering@redhat.com>
29444
29445         avoid a warning from gcc
29446         * lib/trim.c (IF_LINT): Define.
29447         (trim2): Use it to avoid a "may be used uninitialized" warning.
29448
29449         Fix doc typo.
29450         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29451
29452 2008-05-19  Bruno Haible  <bruno@clisp.org>
29453
29454         * doc/glibc-functions/getpass.texi: Document limits of other
29455         implementations.
29456
29457 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29458             Bruno Haible <bruno@clisp.org>
29459
29460         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29461
29462 2008-05-18  Bruno Haible  <bruno@clisp.org>
29463
29464         * modules/propername: New file, from GNU gettext.
29465         * lib/propername.h: New file, from GNU gettext.
29466         * lib/propername.c: New file, from GNU gettext.
29467         * MODULES.html.sh (Internationalization functions): Add propername.
29468
29469 2008-05-16  Jim Meyering  <meyering@redhat.com>
29470             Bruno Haible  <bruno@clisp.org>
29471
29472         Avoid some warnings from "gcc -Wshadow".
29473         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29474
29475 2008-05-15  Eric Blake  <ebb9@byu.net>
29476
29477         Extend previous patch to cygwin 1.7.0.
29478         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29479         fast implementation in cygwin >= 1.7.0.
29480         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29482
29483 2008-05-15  Bruno Haible  <bruno@clisp.org>
29484
29485         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29486         implementation in glibc >= 2.9.
29487         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29489
29490 2008-05-15  Bruno Haible  <bruno@clisp.org>
29491
29492         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29493         (Unicode string functions): Add unilbrk/*.
29494         Reported by Karl Berry.
29495
29496 2008-05-15  Eric Blake  <ebb9@byu.net>
29497
29498         Fix violation of <stdbool.h> replacement in regex.
29499         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29500         * lib/regexec.c (re_search_internal): Likewise.
29501         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29502
29503 2008-05-15  Jim Meyering  <meyering@redhat.com>
29504
29505         avoid distracting test output when git or cvs is not found
29506         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29507         * tests/test-vc-list-files-git.sh: Likewise.
29508
29509 2008-05-15  Eric Blake  <ebb9@byu.net>
29510
29511         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29512         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29513         glibc version.
29514         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29515         * doc/posix-functions/strstr.texi (strstr): Likewise.
29516         * lib/str-two-way.h (MAX): Sychronize with glibc.
29517
29518 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29519
29520         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29521         opr.ctx_type.
29522         (calc_first): Initialize constraint field.
29523         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29524         Fix grammar.
29525         (duplicate_node): Merge constraint field for all node types.
29526         (calc_eclosure_iter): Look at constraint field for all node types.
29527         * lib/regex_internal.c (create_cd_newstate): Don't look at
29528         opr.ctx_type.
29529
29530 2008-05-14  Bruno Haible  <bruno@clisp.org>
29531
29532         Help GCC to do better code generation.
29533         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29534         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29535         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29536         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29537         Declare with attribute 'malloc' if supported.
29538
29539 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29540
29541         use "echo STR|wc -c" rather than unportable "expr length STR"
29542         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29543         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29544
29545 2008-05-14  Jim Meyering  <meyering@redhat.com>
29546
29547         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29548         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29549         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29550         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29551         via Collin Lasse.
29552
29553 2008-05-14  Eric Blake  <ebb9@byu.net>
29554
29555         Avoid quadratic growth in gl_LIBSOURCES.
29556         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29557         Suggested by Bruno Haible.
29558
29559         Test xmemdup0.
29560         * modules/xmemdup0-tests: New file.
29561         * tests/test-xmemdup0.c: Likewise.
29562
29563 2008-05-13  Eric Blake  <ebb9@byu.net>
29564
29565         Split xmemdup0 into its own module.
29566         * modules/xmemdup0: New file.
29567         * lib/xmemdup0.h: Likewise.
29568         * lib/xmemdup0.c: Likewise.
29569         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29570         * lib/xalloc.h (xmemdup0): Remove.
29571         * lib/xmalloc.c (xmemdup0): Likewise.
29572
29573 2008-05-13  Eric Blake  <ebb9@byu.net>
29574             Bruno Haible  <bruno@clisp.org>
29575
29576         Reduce number of forks required during autoconf.
29577         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29578         and gl_LIBSOURCES_DIR.
29579         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29580         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29581         m4_syscmd per file.
29582         <m4_foreach_w>: Move...
29583         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29584
29585 2008-05-13  Eric Blake  <ebb9@byu.net>
29586
29587         * gnulib-tool: Fix various comment typos.
29588
29589 2008-05-12  Bruno Haible  <bruno@clisp.org>
29590
29591         Tailor the linebreaking algorithm.
29592         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29593
29594 2008-05-12  Bruno Haible  <bruno@clisp.org>
29595
29596         Update to Unicode 5.0.0.
29597         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29598         LBP_JV, LBP_JT. Redistribute values.
29599         (unilbrk_table): Change size.
29600         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29601         Unicode TR#14 rev. 22.
29602         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29603         LBP_JV, LBP_JT. Redistribute values.
29604         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29605         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29606         Update.
29607         * lib/unilbrk/lbrkprop1.h: Regenerated.
29608         * lib/unilbrk/lbrkprop2.h: Regenerated.
29609         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29610         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29611         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29612         Likewise.
29613         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29614         Likewise.
29615         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29616         result.
29617         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29618         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29619         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29620         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29621         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29622         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29623
29624 2008-05-11  Bruno Haible  <bruno@clisp.org>
29625
29626         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29627
29628 2008-05-11  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29631         * modules/unilbrk/gen-lbrk: New file.
29632
29633 2008-05-11  Bruno Haible  <bruno@clisp.org>
29634
29635         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29636         * m4/sha512.m4 (gl_SHA512): Likewise.
29637
29638 2008-05-11  Jim Meyering  <meyering@redhat.com>
29639
29640         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29641         * modules/crypto/sha256: New file.
29642         * modules/crypto/sha512: Likewise.
29643         * lib/sha256.c: Likewise.
29644         * lib/sha256.h: Likewise.
29645         * lib/sha512.c: Likewise.
29646         * lib/sha512.h: Likewise.
29647         * lib/u64.h: Likewise.
29648         * m4/sha256.m4: Likewise.
29649         * m4/sha512.m4: Likewise.
29650         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29651
29652 2008-05-10  Bruno Haible  <bruno@clisp.org>
29653
29654         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29655         (Input/Output <stdio.h>): Add xprintf.
29656         (Signal handling <signal.h>): Add strsignal.
29657         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29658         (Core language properties): Add func.
29659         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29660         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29661         strings.
29662         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29663         (Input/output): New section.
29664         (File system functions): Add openat-die, stat-macros.
29665         (Networking functions): Add sockets.
29666         (Unicode string functions): Add unictype/*.
29667         (Support for building libraries and executables): Add gperf.
29668         (Support for building documentation): Add agpl-3.0.
29669         (Misc): Add nocrash.
29670
29671 2008-05-10  Bruno Haible  <bruno@clisp.org>
29672
29673         * modules/unictype/gen-ctype: New file.
29674
29675 2008-05-10  Jim Meyering  <meyering@redhat.com>
29676
29677         Make chdir-safer.c more efficient on a system with no symlinks.
29678         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29679         also if ELOOP is zero.  Suggested by Bruno Haible.
29680
29681         Make chdir-safer.c slightly safer.
29682         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29683         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29684
29685         Avoid compile failure on systems without ELOOP (like mingw).
29686         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29687         Reported by Bruno Haible.
29688
29689 2008-05-10  Bruno Haible  <bruno@clisp.org>
29690
29691         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29692         (is_utf8_encoding): Use a case-insensitive comparison.
29693         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29694         streq.
29695
29696 2008-05-10  Bruno Haible  <bruno@clisp.org>
29697
29698         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29699         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29700         * lib/unilbrk/ulc-common.h (iconv_string_length,
29701         iconv_string_keeping_offsets): Remove declarations.
29702         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29703         Don't include <iconv.h>, streq.h, xsize.h.
29704         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29705         conversion.
29706         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29707         <iconv.h>, streq.h, xsize.h.
29708         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29709         conversion.
29710         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29711         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29712         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29713         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29714
29715 2008-05-10  Bruno Haible  <bruno@clisp.org>
29716
29717         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29718         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29719
29720         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29721         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29722
29723         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29724         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29725
29726         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29727         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29728
29729         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29730         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29731
29732         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29733         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29734
29735         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29736         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29737
29738         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29739         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29740
29741 2008-05-10  Bruno Haible  <bruno@clisp.org>
29742
29743         Split up 'linebreak' module.
29744         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29745         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29746         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29747         modifications.
29748         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29749         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29750         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29751         lib/linebreak.c.
29752         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29753         lib/linebreak.c.
29754         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29755         lib/linebreak.c.
29756         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29757         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29758         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29759         lib/linebreak.c.
29760         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29761         lib/linebreak.c.
29762         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29763         lib/linebreak.c.
29764         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29765         lib/linebreak.c.
29766         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29767         lib/linebreak.c.
29768         * modules/unilbrk/base: New file.
29769         * modules/unilbrk/tables: New file.
29770         * modules/unilbrk/u8-possible-linebreaks: New file.
29771         * modules/unilbrk/u16-possible-linebreaks: New file.
29772         * modules/unilbrk/u32-possible-linebreaks: New file.
29773         * modules/unilbrk/ulc-common: New file.
29774         * modules/unilbrk/ulc-possible-linebreaks: New file.
29775         * modules/unilbrk/u8-width-linebreaks: New file.
29776         * modules/unilbrk/u16-width-linebreaks: New file.
29777         * modules/unilbrk/u32-width-linebreaks: New file.
29778         * modules/unilbrk/ulc-width-linebreaks: New file.
29779         * lib/linebreak.h: Remove file.
29780         * lib/linebreak.c: Remove file.
29781         * m4/linebreak.m4: Remove file.
29782         * modules/linebreak: Remove file.
29783         * NEWS: Mention the changes.
29784
29785 2008-05-09  Eric Blake  <ebb9@byu.net>
29786
29787         Add xmemdup0.
29788         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29789         implementation.
29790         * lib/xmalloc.c (xmemdup0): New C implementation.
29791
29792 2008-05-08  Bruno Haible  <bruno@clisp.org>
29793
29794         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29795
29796 2008-05-07  Eric Blake  <ebb9@byu.net>
29797
29798         Support cross-compilation of <wctype.h>.
29799         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29800         AC_CACHE_CHECK.
29801
29802 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29803
29804         * build-aux/vc-list-files: Add support for bzr.
29805
29806 2008-05-03  Jim Meyering  <meyering@redhat.com>
29807
29808         avoid failed assertion with tight malloc
29809         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29810
29811 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29812
29813         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29814         are needed from arpa/inet.h.
29815         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29816         Reported by Bruno Haible.
29817
29818 2008-05-02  Jim Meyering  <meyering@redhat.com>
29819
29820         avoid compilation error on FreeBSD 6
29821         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29822
29823 2008-05-01  Jim Meyering  <meyering@redhat.com>
29824
29825         useless-if-before-free: correct --help's exit status description
29826         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29827         for one or more matches, etc.  Reported by Bruno Haible.
29828
29829         vc-list-files: make the stand-alone gnulib test work
29830         * modules/vc-list-files-tests (configure.ac):
29831         Define and AC_SUBST abs_aux_dir.
29832         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29833         $(abs_top_srcdir) to each script and having each of them
29834         duplicate the work of setting PATH, set PATH here, using
29835         the new variable, abs_aux_dir instead.
29836         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29837         * tests/test-vc-list-files-git.sh: Likewise.
29838         Reported by Bruno Haible.
29839
29840 2008-05-01  Bruno Haible  <bruno@clisp.org>
29841
29842         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29843         reallocation. Rename 'done' to 'found_delimiter'.
29844
29845 2008-05-01  Jim Meyering  <meyering@redhat.com>
29846
29847         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29848         * build-aux/vc-list-files: Use `...`, not $(...).
29849
29850 2008-04-30  Jim Meyering  <meyering@redhat.com>
29851
29852         add tests for vc-list-files
29853         * modules/vc-list-files-tests: New module.
29854         * tests/test-vc-list-files-cvs.sh: New file.
29855         * tests/test-vc-list-files-git.sh: New file.
29856
29857         avoid a warning from gcc
29858         * lib/getndelim2.c (IF_LINT): Define.
29859         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29860
29861         vc-list-files: work properly with build-aux/cvsu, too
29862         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29863         to all cvs-based clauses.
29864
29865         vc-list-files: work properly in the CVS+awk case, too
29866         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29867
29868         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29869         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29870         take more than one file argument, so .  Add quotes, just in case $dir
29871         ever contains a shell meta-character.  Prompted by Soren Hansen in
29872         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29873
29874 2008-04-29  Eric Blake  <ebb9@byu.net>
29875
29876         Optimize getndelim2 to use block operations when possible.
29877         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29878         freadseek, and memchr2.
29879         * lib/getndelim2.c (getndelim2): Use them for block reads.
29880
29881 2008-04-29  Bruno Haible  <bruno@clisp.org>
29882
29883         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29884         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29885         * modules/inet_ntop (Depends-on): Add extensions.
29886         * modules/inet_pton (Depends-on): Likewise.
29887         Reported by Simon Josefsson.
29888
29889 2008-04-29  Jim Meyering  <meyering@redhat.com>
29890
29891         When the is more than one match in a block, match all of them.
29892         * build-aux/useless-if-before-free: Iterate through each block
29893         until there are no more matches.
29894
29895         Fix broken useless-if-before-free script.
29896         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29897         the expression to match cast of argument to free-like function.
29898
29899 2008-04-29  Eric Blake  <ebb9@byu.net>
29900
29901         Use new header.
29902         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29903
29904 2008-04-29  Jim Meyering  <meyering@redhat.com>
29905
29906         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29907         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29908         by gnulib to exist and to declare e.g., inet_ntop.
29909         Don't include "inet_ntop.h", now removed.
29910
29911         * m4/arpa_inet_h.m4: Remove trailing blanks.
29912
29913 2008-04-29  Eric Blake  <ebb9@byu.net>
29914
29915         Silence valgrind on safe reads beyond potential array bounds.
29916         * lib/rawmemchr.valgrind: New file.
29917         * lib/strchrnul.valgrind: Likewise.
29918         * modules/rawmemchr (Files): Distribute new file.
29919         * modules/strchrnul (Files): Likewise.
29920         Suggested by Bruno Haible.
29921
29922 2008-04-29  Bruno Haible  <bruno@clisp.org>
29923
29924         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29925         (inet_ntop, inet_pton): Change portability warning's wording.
29926         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29927         Invoke gl_CHECK_NEXT_HEADERS.
29928         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29929         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29930         set ARPA_INET_H.
29931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29932         * modules/arpa_inet (Description): No longer only for systems that
29933         lack it.
29934         (Depends-on): Add include_next.
29935         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29936         HAVE_ARPA_INET_H.
29937
29938 2008-04-29  Jim Meyering  <meyering@redhat.com>
29939
29940         * modules/mkdir (License): Re-license as LGPLv2+.
29941
29942 2008-04-29  Bruno Haible  <bruno@clisp.org>
29943
29944         * modules/rawmemchr (Maintainer): Set to Eric.
29945         * modules/strchrnul (Maintainer): Likewise.
29946
29947 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29948
29949         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29950         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29951
29952         * modules/arpa_inet (arpa/inet.h): Use them.
29953
29954 2008-04-28  Eric Blake  <ebb9@byu.net>
29955
29956         Test getndelim2.
29957         * modules/getndelim2-tests: New file.
29958         * tests/test-getndelim2.c: Likewise.
29959         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29960         stream.
29961         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29962
29963         * MODULES.html.sh: Document new module.
29964
29965 2008-04-20  Bruno Haible  <bruno@clisp.org>
29966
29967         * lib/c-stack.c (die): Use raise.
29968         * modules/c-stack (Depends-on): Add raise.
29969
29970 2008-04-28  Bruno Haible  <bruno@clisp.org>
29971
29972         Expect rpmatch to be declared.
29973         * lib/yesno.c (rpmatch): Remove declaration.
29974
29975         Declare rpmatch.
29976         * lib/stdlib.in.h (rpmatch): New declaration.
29977         * lib/rpmatch.c: Include <stdlib.h> first.
29978         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29979         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29981         HAVE_RPMATCH.
29982         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29983         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29984         (Include): Set to <stdlib.h>.
29985         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29986         HAVE_RPMATCH.
29987         * NEWS: Document the change.
29988
29989 2008-04-28  Bruno Haible  <bruno@clisp.org>
29990
29991         Change rpmatch to use nl_langinfo when appropriate.
29992         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29993         (N_): New macro.
29994         (localized_pattern): New function/macro.
29995         (try): Remove match, nomatch arguments. Copy the pattern into safe
29996         memory before caching it.
29997         (rpmatch): Use localized_pattern. Add translator comments.
29998         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29999         Suggested by Eric Blake.
30000         * modules/rpmatch (Depends-on): Add stdbool.
30001
30002 2008-04-28  Eric Blake  <ebb9@byu.net>
30003
30004         Add rawmemchr module, matching glibc.
30005         * modules/string (Makefile.am): New indicator.
30006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30007         * lib/string.in.h (rawmemchr): Declare when appropriate.
30008         * modules/rawmemchr: New file.
30009         * m4/rawmemchr.m4: Likewise.
30010         * lib/rawmemchr.c: Likewise.
30011         * modules/rawmemchr-tests: Likewise.
30012         * tests/test-rawmemchr.c: Likewise.
30013         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30014         module.
30015         * modules/strchrnul (Depends-on): Add rawmemchr.
30016         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30017
30018         Whitespace cleanup.
30019         * tests/test-strchrnul.c: Reindent.
30020         * lib/strchrnul.c: Likewise.
30021
30022         Optimize and test strchrnul.
30023         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30024         * modules/strchrnul-tests: New file.
30025         * tests/test-strchrnul.c: Likewise.
30026
30027         Remove intprops dependency.
30028         * modules/memchr (Depends-on): Remove intprops.
30029         * modules/memrchr (Depends-on): Likewise.
30030         * modules/memchr2 (Depends-on): Likewise.
30031         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30032         * lib/memrchr.c (__memrchr): Likewise.
30033         * lib/memrchr2.c (memchr2): Likewise.
30034         Reported by Simon Josefsson.
30035
30036 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30037
30038         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30039         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30040
30041 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30042
30043         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30044
30045         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30046
30047         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30048
30049         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30050         declarations.
30051         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30052
30053         * m4/inet_pton.m4: Don't check for header files.
30054
30055         * m4/inet_ntop.m4: Don't check for header files.
30056
30057 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30058
30059         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30060         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30061         trigger for cygwin).
30062         Reported by Bruno Haible  <bruno@clisp.org>.
30063
30064 2008-04-28  Bruno Haible  <bruno@clisp.org>
30065
30066         * doc/posix-functions/strdup.texi: Mention mingw problem.
30067
30068 2008-04-27  Bruno Haible  <bruno@clisp.org>
30069
30070         * modules/stat-time-tests (Depends-on): Add sleep.
30071         * tests/test-stat-time.c (force_unlink): New function.
30072         (cleanup): Use it.
30073         (test_mtime): Remove the ctime related tests.
30074         (test_ctime): New function, containing the ctime related tests.
30075         (main): Call test_ctime, except on native Windows platforms.
30076
30077 2008-04-27  Bruno Haible  <bruno@clisp.org>
30078
30079         * lib/rpmatch.c (rpmatch): Add some comments.
30080         Reported by James Youngman <jay@gnu.org>.
30081
30082 2008-04-27  Bruno Haible  <bruno@clisp.org>
30083
30084         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30085         quiet NaNs.
30086
30087 2008-04-27  Bruno Haible  <bruno@clisp.org>
30088
30089         Make test-yesno.sh work on mingw.
30090         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30091         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30092         (main): Set stdin to binary mode.
30093         * modules/yesno-tests (Depends-on): Add binary-io.
30094
30095 2008-04-27  Bruno Haible  <bruno@clisp.org>
30096
30097         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30098         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30099         argument that lie outside the IEEE 854 domain.
30100         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30101         (gl_ISFINITE): Use it.
30102         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30103
30104 2008-04-27  Bruno Haible  <bruno@clisp.org>
30105
30106         Allow local renaming in config.h.
30107         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30108
30109 2008-04-27  Bruno Haible  <bruno@clisp.org>
30110
30111         * lib/memchr.c (__memchr): Change type of 'i'.
30112         * lib/memchr2.c (memchr2): Likewise.
30113
30114 2008-04-26  Eric Blake  <ebb9@byu.net>
30115         and Bruno Haible  <bruno@clisp.org>
30116
30117         Optimize and test memrchr.
30118         * modules/memrchr (Depends-on): Add intprops.
30119         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30120         * modules/memrchr-tests: New file.
30121         * tests/test-memrchr.c: New file.
30122
30123 2008-04-26  Bruno Haible  <bruno@clisp.org>
30124
30125         Add tentative support for DragonFly BSD.
30126         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30127         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30128         fp.
30129         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30130         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30131         * lib/fpurge.c (fpurge): Likewise.
30132         * lib/freadable.c (freaadable): Likewise.
30133         * lib/freadahead.c (freadahead): Likewise.
30134         * lib/freading.c (freading): Likewise.
30135         * lib/freadptr.c (freadptr): Likewise.
30136         * lib/freadseek.c (freadptrinc): Likewise.
30137         * lib/fseeko.c (fseeko): Likewise.
30138         * lib/fseterr.c (fseterr): Likewise.
30139         * lib/fwritable.c (fwritable): Likewise.
30140         * lib/fwriting.c (fwriting): Likewise.
30141
30142 2008-04-26  Bruno Haible  <bruno@clisp.org>
30143
30144         * lib/stdio-impl.h: New file.
30145         * lib/fbufmode.c: Include stdio-impl.h.
30146         (fbufmode): Use fp_, remove redundant #defines.
30147         * lib/fflush.c: Include stdio-impl.h.
30148         (clear_ungetc_buffer): Remove redundant #defines.
30149         * lib/fpurge.c: Include stdio-impl.h.
30150         (fpurge): Remove redundant #defines.
30151         * lib/freadable.c: Include stdio-impl.h.
30152         (freadable): Remove redundant #defines.
30153         * lib/freadahead.c: Include stdio-impl.h.
30154         (freadahead): Remove redundant #defines.
30155         * lib/freading.c: Include stdio-impl.h.
30156         (freading): Remove redundant #defines.
30157         * lib/freadptr.c: Include stdio-impl.h.
30158         (freadptr): Remove redundant #defines.
30159         * lib/freadseek.c: Include stdio-impl.h.
30160         (freadptrinc): Remove redundant #defines.
30161         * lib/fseeko.c: Include stdio-impl.h.
30162         (rpl_fseeko): Remove redundant #defines.
30163         * lib/fseterr.c: Include stdio-impl.h.
30164         (fseterr): Remove redundant #defines.
30165         * lib/fwritable.c: Include stdio-impl.h.
30166         (fwritable: Remove redundant #defines.
30167         * lib/fwriting.c: Include stdio-impl.h.
30168         (fwriting): Remove redundant #defines.
30169         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30170         * modules/fflush (Files): Likewise.
30171         * modules/fpurge (Files): Likewise.
30172         * modules/freadable (Files): Likewise.
30173         * modules/freadahead (Files): Likewise.
30174         * modules/freading (Files): Likewise.
30175         * modules/freadptr (Files): Likewise.
30176         * modules/freadseek (Files): Likewise.
30177         * modules/fseeko (Files): Likewise.
30178         * modules/fseterr (Files): Likewise.
30179         * modules/fwritable (Files): Likewise.
30180         * modules/fwriting (Files): Likewise.
30181
30182 2008-04-26  Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30185         restore_seek_optimization, update_fpos_cache): New functions, extracted
30186         from rpl_fflush.
30187         (rpl_fflush): Use them.
30188         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30189         (gl_REPLACE_FFLUSH): Use it.
30190
30191 2008-04-26  Bruno Haible  <bruno@clisp.org>
30192
30193         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30194         on Solaris.
30195         * tests/test-xstrtoimax.sh: Likewise.
30196         * tests/test-xstrtoumax.sh: Likewise.
30197         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30198
30199 2008-04-26  Bruno Haible  <bruno@clisp.org>
30200
30201         * modules/memchr-tests: New file.
30202         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30203
30204 2008-04-26  Eric Blake  <ebb9@byu.net>
30205             Bruno Haible  <bruno@clisp.org>
30206
30207         * lib/memchr.c: Include intprops.h.
30208         (__memchr): Optimize parallel detection of matching bytes. Rename local
30209         variables. Add explanatory comments.
30210
30211 2008-04-26  Bruno Haible  <bruno@clisp.org>
30212
30213         Fix module 'memchr', broken since 2000-10-28.
30214         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30215
30216 2008-04-26  Bruno Haible  <bruno@clisp.org>
30217
30218         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30219         comments.
30220
30221 2008-04-25  Eric Blake  <ebb9@byu.net>
30222
30223         Use native fstatat on cygwin 1.7.0.
30224         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30225         first.
30226
30227 2008-04-23  Eric Blake  <ebb9@byu.net>
30228
30229         Improve memchr2 performance.
30230         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30231         NUL bytes.
30232         * modules/memchr2 (Depends-on): Use intprops.h.
30233
30234 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30235
30236         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30237         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30238         <blp@cs.stanford.edu>.
30239
30240 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30241
30242         * lib/arpa_inet.in.h: New file.
30243
30244         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30245         (Makefile.am): Sed in substitute header file.
30246
30247         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30248         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30249
30250         * modules/inet_ntop (configure.ac): Use
30251         gl_ARPA_INET_MODULE_INDICATOR.
30252
30253         * modules/inet_pton (configure.ac): Use
30254         gl_ARPA_INET_MODULE_INDICATOR.
30255
30256 2008-04-22  Jim Meyering  <meyering@redhat.com>
30257
30258         * modules/verify (License): Re-license as LGPLv2+.
30259
30260 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30261
30262         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30263         parameter to void* as per POSIX standard (MinGW uses char*).
30264
30265 2008-04-21  Bruno Haible  <bruno@clisp.org>
30266
30267         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30268         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30269         Define to replacements if REPLACE_ISWCNTRL is 1.
30270         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30271         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30272         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30273         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30274         what it fixes.
30275         * doc/posix-functions/iswalpha.texi: Likewise.
30276         * doc/posix-functions/iswblank.texi: Likewise.
30277         * doc/posix-functions/iswcntrl.texi: Likewise.
30278         * doc/posix-functions/iswdigit.texi: Likewise.
30279         * doc/posix-functions/iswgraph.texi: Likewise.
30280         * doc/posix-functions/iswlower.texi: Likewise.
30281         * doc/posix-functions/iswprint.texi: Likewise.
30282         * doc/posix-functions/iswpunct.texi: Likewise.
30283         * doc/posix-functions/iswspace.texi: Likewise.
30284         * doc/posix-functions/iswupper.texi: Likewise.
30285         * doc/posix-functions/iswxdigit.texi: Likewise.
30286         Reported by Alain Guibert.
30287
30288 2008-04-21  Bruno Haible  <bruno@clisp.org>
30289
30290         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30291         Patch by Alain Guibert.
30292
30293 2008-04-21  Bruno Haible  <bruno@clisp.org>
30294
30295         Fix test failures on mingw.
30296         * tests/test-xstrtol.c (print_no_progname): New function.
30297         (main): Install it in error_print_progname hook.
30298         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30299         * tests/test-xstrtoimax.sh: Likewise.
30300         * tests/test-xstrtoumax.sh: Likewise.
30301
30302 2008-04-21  Bruno Haible  <bruno@clisp.org>
30303
30304         Fix test failure on mingw.
30305         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30306
30307 2008-04-21  Bruno Haible  <bruno@clisp.org>
30308
30309         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30310         Actually assign a value.
30311
30312 2008-04-20  Bruno Haible  <bruno@clisp.org>
30313
30314         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30315         take 2.
30316         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30317         'canonicalize-lgpl' module is also used.
30318         * lib/canonicalize-lgpl.c: Undo last change.
30319         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30320
30321 2008-04-20  Bruno Haible  <bruno@clisp.org>
30322
30323         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30324         config.h. Provide _mkdir based fallback for mingw.
30325         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30326         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30327         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30328         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30329         rather than defining mkdir in config.h.
30330         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30331         (gl_SYS_STAT_H_DEFAULTS): New macro.
30332         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30333         HAVE_IO_H any more.
30334         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30335         HAVE_DECL_MKDIR and HAVE_IO_H.
30336
30337 2008-04-20  Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/isapipe.c: Port to native Windows platforms.
30340
30341 2008-04-20  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30344
30345 2008-04-21  Eric Blake  <ebb9@byu.net>
30346
30347         Work around preprocessors that don't handle UINTMAX_MAX.
30348         * lib/memchr2.c (memchr2): Avoid embedded #if.
30349         Reported by Alain Guibert, fix suggested by Bruno Haible.
30350
30351 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30352
30353         * doc/posix-functions/strftime.texi (strftime): Explain better
30354         Windows incompatibility.  Suggested by Micah Cowan
30355         <micah@cowan.name>.
30356
30357 2008-04-20  Bruno Haible  <bruno@clisp.org>
30358
30359         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30360         unistr/u8-mblen.
30361
30362 2008-04-20  Bruno Haible  <bruno@clisp.org>
30363
30364         Fix test failure on platforms with non-GNU iconv.
30365         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30366         (U_TO_U8): Use it, rather than u16_to_u8.
30367         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30368         units at the end of the input string.
30369         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30370
30371 2008-04-20  Bruno Haible  <bruno@clisp.org>
30372
30373         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30374         when the resulting length is 0.
30375         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30376
30377 2008-04-20  Bruno Haible  <bruno@clisp.org>
30378
30379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30380         works.
30381         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30382
30383 2008-04-20  Bruno Haible  <bruno@clisp.org>
30384
30385         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30386         * modules/tsearch-tests (configure.ac): Test for initstate function.
30387
30388 2008-04-20  Bruno Haible  <bruno@clisp.org>
30389
30390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30391         for nlink_t if missing.
30392         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30393
30394 2008-04-19  Bruno Haible  <bruno@clisp.org>
30395
30396         Work around snprintf bug on Linux libc5.
30397         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30398         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30399         gl_SNPRINTF_SIZE1.
30400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30401         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30402         that test failed.
30403         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30404         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30405         * modules/snprintf (Files): Add m4/printf.m4.
30406         * modules/vsnprintf (Files): Likewise.
30407         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30408         * doc/posix-functions/vsnprintf.texi: Likewise.
30409
30410 2008-04-19  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30413         from 0.0058 to less than 10^-7.
30414
30415 2008-04-19  Bruno Haible  <bruno@clisp.org>
30416
30417         Fix rounding when a precision is given.
30418         * lib/vasnprintf.c (is_borderline): New function.
30419         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30420         9...9x.
30421         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30422         %e, %g.
30423         * tests/test-vasprintf-posix.c (test_function): Likewise.
30424         * tests/test-snprintf-posix.h (test_function): Likewise.
30425         * tests/test-sprintf-posix.h (test_function): Likewise.
30426         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30427         * tests/test-printf-posix.h (test_function): Likewise.
30428         * tests/test-printf-posix.output: Update.
30429         Reported by John Darrington <john@darrington.wattle.id.au> via
30430         Ben Pfaff <blp@cs.stanford.edu>.
30431
30432 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30433
30434         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30435         Suggested by Bruno Haible <bruno@clisp.org>.
30436
30437 2008-04-17  Bruno Haible  <bruno@clisp.org>
30438
30439         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30440         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30441         implementation.
30442         Patch by Bruce Merry <bmerry@gmail.com>.
30443
30444 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30445
30446         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30447         doesn't work under Windows.
30448
30449 2008-04-16  Bruno Haible  <bruno@clisp.org>
30450
30451         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30452         New macros.
30453         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30454         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30455         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30456         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30457         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30458         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30459         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30460         macros.
30461         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30462         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30463         Northern Sotho, Uighur.
30464
30465 2008-04-16  Bruno Haible  <bruno@clisp.org>
30466
30467         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30468         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30469         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30470         Reported by Daniel Bergström <daniel@octocode.com>.
30471
30472 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30473             Bruno Haible  <bruno@clisp.org>
30474
30475         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30476         function.
30477         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30478         New functions, mostly extracted from gl_locale_name_default.
30479         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30480
30481 2008-04-16  Eric Blake  <ebb9@byu.net>
30482
30483         Adjust strtod detection to catch glibc 2.7 bug.
30484         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30485         Reported by John Gatewood Ham.
30486
30487 2008-04-16  Bruno Haible  <bruno@clisp.org>
30488
30489         Add tentative support for Linux libc5.
30490         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30491         * lib/fpurge.c (fpurge): Likewise.
30492         * lib/freadable.c (freadable): Likewise.
30493         * lib/freadahead.c (freadahead): Likewise.
30494         * lib/freading.c (freading): Likewise.
30495         * lib/freadptr.c (freadptr): Likewise.
30496         * lib/freadseek.c (freadptrinc): Likewise.
30497         * lib/fseeko.c (rpl_fseeko): Likewise.
30498         * lib/fseterr.c (fseterr): Likewise.
30499         * lib/fwritable.c (fwritable): Likewise.
30500         * lib/fwriting.c (fwriting): Likewise.
30501         Reported by Alain Guibert <alguibert+bts@free.fr>.
30502
30503 2008-04-15  Bruno Haible  <bruno@clisp.org>
30504
30505         * modules/mathl (configure.ac): Define module indicator.
30506
30507 2008-04-15  Bruno Haible  <bruno@clisp.org>
30508
30509         * lib/logl.c (logl): Remove unused variables.
30510
30511 2008-04-15  Bruno Haible  <bruno@clisp.org>
30512
30513         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30514         fails.
30515
30516 2008-04-15  Bruno Haible  <bruno@clisp.org>
30517
30518         * lib/trim.c (trim2): Fix argument of isspace() macro.
30519
30520 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30521
30522         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30523         to 0.
30524         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30525
30526 2008-04-14  Bruno Haible  <bruno@clisp.org>
30527
30528         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30529         AC_LANG_PROGRAM argument.
30530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30531         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30534         * m4/math_h.m4 (gl_MATH_H): Likewise.
30535         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30537         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30538         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30539         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30540         * m4/regex.m4 (gl_REGEX): Likewise.
30541         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30542         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30544         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30546         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30549
30550 2008-04-14  Jim Meyering  <meyering@redhat.com>
30551
30552         test-strtod: fix typos: s/abs/fabs/
30553         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30554
30555 2008-04-13  Bruno Haible  <bruno@clisp.org>
30556
30557         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30558         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30559         module is also used and while not building the reloc-wrapper.
30560
30561 2008-04-13  Bruno Haible  <bruno@clisp.org>
30562
30563         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30564
30565 2008-04-13  Bruno Haible  <bruno@clisp.org>
30566
30567         Fix AIX compilation failure introduced on 2008-04-02.
30568         * tests/test-frexp.c (exp): Undefine before redefining.
30569         * tests/test-frexpl.c (exp): Likewise.
30570
30571 2008-04-13  Bruno Haible  <bruno@clisp.org>
30572
30573         Work around a HP-UX stdio bug.
30574         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30575         * tests/test-ftello.c (main): Likewise.
30576         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30577         * doc/posix-functions/ftello.texi: Likewise.
30578
30579 2008-04-13  Bruno Haible  <bruno@clisp.org>
30580
30581         Make test-signbit pass on HP-UX/hppa.
30582         * tests/test-signbit.c (minus_zerol): New variable.
30583         (test_signbitl): Use it.
30584
30585 2008-04-13  Bruno Haible  <bruno@clisp.org>
30586
30587         Make truncl work on OSF/1 4.0.
30588         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30589         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30590         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30592         HAVE_DECL_TRUNCL.
30593         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30594         HAVE_DECL_TRUNCL.
30595         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30596
30597 2008-04-13  Bruno Haible  <bruno@clisp.org>
30598
30599         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30600
30601 2008-04-13  Bruno Haible  <bruno@clisp.org>
30602
30603         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30604         expression, so as to avoid HP-UX 11 cc compiler bug.
30605
30606 2008-04-13  Bruno Haible  <bruno@clisp.org>
30607
30608         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30609
30610 2008-04-13  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/git-merge-changelog.c: Remove empty declaration outside of
30613         functions.
30614
30615 2008-04-13  Bruno Haible  <bruno@clisp.org>
30616
30617         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30618
30619 2008-04-13  Bruno Haible  <bruno@clisp.org>
30620
30621         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30622         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30623         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30624         also if it exists but lacks definitions of the SHUT_* macros.
30625         * modules/sys_socket (Description): Update.
30626         Reported by Elbert Pol <e.pol@chello.nl>.
30627
30628 2008-04-13  Bruno Haible  <bruno@clisp.org>
30629
30630         * lib/localcharset.c (OS2): Don't redefine if already defined.
30631         Reported by Elbert Pol <e.pol@chello.nl>.
30632
30633 2008-04-13  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/binary-io.h [__EMX__]: Include <io.h>.
30636         Reported by Elbert Pol <e.pol@chello.nl>.
30637
30638 2008-04-12  Bruno Haible  <bruno@clisp.org>
30639
30640         * lib/fpucw.h: Enable the definitions also for x86_64.
30641         Needed for NetBSD/x86_64.
30642         Reported by Thomas Klausner <tk@giga.or.at>.
30643
30644 2008-04-12  Bruno Haible  <bruno@clisp.org>
30645
30646         * tests/test-strtod.c: Include isnand.h.
30647         (main): Use isnand instead of isnan.
30648         Reported by Jim Meyering.
30649
30650 2008-04-12  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30653         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30654
30655 2008-04-12  Jim Meyering  <meyering@redhat.com>
30656
30657         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30658
30659 2008-04-12  Bruno Haible  <bruno@clisp.org>
30660
30661         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30662         Reported by Elbert Pol <e.pol@chello.nl>.
30663
30664 2008-04-12  Eric Blake  <ebb9@byu.net>
30665
30666         Work around Solaris 10 math.h bug.
30667         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30668         (gl_MATH_H_DEFAULTS): Set up default.
30669         * modules/math (Makefile.am): Replace new indicators.
30670         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30671         * tests/test-math.c (main): Test this.
30672         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30673         * doc/posix-headers/math.texi (math.h): Mention bug.
30674         Reported by Nelson H. F. Beebe and Jim Meyering.
30675
30676 2008-04-11  Bruno Haible  <bruno@clisp.org>
30677
30678         Adapt to future versions of Apple GCC.
30679         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30680         Reported by Peter O'Gorman <peter@pogma.com>.
30681
30682 2008-04-11  Bruno Haible  <bruno@clisp.org>
30683
30684         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30685
30686 2008-04-11  Bruno Haible  <bruno@clisp.org>
30687
30688         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30689
30690         * modules/getaddrinfo-tests (Makefile.am): Define
30691         test_getaddrinfo_LDADD.
30692
30693 2008-04-11  Bruno Haible  <bruno@clisp.org>
30694
30695         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30696         (init): Fix syntax error.
30697         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30698         is declared.
30699
30700 2008-04-11  Bruno Haible  <bruno@clisp.org>
30701
30702         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30703         * modules/glob (Depends-on): Add stdbool.
30704
30705 2008-04-11  Bruno Haible  <bruno@clisp.org>
30706
30707         * lib/trim.c: Include <string.h>.
30708
30709 2008-04-11  Eric Blake  <ebb9@byu.net>
30710
30711         Avoid compile failure on OS/2.
30712         * lib/regex_internal.h (internal_function): Disable optimization
30713         on OS/2 (__EMX__), where it caused compiler error.
30714         Reported by Elbert Pol.
30715
30716 2008-04-11  Bruno Haible  <bruno@clisp.org>
30717
30718         Flush the standard error stream before aborting. Needed on mingw.
30719         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30720         * tests/test-array_list.c (ASSERT): Likewise.
30721         * tests/test-array_oset.c (ASSERT): Likewise.
30722         * tests/test-avltree_list.c (ASSERT): Likewise.
30723         * tests/test-avltree_oset.c (ASSERT): Likewise.
30724         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30725         * tests/test-binary-io.c (ASSERT): Likewise.
30726         * tests/test-byteswap.c (ASSERT): Likewise.
30727         * tests/test-c-ctype.c (ASSERT): Likewise.
30728         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30729         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30730         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30731         * tests/test-c-strstr.c (ASSERT): Likewise.
30732         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30733         * tests/test-canonicalize.c (ASSERT): Likewise.
30734         * tests/test-carray_list.c (ASSERT): Likewise.
30735         * tests/test-ceilf1.c (ASSERT): Likewise.
30736         * tests/test-ceilf2.c (ASSERT): Likewise.
30737         * tests/test-ceill.c (ASSERT): Likewise.
30738         * tests/test-count-one-bits.c (ASSERT): Likewise.
30739         * tests/test-fbufmode.c (ASSERT): Likewise.
30740         * tests/test-fflush2.c (ASSERT): Likewise.
30741         * tests/test-floorf1.c (ASSERT): Likewise.
30742         * tests/test-floorf2.c (ASSERT): Likewise.
30743         * tests/test-floorl.c (ASSERT): Likewise.
30744         * tests/test-fopen.c (ASSERT): Likewise.
30745         * tests/test-fpending.c (ASSERT): Likewise.
30746         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30747         * tests/test-fpurge.c (ASSERT): Likewise.
30748         * tests/test-freadable.c (ASSERT): Likewise.
30749         * tests/test-freadahead.c (ASSERT): Likewise.
30750         * tests/test-freading.c (ASSERT): Likewise.
30751         * tests/test-freadptr.c (ASSERT): Likewise.
30752         * tests/test-freadptr2.c (ASSERT): Likewise.
30753         * tests/test-freadseek.c (ASSERT): Likewise.
30754         * tests/test-freopen.c (ASSERT): Likewise.
30755         * tests/test-frexp.c (ASSERT): Likewise.
30756         * tests/test-frexpl.c (ASSERT): Likewise.
30757         * tests/test-fseek.c (ASSERT): Likewise.
30758         * tests/test-fseeko.c (ASSERT): Likewise.
30759         * tests/test-fstrcmp.c (ASSERT): Likewise.
30760         * tests/test-ftell.c (ASSERT): Likewise.
30761         * tests/test-ftello.c (ASSERT): Likewise.
30762         * tests/test-func.c (ASSERT): Likewise.
30763         * tests/test-fwritable.c (ASSERT): Likewise.
30764         * tests/test-fwriting.c (ASSERT): Likewise.
30765         * tests/test-getdelim.c (ASSERT): Likewise.
30766         * tests/test-getline.c (ASSERT): Likewise.
30767         * tests/test-i-ring.c (ASSERT): Likewise.
30768         * tests/test-iconv-utf.c (ASSERT): Likewise.
30769         * tests/test-iconv.c (ASSERT): Likewise.
30770         * tests/test-isfinite.c (ASSERT): Likewise.
30771         * tests/test-isnand.c (ASSERT): Likewise.
30772         * tests/test-isnanf.c (ASSERT): Likewise.
30773         * tests/test-isnanl.h (ASSERT): Likewise.
30774         * tests/test-ldexpl.c (ASSERT): Likewise.
30775         * tests/test-linked_list.c (ASSERT): Likewise.
30776         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30777         * tests/test-localename.c (ASSERT): Likewise.
30778         * tests/test-lseek.c (ASSERT): Likewise.
30779         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30780         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30781         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30782         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30783         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30784         * tests/test-mbschr.c (ASSERT): Likewise.
30785         * tests/test-mbscspn.c (ASSERT): Likewise.
30786         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30787         * tests/test-mbspbrk.c (ASSERT): Likewise.
30788         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30789         * tests/test-mbsrchr.c (ASSERT): Likewise.
30790         * tests/test-mbsspn.c (ASSERT): Likewise.
30791         * tests/test-mbsstr1.c (ASSERT): Likewise.
30792         * tests/test-mbsstr2.c (ASSERT): Likewise.
30793         * tests/test-mbsstr3.c (ASSERT): Likewise.
30794         * tests/test-memchr2.c (ASSERT): Likewise.
30795         * tests/test-memmem.c (ASSERT): Likewise.
30796         * tests/test-open.c (ASSERT): Likewise.
30797         * tests/test-printf-frexp.c (ASSERT): Likewise.
30798         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30799         * tests/test-printf-posix.c (ASSERT): Likewise.
30800         * tests/test-quotearg.c (ASSERT): Likewise.
30801         * tests/test-rbtree_list.c (ASSERT): Likewise.
30802         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30803         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30804         * tests/test-round1.c (ASSERT): Likewise.
30805         * tests/test-roundf1.c (ASSERT): Likewise.
30806         * tests/test-roundl.c (ASSERT): Likewise.
30807         * tests/test-signbit.c (ASSERT): Likewise.
30808         * tests/test-sleep.c (ASSERT): Likewise.
30809         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30810         * tests/test-snprintf.c (ASSERT): Likewise.
30811         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30812         * tests/test-stat-time.c (ASSERT): Likewise.
30813         * tests/test-strcasestr.c (ASSERT): Likewise.
30814         * tests/test-strerror.c (ASSERT): Likewise.
30815         * tests/test-striconv.c (ASSERT): Likewise.
30816         * tests/test-striconveh.c (ASSERT): Likewise.
30817         * tests/test-striconveha.c (ASSERT): Likewise.
30818         * tests/test-strsignal.c (ASSERT): Likewise.
30819         * tests/test-strstr.c (ASSERT): Likewise.
30820         * tests/test-strtod.c (ASSERT): Likewise.
30821         * tests/test-trunc1.c (ASSERT): Likewise.
30822         * tests/test-trunc2.c (ASSERT): Likewise.
30823         * tests/test-truncf1.c (ASSERT): Likewise.
30824         * tests/test-truncf2.c (ASSERT): Likewise.
30825         * tests/test-truncl.c (ASSERT): Likewise.
30826         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30827         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30828         * tests/test-vasnprintf.c (ASSERT): Likewise.
30829         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30830         * tests/test-vasprintf.c (ASSERT): Likewise.
30831         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30832         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30833         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30834         * tests/test-vsnprintf.c (ASSERT): Likewise.
30835         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30836         * tests/test-wcwidth.c (ASSERT): Likewise.
30837         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30838         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30839         * tests/test-xvasprintf.c (ASSERT): Likewise.
30840         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30841         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30842         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30843         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30844         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30845         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30846         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30847         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30848         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30849         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30850         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30851         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30852         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30853         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30854         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30855         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30856         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30857         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30858         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30859         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30860         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30861         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30862         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30863         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30864         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30865         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30866         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30867         * tests/unictype/test-combining.c (ASSERT): Likewise.
30868         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30869         * tests/unictype/test-digit.c (ASSERT): Likewise.
30870         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30871         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30872         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30873         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30874         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30875         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30876         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30877         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30878         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30879         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30880         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30881         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30882         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30883         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30884         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30885         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30886         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30887         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30888         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30889         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30890         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30891         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30892         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30893         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30894         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30895         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30896         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30897         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30898         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30899         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30900         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30901         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30902         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30903         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30904         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30905         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30906         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30907         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30908         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30909         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30910         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30911         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30912         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30913         Reported by Eric Blake.
30914
30915 2008-04-11  Bruno Haible  <bruno@clisp.org>
30916
30917         * lib/wchar.in.h: Tweak comment.
30918
30919 2008-04-11  Bruno Haible  <bruno@clisp.org>
30920
30921         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30922         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30923         gl_COMMON.
30924         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30925
30926 2008-04-11  Bruno Haible  <bruno@clisp.org>
30927
30928         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30929
30930 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30931
30932         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30933         of attempting to use non-existing /dev/*random.  Based on patch
30934         from Adam Strzelecki <ono@java.pl> in
30935         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30936
30937 2008-04-08  Bruno Haible  <bruno@clisp.org>
30938
30939         Add tentative support for emx+gcc.
30940         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30941         * lib/fpurge.c (fpurge): Likewise.
30942         * lib/freadable.c (freadable): Likewise.
30943         * lib/freadahead.c (freadahead): Likewise.
30944         * lib/freading.c (freading): Likewise.
30945         * lib/freadptr.c (freadptr): Likewise.
30946         * lib/freadseek.c (freadptrinc): Likewise.
30947         * lib/fseeko.c (rpl_fseeko): Likewise.
30948         * lib/fseterr.c (fseterr): Likewise.
30949         * lib/fwritable.c (fwritable): Likewise.
30950         * lib/fwriting.c (fwriting): Likewise.
30951         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30952
30953 2008-04-09  Eric Blake  <ebb9@byu.net>
30954
30955         Avoid some autoconf warnings.
30956         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30957         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30958         * m4/afs.m4 (gl_AFS): Likewise.
30959         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30960         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30962         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30963         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30964         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30965         (AC_CHECK_DECLS_ONCE): Likewise.
30966         Rename file...
30967         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30968         gnulib-tool requires autoconf 2.59 or better.
30969         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30970
30971 2008-04-08  Eric Blake  <ebb9@byu.net>
30972
30973         Use 'git describe --match' if present (added in git 1.5.5).
30974         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30975         if possible.
30976
30977 2008-04-08  Bruno Haible  <bruno@clisp.org>
30978
30979         Add tentative support for OpenServer.
30980         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30981         _ptr, _cnt.
30982         * lib/fpurge.c (fpurge): Likewise.
30983         * lib/freadable.c (freadable): Likewise.
30984         * lib/freadahead.c (freadahead): Likewise.
30985         * lib/freading.c (freading): Likewise.
30986         * lib/freadptr.c (freadptr): Likewise.
30987         * lib/freadseek.c (freadptrinc): Likewise.
30988         * lib/fseeko.c (rpl_fseeko): Likewise.
30989         * lib/fseterr.c (fseterr): Likewise.
30990         * lib/fwritable.c (fwritable): Likewise.
30991         * lib/fwriting.c (fwriting): Likewise.
30992         Reported by Roger Cornelius <rac@tenzing.org> and
30993         Brian K. White <brian@aljex.com>.
30994
30995 2008-04-06  Jim Meyering  <meyering@redhat.com>
30996
30997         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30998
30999 2008-04-06  Bruno Haible  <bruno@clisp.org>
31000
31001         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31002         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31003         * tests/test-printf-posix.sh: Likewise.
31004         * tests/test-vfprintf-posix.sh: Likewise.
31005         * tests/test-vprintf-posix.sh: Likewise.
31006         * tests/test-xprintf-posix.sh: Likewise.
31007
31008 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31009
31010         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31011         hide error from 'ls', needed on OS/2.
31012         Report by Elbert Pol <elbert.pol@gmail.com>.
31013
31014 2008-04-04  Eric Blake  <ebb9@byu.net>
31015
31016         Make test-fseeko.c failures meaningful.
31017         * tests/test-fseeko.c: Print line number on failure.
31018         * tests/test-fseek.c: Likewise.
31019         Reported by Nelson H. F. Beebe.
31020
31021         Improve strtod bug detection check.
31022         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31023         required for Solaris 10.
31024         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31025
31026 2008-04-04  Bruno Haible  <bruno@clisp.org>
31027
31028         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31029         by m4/setenv.m4.
31030
31031 2008-04-03  Eric Blake  <ebb9@byu.net>
31032
31033         Ensure sane .version contents.
31034         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31035         version string.
31036         * build-aux/git-version-gen: Improve documentation.
31037
31038         Make GNU make output nicer.
31039         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31040         MAKECMDGOALS to enforce message for all command line targets.  Set
31041         srcdir for use in maint.mk.
31042
31043         Another maintainer tweak.
31044         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31045         a target that regenerates version.
31046
31047 2008-04-03  Jim Meyering  <meyering@redhat.com>
31048
31049         vc-list-files: don't cause coreutils "make po-check" failure
31050         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31051
31052 2008-04-03  Eric Blake  <ebb9@byu.net>
31053
31054         Allow VPATH usage of vc-list-files.
31055         * build-aux/vc-list-files (scriptversion): Add timestamp.
31056         (options): Add --help, --version, -C.
31057         (CVS): Support installed cvsu.
31058
31059 2008-04-02  Bruno Haible  <bruno@clisp.org>
31060
31061         Avoid some "statement with no effect" warnings from gcc.
31062         * tests/test-wctype.c (main): Explicitly ignore unused values.
31063         Reported by Jim Meyering.
31064
31065 2008-04-02  Jim Meyering  <meyering@redhat.com>
31066
31067         Avoid some warnings from "gcc -Wshadow".
31068         * tests/test-frexp.c (exp): Define to a different identifier.
31069         * tests/test-frexpl.c (exp): Likewise.
31070
31071 2008-04-03  Jim Meyering  <meyering@redhat.com>
31072
31073         bootstrap: remove dangling *.[ch] symlinks from lib
31074         * build-aux/bootstrap [dangling symlink removal]: Move find's
31075         -depth option to precede all others, to avoid a warning.
31076         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31077
31078 2008-04-02  Bruno Haible  <bruno@clisp.org>
31079
31080         Avoid some warnings from "gcc -Wshadow".
31081         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31082         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31083         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31084         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31085         Reported by Jim Meyering.
31086
31087 2008-04-01  Bruno Haible  <bruno@clisp.org>
31088
31089         Fix test to work on IRIX 6.5 with cc.
31090         * tests/test-math.c (numeric_equal): New function.
31091         (main): Use it.
31092
31093 2008-04-01  Bruno Haible  <bruno@clisp.org>
31094
31095         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31096
31097 2008-04-01  Bruno Haible  <bruno@clisp.org>
31098
31099         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31100         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31101         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31102         (Depends-on): Remove math.
31103
31104         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31105         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31106         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31107         (Depends-on): Remove math.
31108
31109         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31110         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31111         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31112         (Depends-on): Remove math.
31113         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31114         (Depends-on): Remove math.
31115
31116         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31117         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31118         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31119         (Depends-on): Remove math.
31120         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31121         (Depends-on): Remove math.
31122
31123         * tests/test-round1.c: Include nan.h.
31124         (main): Use NaNd instead of NAN.
31125         * modules/round-tests (Files): Add tests/nan.h.
31126
31127         * tests/test-trunc1.c: Include nan.h.
31128         (main): Use NaNd instead of NAN.
31129         * modules/trunc-tests (Files): Add tests/nan.h.
31130
31131         * tests/test-roundf1.c: Include nan.h.
31132         (main): Use NaNf instead of NAN.
31133         * modules/roundf-tests (Files): Add tests/nan.h.
31134
31135         * tests/test-truncf1.c: Include nan.h.
31136         (main): Use NaNf instead of NAN.
31137         * modules/truncf-tests (Files): Add tests/nan.h.
31138
31139         * tests/test-ceilf1.c: Include nan.h.
31140         (main): Use NaNf instead of NAN.
31141         * modules/ceilf-tests (Files): Add tests/nan.h.
31142
31143         * tests/test-floorf1.c: Include nan.h.
31144         (main): Use NaNf instead of NAN.
31145         * modules/floorf-tests (Files): Add tests/nan.h.
31146
31147         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31148         (main): Use NaNf instead of NAN.
31149         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31150
31151         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31152         (main): Use NaNd instead of NAN.
31153         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31154
31155         * tests/test-frexp.c: Include nan.h.
31156         (main): Use NaNd instead of NAN.
31157         * modules/frexp-tests (Files): Add tests/nan.h.
31158
31159         * lib/isnan.c: Don't include <math.h>.
31160         (FUNC): Don't use NAN macro.
31161         * modules/isnand-nolibm (Depends-on): Remove math.
31162         * modules/isnanf-nolibm (Depends-on): Remove math.
31163         * modules/isnanl (Depends-on): Remove math.
31164         * modules/isnanl-nolibm (Depends-on): Remove math.
31165
31166         * tests/nan.h: New file.
31167
31168 2008-04-01  Eric Blake  <ebb9@byu.net>
31169
31170         Fix typos.
31171         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31172         values to be the right type.
31173
31174         For now, cater to gnulib strtod inaccuracies.
31175         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31176         fractional results.  While not as nice from a QoI perspective, it
31177         is a quicker patch than correctly implementing decimal to binary
31178         rounding.
31179
31180 2008-03-31  Eric Blake  <ebb9@byu.net>
31181
31182         Guarantee a definition of NAN.
31183         * lib/math.in.h (NAN): Define if missing.
31184         * tests/test-math.c (main): Test it.
31185         * doc/posix-headers/math.texi (math.h): Document this.
31186         * lib/isnan.c (rpl_isnand): Use it.
31187         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31188         * tests/test-floorf1.c (NaN): Likewise.
31189         * tests/test-frexp.c (NaN): Likewise.
31190         * tests/test-isnand.c (NaN): Likewise.
31191         * tests/test-isnanf.c (NaN): Likewise.
31192         * tests/test-round1.c (NaN): Likewise.
31193         * tests/test-roundf1.c (NaN): Likewise.
31194         * tests/test-snprintf-posix.h (NaN): Likewise.
31195         * tests/test-sprintf-posix.h (NaN): Likewise.
31196         * tests/test-trunc1.c (NaN): Likewise.
31197         * tests/test-truncf1.c (NaN): Likewise.
31198         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31199         * tests/test-vasprintf-posix.c (NaN): Likewise.
31200         * modules/isnand-nolibm (Depends-on): Add math.
31201         * modules/isnanf-nolibm (Depends-on): Likewise.
31202         * modules/isnanl (Depends-on): Likewise.
31203         * modules/isnanl-nolibm (Depends-on): Likewise.
31204         * modules/snprintf-posix-tests (Depends-on): Likewise.
31205         * modules/sprintf-posix-tests (Depends-on): Likewise.
31206         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31207         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31208         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31209         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31210
31211 2008-03-31  Bruno Haible  <bruno@clisp.org>
31212
31213         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31214         * doc/posix-functions/strtod.texi: Likewise.
31215
31216 2008-03-31  Bruno Haible  <bruno@clisp.org>
31217
31218         * tests/test-strtod.c (main): Don't use C99 syntax.
31219
31220 2008-03-31  Bruno Haible  <bruno@clisp.org>
31221
31222         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31223         Reported by Eric Blake.
31224
31225 2008-03-31  Jim Meyering  <meyering@redhat.com>
31226
31227         Don't compare actual signbit return values.
31228         * tests/test-strtod.c (main): Rather, compare only their
31229         zero/non-zero nature.
31230
31231 2008-03-31  Eric Blake  <ebb9@byu.net>
31232
31233         More strtod documentation.
31234         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31235         failures as distinct bugs.
31236
31237 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31238
31239         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31240         Problem reported by Erik Benada in
31241         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31242
31243 2008-03-30  Bruno Haible  <bruno@clisp.org>
31244
31245         * tests/test-strtod.c: Add comments about which assertion fails on which
31246         platform.
31247         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31248
31249 2008-03-30  Eric Blake  <ebb9@byu.net>
31250
31251         Test signbit behavior on zeros.
31252         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31253         (test_signbitd, test_signbitl): Likewise.
31254
31255         More strtod touchups.
31256         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31257         sign of negative underflow, for now.  Use .5, not .1.
31258         * doc/posix-functions/strtod.texi (strtod): Mention these
31259         limitations.
31260         Reported by Jim Meyering.
31261
31262 2008-03-30  Bruno Haible  <bruno@clisp.org>
31263
31264         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31265         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31266
31267 2008-03-30  Bruno Haible  <bruno@clisp.org>
31268
31269         Avoid failure when attempting to return empty iconv results on some
31270         platforms.
31271         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31272         allocation, don't report ENOMEM when the resulting string is empty.
31273
31274 2008-03-30  Bruno Haible  <bruno@clisp.org>
31275
31276         Fix buffer overrun.
31277         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31278         Don't consider the width for tmp_length. Check count against tmp_length
31279         before doing the padding. Ensure enough allocation during padding.
31280
31281 2008-03-30  Eric Blake  <ebb9@byu.net>
31282
31283         strtod touchups.
31284         * lib/strtod.c (strtod): Avoid compiler warnings.
31285         Reported by Jim Meyering.
31286
31287 2008-03-30  Bruno Haible  <bruno@clisp.org>
31288
31289         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31290         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31291         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31292         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31293         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31294         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31295         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31296         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31297
31298         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31299         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31300         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31301         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31302         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31303         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31304         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31305         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31306
31307         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31308         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31309         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31310         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31311         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31312         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31313         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31314         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31315
31316         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31317         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31318
31319         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31320         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31321
31322         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31323         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31324
31325         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31327         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31328
31329         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31331         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31332
31333         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31335         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31336
31337         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31339         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31340
31341         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31342         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31344         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31345         (Depends-on): Add EOVERFLOW.
31346         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31347         (Depends-on): Add EOVERFLOW.
31348         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31349         (Depends-on): Add EOVERFLOW.
31350         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31351         (Depends-on): Add EOVERFLOW.
31352         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31353         (Depends-on): Add EOVERFLOW.
31354         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31355         (Depends-on): Add EOVERFLOW.
31356         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31357         (Depends-on): Add EOVERFLOW.
31358         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31359         (Depends-on): Add EOVERFLOW.
31360
31361         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31362         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31363         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31364
31365         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31367         * modules/snprintf (Depends-on): Add EOVERFLOW.
31368
31369         * lib/poll.c (EOVERFLOW): Remove fallback.
31370         * modules/poll (Depends-on): Add EOVERFLOW.
31371
31372         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31373         * modules/getugroups (Depends-on): Add EOVERFLOW.
31374
31375         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31376         * modules/getdelim (Depends-on): Add EOVERFLOW.
31377
31378         * lib/ftell.c (EOVERFLOW): Remove fallback.
31379         * modules/ftell (Depends-on): Add EOVERFLOW.
31380
31381         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31383         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31384
31385         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31386
31387         * modules/EOVERFLOW-tests: New file.
31388         * tests/test-EOVERFLOW.c: New file.
31389
31390         * modules/EOVERFLOW: New file.
31391         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31392
31393 2008-03-30  Bruno Haible  <bruno@clisp.org>
31394
31395         Fix bug introduced on 2007-06-10.
31396         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31397         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31398
31399 2008-03-30  Bruno Haible  <bruno@clisp.org>
31400
31401         Improve freadseek's efficiency after ungetc.
31402         * lib/freadseek.c: Include freadahead.h.
31403         (freadptrinc): New function, extracted from freadseek.
31404         (freadseek): Use it in a loop. Use freadahead to determine the number
31405         of loop iterations.
31406         * modules/freadseek (Depends-on): Add freadahead.
31407         (configure.ac): Require AC_C_INLINE.
31408
31409 2008-03-30  Bruno Haible  <bruno@clisp.org>
31410
31411         * lib/freadseek.c (freadseek): Don't ignore the return value of
31412         freadptr.
31413
31414 2008-03-29  Eric Blake  <ebb9@byu.net>
31415
31416         Add hex float support.
31417         * modules/strtod (Depends-on): Add c-ctype.
31418         (Link): Mention POW_LIB.
31419         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31420         whitespace between 'e' and exponent.
31421         * tests/test-strtod.c (main): Enable hex float tests.
31422         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31423         now provides.
31424
31425         Document various strtod bugs, with some fixes.
31426         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31427         "-0x", "inf", "nan", and hex constants.
31428         * doc/posix-functions/atof.texi (atof): Likewise.
31429         * modules/stdlib (Makefile.am): Support strtod.
31430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31431         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31432         detect additional strtod bugs.
31433         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31434         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31435         bool where appropriate.  Parse 'inf' and 'nan'.
31436         * tests/test-strtod.c: New file.
31437         * modules/strtod (Depends-on): Add stdbool, stdlib.
31438         (configure.ac): Turn on module indicator.
31439         * modules/strtod-tests: New module.
31440
31441 2008-03-29  Eric Blake  <ebb9@byu.net>
31442
31443         Fix ftell on mingw.
31444         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31445         * modules/ftell-tests (Depends-on): Add binary-io.
31446         * modules/ftello-tests (Depends-on): Likewise.
31447         * tests/test-ftell.c (main): Enhance test to cover behavior after
31448         ungetc.  Enforce binary mode.
31449         * tests/test-ftello.c (main): Likewise.
31450
31451         Pass test-freadseek on cygwin.
31452         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31453         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31454         ungetc buffer.
31455
31456         * tests/test-fflush2.c (main): Fix typo.
31457
31458 2008-03-29  Bruno Haible  <bruno@clisp.org>
31459
31460         * tests/test-fflush2.c (main): Temporarily disable the contents of
31461         this test.
31462         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31463         Reported by Eric Blake.
31464
31465 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31466
31467         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31468         (GC_SHA224_DIGEST_SIZE): Add.
31469
31470         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31471         (gc_hash_digest_length): Likewise.
31472         (gc_hash_buffer): Likewise.
31473
31474 2008-03-25  Bruno Haible  <bruno@clisp.org>
31475
31476         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31477         detail which gettext release to use.
31478         Reported by Simon Josefsson.
31479
31480 2008-03-26  Jim Meyering  <meyering@redhat.com>
31481
31482         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31483         * modules/gnumakefile (clean-GNUmakefile): Also, use
31484         test ... && ... || : syntax rather than if-then ... fi.
31485
31486         gnumakefile: Don't double-quote-expand $(VPATH) value.
31487         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31488
31489 2008-03-24  Eric Blake  <ebb9@byu.net>
31490
31491         Alter GNUmakefile to install into top directory.
31492         * modules/maintainer-makefile: Split, and add dependency...
31493         * modules/gnumakefile: to this new module.
31494         * build-aux/GNUmakefile: Move...
31495         * top/GNUmakefile: ...here.
31496         * build-aux/maint.mk: Move...
31497         * top/maint.mk: ...here.
31498         * MODULES.html.sh (Support for maintaining...): Document new
31499         module.
31500
31501 2008-03-23  Bruno Haible  <bruno@clisp.org>
31502
31503         * gnulib-tool: New options --vc-files, --no-vc-files.
31504         (func_usage): Document them.
31505         (vc_files): New variable.
31506         (func_import): Consider vc_files.
31507         (func_create_testdir): Set vc_files to empty.
31508         Suggested by Jim Meyering and Karl Berry.
31509
31510 2008-03-23  Bruno Haible  <bruno@clisp.org>
31511
31512         Fix regex compilation error on HP-UX 11.
31513         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31514         * modules/regex (Files): Add m4/mbstate_t.m4.
31515         Reported by Ton Voon <ton.voon@altinity.com>.
31516
31517 2008-03-23  Bruno Haible  <bruno@clisp.org>
31518
31519         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31520
31521 2008-03-23  Eric Blake  <ebb9@byu.net>
31522             Bruno Haible  <bruno@clisp.org>
31523
31524         Install files from top/ in the destination directory.
31525         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31526         augmentation also for the files from top/.
31527         (func_import, func_create_testdir): Rewrite file names:
31528         top/filename -> filename.
31529
31530 2008-03-23  Bruno Haible  <bruno@clisp.org>
31531
31532         Tweak "gnulib --version" output.
31533         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31534
31535 2008-03-23  Bruno Haible  <bruno@clisp.org>
31536
31537         Tweak "gnulib --version" output.
31538         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31539         rather than contents of ChangeLog, when possible.
31540
31541 2008-03-21  Eric Blake  <ebb9@byu.net>
31542
31543         More --version tweaks.
31544         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31545         date of last ChangeLog entry.
31546
31547 2008-03-21  Jim Meyering  <meyering@redhat.com>
31548
31549         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31550
31551 2008-03-20  Eric Blake  <ebb9@byu.net>
31552
31553         VPATH fix.
31554         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31555
31556 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31557
31558         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31559         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31560
31561 2008-03-20  Eric Blake  <ebb9@byu.net>
31562
31563         Sync GNUmakefile with coreutils.
31564         * build-aux/GNUmakefile (have-Makefile): Rename...
31565         (_have-Makefile): ...to this, for namespace consideration.
31566         (GNUmakefile.cfg): Include, if present.
31567         (_autoreconf): Define a default.
31568         (_is-dist-target): New rule for rebuilds to pick up intra-release
31569         version.
31570         (maint-cfg.mk): Rename...
31571         (cfg.mk): ...to this.
31572
31573 2008-03-18  Jim Meyering  <meyering@redhat.com>
31574
31575         New script and module: mktempd
31576         * MODULES.html.sh (maint+release support): Add mktempd.
31577         * build-aux/mktempd: New file.
31578         * modules/mktempd: New file.
31579
31580 2008-03-15  Jim Meyering  <meyering@redhat.com>
31581
31582         Undo last change.
31583         * lib/sha1.c, lib/md5.c: 63 != ~63.
31584         Reported by Andreas Schwab.
31585
31586         sha1.c, md5.c: Hoist a redundant expression.
31587         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31588         "ctx->buflen" only once, before calling *_process_block.
31589         * lib/md5.c (md5_process_bytes): Likewise.
31590
31591 2008-03-14  Eric Blake  <ebb9@byu.net>
31592
31593         Bump copyright year in files generated by gnulib-tool.
31594         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31595         gnulib-tool, rather than hard-coding it.
31596
31597         Fix 'gnulib-tool --version' output to work with git.
31598         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31599         (startup): ...here.
31600         (func_version): Use it to invoke git-version-gen, rather than
31601         relying on CVS keyword expansion.  Modernize wording.
31602         (cvsdatestamp, last_checkin_date, version): Kill unused
31603         variables.
31604
31605 2008-03-12  Jim Meyering  <meyering@redhat.com>
31606
31607         Recognize optional cast of the argument to free.
31608         * build-aux/useless-if-before-free: Update regexps.
31609
31610         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31611
31612 2008-03-11  Bruno Haible  <bruno@clisp.org>
31613
31614         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31615         by a single package.
31616         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31617         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31618         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31619         Reported by Sam Steingold <sds@gnu.org>.
31620
31621 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31622
31623         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31624         repositories.
31625
31626 2008-03-11  Bruno Haible  <bruno@clisp.org>
31627
31628         Avoid conflicts between local macro definitions.
31629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31630         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31631
31632 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31633             Bruno Haible  <bruno@clisp.org>
31634
31635         Make va_copy work with some version of xlc on AIX 5.1.
31636         * lib/stdarg.in.h: New file.
31637         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31638         On AIX, use a <stdarg.h> file substitute.
31639         * modules/stdarg (Files): Add lib/stdarg.in.h.
31640         (Depends-on): Add include_next.
31641         (Makefile.am): Build a stdarg.h substitute if requested.
31642         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31643
31644 2008-03-10  Bruno Haible  <bruno@clisp.org>
31645
31646         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31648         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31649
31650 2008-03-10  Bruno Haible  <bruno@clisp.org>
31651
31652         * modules/stdlib (Depends-on): Add include_next, remove
31653         absolute-header.
31654
31655 2008-03-09  Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/freadahead.h (freadahead): Document more precisely.
31658         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31659         the sum of both buffer sizes.
31660         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31661         * NEWS: Document the change.
31662
31663 2008-03-09  Bruno Haible  <bruno@clisp.org>
31664
31665         Extend freadptr to return also the buffer size.
31666         * lib/freadptr.h (freadptr): Add sizep argument.
31667         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31668         (freadptr): Add sizep argument. Determine buffer size like freadahead
31669         does.
31670         * tests/test-freadptr.c: Don't include freadahead.h.
31671         (main): Adapt for new calling convention of freadptr.
31672         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31673         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31674         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31675         tests/test-freadptr2.sh.
31676         (Depends): Remove freadahead.
31677         (TESTS): Add test-freadptr2.sh.
31678         (check_PROGRAMS): Add test-freadptr2.
31679
31680 2008-03-09  Bruno Haible  <bruno@clisp.org>
31681
31682         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31683         Report and solution by Simon Josefsson.
31684
31685 2008-03-06  Bruno Haible  <bruno@clisp.org>
31686
31687         Make fflush after ungetc work on BSD platforms.
31688         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31689         * tests/test-fflush2.c: New file.
31690         * tests/test-fflush2.sh: New file.
31691         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31692         tests/test-fflush2.c.
31693         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31694         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31695
31696 2008-03-06  Eric Blake  <ebb9@byu.net>
31697
31698         Likewise for ftello.
31699         * modules/ftello (Dependencies): Add extensions.
31700         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31701
31702 2008-03-06  Bruno Haible  <bruno@clisp.org>
31703
31704         * modules/fseeko (Dependencies): Add extensions.
31705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31706         Needed on glibc systems.
31707
31708 2008-03-06  Bruno Haible  <bruno@clisp.org>
31709
31710         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31711         email address.
31712         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31713
31714 2008-03-06  Bruno Haible  <bruno@clisp.org>
31715
31716         * users.txt: Add libgnupdf.
31717
31718 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31719
31720         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31721         (Header File Substitutes, Function Substitutes,
31722         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31723         (Build robot for gnulib): Fix typo.
31724
31725 2008-03-06  Bruno Haible  <bruno@clisp.org>
31726
31727         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31728         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31729
31730 2008-03-06  Bruno Haible  <bruno@clisp.org>
31731
31732         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31733         * doc/gnulib.texi: Include it.
31734
31735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31736
31737         * modules/func (License): Change license to unlimited; there was
31738         no LGPL parts in the module anyway.
31739
31740 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31741
31742         * modules/__func__: Renamed to modules/func.
31743         * modules/__func__-tests: Renamed to modules/func-tests.
31744         * tests/test-__func__.c: Renamed to tests/test-func.c.
31745         * m4/__func__.m4: Renamed to m4/func.m4.
31746         * doc/gnulib.texi (__func__): Section renamed to func.
31747         Suggested by Eric Blake <ebb9@byu.net>.
31748
31749 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31750
31751         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31752         about __func__.  Make example self-contained.  Suggested by Eric
31753         Blake <ebb9@byu.net>.
31754
31755         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31756         Suggested by Eric Blake <ebb9@byu.net>.
31757
31758 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31759
31760         * modules/__func__: New file.
31761         * modules/__func__-tests: New file.
31762         * tests/test-__func__.c: New file.
31763         * m4/__func__.m4: New file.
31764         * doc/gnulib.texi (__func__): Document __func__ module.
31765
31766 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31767
31768         * modules/byteswap (License): Re-license as LGPLv2+.
31769
31770 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31771
31772         * doc/Makefile: Add pdf target.
31773
31774 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31775
31776         * modules/inline (License): Use 'unlimited', since there are only
31777         *.m4 files in this module.
31778
31779 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31780             Bruno Haible  <bruno@clisp.org>
31781
31782         Add support for HP C 7.1 on OpenVMS 8.3.
31783         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31784
31785 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31786
31787         Update VMS specifics.
31788         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31789
31790 2008-03-02  Jim Meyering  <meyering@redhat.com>
31791
31792         Remove the last dependency on the "free" module.
31793         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31794         Reported by Bob Proulx.
31795
31796         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31797
31798         Remove useless "if" tests before free.  Deprecate "free" module.
31799         * doc/posix-functions/free.texi: Mention that this
31800         module is no longer useful.
31801         * modules/free (Notice): Say this module is obsolete.
31802         * modules/readutmp (Depends-on): Remove free.
31803         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31804         * lib/putenv.c (putenv): Likewise.
31805         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31806         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31807         * tests/test-c-strcasestr.c (main): Likewise.
31808         * tests/test-c-strstr.c (main): Likewise.
31809         * tests/test-mbscasestr1.c (main): Likewise.
31810         * tests/test-mbscasestr2.c (main): Likewise.
31811         * tests/test-mbsstr1.c (main): Likewise.
31812         * tests/test-mbsstr2.c (main): Likewise.
31813         * tests/test-memmem.c (main): Likewise.
31814         * tests/test-strcasestr.c (main): Likewise.
31815         * tests/test-striconv.c (main): Likewise.
31816         * tests/test-striconveh.c (main): Likewise.
31817         * tests/test-striconveha.c (main): Likewise.
31818         * tests/test-strstr.c (main): Likewise.
31819
31820         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31821
31822         bootstrap: sync from coreutils again
31823         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31824
31825 2008-03-01  Jim Meyering  <meyering@redhat.com>
31826
31827         bootstrap: sync from coreutils
31828         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31829         also when the target doesn't exist.
31830
31831 2008-03-01  Eric Blake  <ebb9@byu.net>
31832
31833         Fix bugs in last patch.
31834         * lib/memchr2.c (memchr2): Fix typo.
31835         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31836         extension.
31837         Reported by Bruce Korb.
31838
31839         New module 'memchr2'.
31840         * modules/memchr2: New file.
31841         * modules/memchr2-tests: Likewise.
31842         * lib/memchr2.h: Likewise.
31843         * lib/memchr2.c: Likewise, based on memchr.c.
31844         * tests/test-memchr2.c: New test.
31845         * MODULES.html.sh (String handling): Add memchr2.
31846
31847 2008-02-29  Bruno Haible  <bruno@clisp.org>
31848
31849         * modules/freadseek-tests: New file.
31850         * tests/test-freadseek.sh: New file.
31851         * tests/test-freadseek.c: New file.
31852
31853         New module 'freadseek'.
31854         * modules/freadseek: New file.
31855         * lib/freadseek.h: New file.
31856         * lib/freadseek.c: New file.
31857         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31858
31859 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31860
31861         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31862         wydawca.
31863
31864         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31865         program_invocation_name and program_invocation_short_name are
31866         present.
31867
31868 2008-02-28  Bruno Haible  <bruno@clisp.org>
31869
31870         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31871         * tests/test-freadptr.sh: Also test non-seekable stdin.
31872
31873 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31874
31875         * build-aux/bootstrap (source_base, m4_base)
31876         (doc_base, tests_base): New variables.
31877         (gnulib_tool_options): Do not hardcode base directories, use
31878         the above variables instead.
31879
31880 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31881
31882         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31883
31884 2008-02-28  Bruno Haible  <bruno@clisp.org>
31885
31886         * modules/freadptr-tests: New file.
31887         * tests/test-freadptr.sh: New file.
31888         * tests/test-freadptr.c: New file.
31889
31890         New module 'freadptr'.
31891         * modules/freadptr: New file.
31892         * lib/freadptr.h: New file.
31893         * lib/freadptr.c: New file.
31894         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31895
31896 2008-02-26  Karl Berry  <karl@freefriends.org>
31897
31898         Sync from Libtool:
31899         * libltdl/argz.c (argz_add, argz_count): New functions.
31900         * libltdl/argz.in.h: Declare them.
31901         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31902
31903 2008-02-22  Bruno Haible  <bruno@clisp.org>
31904
31905         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31906         is a pointer type.  Needed for HP-UX 10.
31907         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31908         * doc/posix-functions/gmtime_r.texi: Likewise.
31909         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31910
31911 2008-02-24  Bruno Haible  <bruno@clisp.org>
31912
31913         * modules/environ-tests: New file.
31914         * tests/test-environ.c: New file.
31915
31916         New module 'environ'.
31917         * modules/environ: New file.
31918         * lib/unistd.in.h (environ): New declaration.
31919         * m4/environ.m4: New file.
31920         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31921         after use.
31922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31923         HAVE_DECL_ENVIRON.
31924         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31925         HAVE_DECL_ENVIRON.
31926         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31927         wrong claim that 'environ' is missing on some systems.
31928         * modules/execute (Depends-on): Add environ.
31929         * lib/execute.c (environ): Remove fallback declaration.
31930         * modules/pipe (Depends-on): Add environ.
31931         * lib/pipe.c (environ): Remove fallback declaration.
31932         * modules/setenv (Depends-on): Add environ.
31933         * lib/setenv.c (environ): Remove fallback declaration.
31934         * modules/unsetenv (Depends-on): Add environ.
31935         * lib/unsetenv.c (environ): Remove fallback declaration.
31936         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31937         m4/environ.m4.
31938         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31939         (gl_PREREQ_UNSETENV): Likewise.
31940
31941 2008-02-24  Bruno Haible  <bruno@clisp.org>
31942
31943         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31944
31945 2008-02-20  Bob Proulx  <bob@proulx.com>
31946
31947         Enable use of older two part flavor 'git describe'.
31948         * build-aux/git-version-gen: If using the older two part flavor of
31949         git version then recreate the third part now present in the
31950         newer three part flavor of git describe.
31951
31952 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31953
31954         * lib/fts.c (fts_build): Typo correction to comment.
31955
31956 2008-02-17  Bruno Haible  <bruno@clisp.org>
31957
31958         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31959         generating no-op conflicts.
31960
31961 2008-02-17  Bruno Haible  <bruno@clisp.org>
31962
31963         Speed up by 10%.
31964         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31965         result_entries, rather than an index-based loop.
31966
31967 2008-02-17  Bruno Haible  <bruno@clisp.org>
31968
31969         Speed up by 25%.
31970         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31971         'hashcode_cached'.
31972         (entry_create): New function.
31973         (entry_hashcode): Use the cached hashcode if possible.
31974         (read_changelog_file, try_split_merged_entry): Use entry_create.
31975
31976 2008-02-17  Bruno Haible  <bruno@clisp.org>
31977
31978         Speed up from O(n^2) to O(n) for long ChangeLog files.
31979         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31980         (read_changelog_file): Change implementation of entries_reversed list
31981         to rbtreehash.
31982         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31983
31984 2008-02-17  Bruno Haible  <bruno@clisp.org>
31985
31986         New option --split-merged-entry.
31987         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31988         (find_paragraph_end, try_split_merged_entry): New functions.
31989         (long_options): Add option --split-merged-entry.
31990         (usage): Document option --split-merged-entry.
31991         (main): Implement option --split-merged-entry.
31992         Reported by Eric Blake.
31993
31994 2008-02-17  Bruno Haible  <bruno@clisp.org>
31995
31996         * lib/git-merge-changelog.c: Include c-strstr.h.
31997         (main): Support the "git pull --rebase" situation.
31998         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31999         Reported by Eric Blake.
32000
32001 2008-02-16  Eric Blake  <ebb9@byu.net>
32002
32003         Avoid doubling \ in common case of "c-maybe" quoting style.
32004         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32005         eliding outer quotes.
32006         * lib/quotearg.h: Document this.
32007         * tests/test-quotearg.c (result_strings, inputs, results_g)
32008         (flag_results, locale_results): Test it by adding a new string to
32009         each test group.
32010         (compare_strings): Test new string.
32011
32012 2008-02-13  Eric Blake  <ebb9@byu.net>
32013
32014         Avoid trigraph quoting in default output.
32015         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32016         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32017         unless explicitly requested.
32018         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32019
32020 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32021
32022         Don't rely on signed integer overflowing to negative value.
32023         * lib/getugroups.c (getugroups): Include <limits.h>.
32024         Instead, compare against INT_MAX, and increment only if the test passes.
32025
32026 2008-02-13  Jim Meyering  <meyering@redhat.com>
32027         and Eric Blake  <ebb9@byu.net>
32028
32029         Avoid shadowing warning and compile errors on Linux.
32030         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32031         forwarding macros on Linux.
32032         (dcgettext): Define a stub, for Linux.
32033         (results_g, main): Avoid warnings.
32034
32035 2008-02-12  Eric Blake  <ebb9@byu.net>
32036
32037         Silence warning in last patch.
32038         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32039
32040         Quotearg part 4: add tests, fix c-maybe colon quoting.
32041         * lib/quotearg.h: Improve documentation.
32042         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32043         escapes when adding outer quotes.  When quoting trigraphs, use
32044         valid C notation.  When quoting NUL, omit extra characters if next
32045         character is not digit.  Alter prototype.
32046         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32047         callers.
32048         * modules/quotearg-tests: New module.
32049         * tests/test-quotearg.c: New test.
32050
32051 2008-02-07  Eric Blake  <ebb9@byu.net>
32052
32053         Quotearg part 3: add flag to control outer quote elision.
32054         * lib/quotearg.h (c_maybe_quoting_style): New style.
32055         (enum quoting_flags): Better documentation of flags.
32056         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32057         c-maybe style.
32058         (quotearg_buffer_restyled): Handle new flag to elide outer
32059         quotes.
32060
32061         Quotearg part 2: add flag that can control NUL elision.
32062         * lib/quotearg.h (set_quoting_flags): New prototype.
32063         * lib/quotearg.c (struct quoting_options): Add flag field.
32064         (set_quoting_flags): New function.
32065         (quotearg_buffer_restyled): Add flags parameter.
32066         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32067         (quotearg_n_options): Set the flag, since length cannot be
32068         returned.
32069         (quoting_options_from_style): Default flags correctly.
32070
32071         Quotearg part 1: more wrappers, restore quotearg_char state.
32072         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32073         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32074         (quotearg_colon_mem): New wrappers.
32075         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32076         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32077         functions.
32078         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32079         (quotearg_colon_mem): New functions.
32080
32081 2008-02-11  Bruno Haible  <bruno@clisp.org>
32082
32083         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32084         library in the current directory: it does not work with parallel make.
32085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32086
32087 2008-02-11  Bruno Haible  <bruno@clisp.org>
32088
32089         * .gitattributes: New file.
32090
32091 2008-02-11  Jim Meyering  <meyering@redhat.com>
32092
32093         useless-if-before-free: Fix reversed exit values.
32094         * build-aux/useless-if-before-free: Use correct values
32095         for EXIT_MATCH and EXIT_NO_MATCH.
32096
32097         * build-aux/useless-if-before-free: Close stdout carefully.
32098
32099 2008-02-10  Bruno Haible  <bruno@clisp.org>
32100
32101         New module 'git-merge-changelog'.
32102         * modules/git-merge-changelog: New file.
32103         * lib/git-merge-changelog.c: New file.
32104
32105 2008-02-10  Jim Meyering  <meyering@redhat.com>
32106
32107         useless-if-before-free: New option: --list (-l).
32108
32109         useless-if-before-free: Don't exit immediately upon open failure.
32110         * build-aux/useless-if-before-free: Exit 2 for errors.
32111         Upon failure to open a file, don't exit immediately.
32112         Rather, just warn and continue with any remaining files.
32113
32114 2008-02-10  Bruno Haible  <bruno@clisp.org>
32115
32116         New abstract list operation 'node_set_value'.
32117         * lib/gl_list.h (gl_list_node_set_value): New function.
32118         (struct gl_list_implementation): New field node_set_value.
32119         * lib/gl_list.c (gl_list_node_set_value): New function.
32120         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32121         (gl_array_list_implementation): Update.
32122         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32123         (gl_carray_list_implementation): Update.
32124         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32125         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32126         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32127         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32128         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32129         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32130         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32131         Update.
32132         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32133         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32134         (gl_sublist_list_implementation): Update.
32135
32136 2008-02-10  Bruno Haible  <bruno@clisp.org>
32137
32138         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32139         Needed when ELEMENT is #defined to 'some_type *'.
32140
32141 2008-02-10  Jim Meyering  <meyering@redhat.com>
32142
32143         New script and module: useless-if-before-free
32144         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32145         * build-aux/useless-if-before-free: New file.
32146         * modules/useless-if-before-free: New file.
32147
32148         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32149
32150         xstrtol_error: Fix typo.
32151         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32152         s/exit_failure/exit_status/.
32153
32154 2008-02-09  Jim Meyering  <meyering@redhat.com>
32155
32156         New script and module: gitlog-to-changelog
32157         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32158         * modules/gitlog-to-changelog: New file.
32159         * build-aux/gitlog-to-changelog: New file.
32160
32161 2008-02-08  Jim Meyering  <meyering@redhat.com>
32162
32163         Avoid two "parameter unused" warnings.
32164         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32165         Mark "st" as used.
32166
32167         Use "git COMMAND", not "git-COMMAND".
32168         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32169         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32170         * build-aux/git-version-gen: Use "git status", not "git-status".
32171
32172 2008-02-07  Bruno Haible  <bruno@clisp.org>
32173
32174         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32175         Avoids a crash on Windows Vista.
32176         Reported by Adam Strzelecki <ono@java.pl> via
32177         Simon Josefsson <simon@josefsson.org>.
32178
32179 2008-02-06  Bruno Haible  <bruno@clisp.org>
32180
32181         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32182         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32183         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32185         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32187         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32188         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32196         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32197         left-adjust flag.
32198         * tests/test-snprintf-posix.h (test_function): Likewise.
32199         * tests/test-sprintf-posix.h (test_function): Likewise.
32200         * tests/test-vasprintf-posix.c (test_function): Likewise.
32201         * doc/posix-functions/fprintf.texi: Update.
32202         * doc/posix-functions/printf.texi: Update.
32203         * doc/posix-functions/snprintf.texi: Update.
32204         * doc/posix-functions/sprintf.texi: Update.
32205         * doc/posix-functions/vfprintf.texi: Update.
32206         * doc/posix-functions/vprintf.texi: Update.
32207         * doc/posix-functions/vsnprintf.texi: Update.
32208         * doc/posix-functions/vsprintf.texi: Update.
32209         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32210
32211 2008-02-06  Bruno Haible  <bruno@clisp.org>
32212
32213         Fix bug introduced on 2008-01-26.
32214         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32215
32216 2008-02-06  Bruno Haible  <bruno@clisp.org>
32217
32218         Fix bug introduced on 2007-06-10.
32219         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32220         !NEED_PRINTF_FLAG_ZERO.
32221
32222 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32223
32224         getloadavg: use libperfstat on AIX5
32225         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32226
32227 2008-02-03  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/diffseq.h: Add comments about required #includes.
32230         Reported by Michael Biggs <gnulib@doubleplum.net>.
32231
32232 2008-02-01  Bruno Haible  <bruno@clisp.org>
32233
32234         * users.txt: Add gnuit.
32235
32236 2008-01-31  Bruno Haible  <bruno@clisp.org>
32237
32238         * lib/md4.c (set_uint32): Mark as inline.
32239         * lib/md5.c (set_uint32): Likewise.
32240         * lib/sha1.c (set_uint32): Likewise.
32241         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32242         * m4/md5.m4 (gl_MD5): Likewise.
32243         * m4/sha1.m4 (gl_SHA1): Likewise.
32244
32245 2008-01-31  Jim Meyering  <meyering@redhat.com>
32246
32247         Use "sizeof VAR", rather than a literal "4".
32248         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32249         * lib/md4.c (md4_read_ctx): Likewise.
32250         * lib/sha1.c (sha1_read_ctx): Likewise.
32251
32252 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32253
32254         * tests/test-sha1.c: New file, based on test-md5.c.
32255
32256         * modules/crypto/sha1-tests: New file.
32257
32258 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32259
32260         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32261
32262 2008-01-31  Jim Meyering  <meyering@redhat.com>
32263
32264         Prefer "sizeof v" over the equivalent "4".
32265         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32266         * lib/md5.c (set_uint32): Likewise.
32267         * lib/sha1.c (set_uint32): Likewise.
32268
32269 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32270
32271         * lib/sha1.c (set_uint32): Mark function as static.
32272
32273 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32274
32275         md2: clarify comments to say that alignment is not required.
32276         * lib/md2.h: Remove warning about alignment in comment.
32277         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32278         never been required.
32279
32280 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32281
32282         md4: adapt alignment constraint fix from sha1.
32283         * lib/md4.c (set_uint32): New function, from sha1.c
32284         (md4_read_ctx): Use it.
32285         (md4_finish_ctx): Doc fix.
32286         * lib/md4.h: Doc fix.
32287
32288 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32289
32290         md5: adapt alignment constraint fix from sha1.
32291         * lib/md5.c (set_uint32): New function, from sha1.c
32292         (md5_read_ctx): Use it.
32293         (md5_finish_ctx): Doc fix.
32294         * lib/md5.h: Doc fix.
32295
32296 2008-01-30  Peter Palfrader  <weasel@debian.org>
32297
32298         sha1: remove the result buffer alignment constraint
32299         * lib/sha1.c (set_uint32): New function.
32300         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32301         constraint.
32302         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32303         * lib/sha1.h: Likewise.
32304
32305 2008-01-30  Andreas Schwab  <schwab@suse.de>
32306             Bruno Haible  <bruno@clisp.org>
32307
32308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32309         correct definition of LDBL_MIN_EXP.
32310
32311 2008-01-30  Karl Berry  <karl@gnu.org>
32312
32313         * config/srclist-update: try to preserve x bit on updates.
32314         * config/srclistvars.sh: update for karl.
32315
32316 2008-01-29  Jim Meyering  <meyering@redhat.com>
32317
32318         vasnprintf.c: Avoid warning about unused label
32319         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32320         "overflow" label definition and associated code with the
32321         same cpp condition that guards the sole use of that label.
32322
32323 2008-01-26  Bruno Haible  <bruno@clisp.org>
32324
32325         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32326         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32327         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32328         * lib/isnanl-nolibm.h (isnanl): Likewise.
32329         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32330
32331 2008-01-26  Bruno Haible  <bruno@clisp.org>
32332
32333         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32334         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32335
32336 2008-01-26  Bruno Haible  <bruno@clisp.org>
32337
32338         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32339         GCC >= 4.0 built-in.
32340         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32341
32342 2008-01-26  Bruno Haible  <bruno@clisp.org>
32343
32344         Rename isnan, applicable to 'double' only, to isnand.
32345         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32346         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32347         (configure.ac): Update.
32348         (Include): Replace "isnan.h" with "isnand.h".
32349         * m4/isnand.m4: Renamed from m4/isnan.m4.
32350         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32351         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32352         instead of isnan.c.
32353         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32354         instead of HAVE_ISNAN_IN_LIBC.
32355         (isnand): Renamed from isnan.
32356         * lib/isnand.c: New file.
32357         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32358         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32359         (Makefile.am): Update.
32360         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32361         Include isnand.h instead of isnan.h.
32362         (main): Test isnand instead of isnan.
32363         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32364         isnan-nolibm.
32365         * modules/frexp (Depends-on): Likewise.
32366         * modules/frexp-tests (Depends-on): Likewise.
32367         * modules/frexp-nolibm (Depends-on): Likewise.
32368         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32369         * modules/isfinite (Depends-on): Likewise.
32370         * modules/round-tests (Depends-on): Likewise.
32371         * modules/signbit (Depends-on): Likewise.
32372         * modules/signbit-tests (Depends-on): Likewise.
32373         * modules/snprintf-posix (Depends-on): Likewise.
32374         * modules/sprintf-posix (Depends-on): Likewise.
32375         * modules/trunc-tests (Depends-on): Likewise.
32376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32383         * modules/vasnprintf-posix (Depends-on): Likewise.
32384         * modules/vasprintf-posix (Depends-on): Likewise.
32385         * modules/vfprintf-posix (Depends-on): Likewise.
32386         * modules/vsnprintf-posix (Depends-on): Likewise.
32387         * modules/vsprintf-posix (Depends-on): Likewise.
32388         * lib/frexp.c: Include isnand.h instead of isnan.h.
32389         (ISNAN): Set to isnand instead of isnan.
32390         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32391         (gl_isfinited): Use isnand instead of isnan.
32392         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32393         (gl_signbitd): Use isnand instead of isnan.
32394         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32395         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32396         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32397         (main): Use isnand instead of isnan.
32398         * tests/test-round1.c: Include isnand.h.
32399         (main): Use isnand instead of isnan.
32400         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32401         (ISNAN): Set to isnand instead of isnan.
32402         * tests/test-trunc1.c: Include isnand.h.
32403         (main): Use isnand instead of isnan.
32404         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32405         (equal): Use isnand instead of isnan.
32406         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32407         isnand-nolibm.
32408         * NEWS: Mention the change.
32409
32410 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32411             Bruno Haible  <bruno@clisp.org>
32412
32413         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32414         the GCC builtins for signbits are present and set
32415         REPLACE_SIGNBIT_USING_GCC if so.
32416         * lib/math.in.h (signbit): Define using GCC builtins if
32417         REPLACE_SIGNBIT_USING_GCC is set.
32418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32419         REPLACE_SIGNBIT_USING_GCC.
32420         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32421
32422 2008-01-25  Jim Meyering  <meyering@redhat.com>
32423
32424         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32425         * lib/poll.c: Include <config.h>, not "config.h".
32426         * tests/test-getaddrinfo.c: Likewise.
32427
32428 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32429
32430         * modules/sockets-tests: New file.
32431
32432 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32433
32434         * modules/sockets: New module, can be used to call WSA_Startup and
32435         WSA_Cleanup when needed.
32436
32437         * lib/sockets.h, lib/sockets.c: New files.
32438
32439         * m4/sockets.m4: New file.
32440
32441         * tests/test-sockets.c: New file.
32442
32443 2008-01-19  Bruno Haible  <bruno@clisp.org>
32444
32445         * doc/posix-headers: Renamed from doc/headers.
32446         * doc/posix-functions: Renamed from doc/functions.
32447         * doc/gnulib.texi: Update.
32448
32449 2008-01-19  Bruno Haible  <bruno@clisp.org>
32450
32451         * doc/glibc-functions/strcasestr.texi: Include contents of
32452         doc/functions/strcasestr.texi, fixing the list of platforms.
32453         * doc/functions/strcasestr.texi: Remove file.
32454
32455 2008-01-19  Bruno Haible  <bruno@clisp.org>
32456
32457         * doc/glibc-functions/memmem.texi: Include contents of
32458         doc/functions/memmem.texi.
32459         * doc/functions/memmem.texi: Remove file.
32460
32461 2008-01-18  Bruno Haible  <bruno@clisp.org>
32462
32463         * doc/glibc-functions/*.texi: New files.
32464         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32465         to use the new files.
32466
32467 2008-01-17  Bruno Haible  <bruno@clisp.org>
32468
32469         * tests/test-gethostname.c (main): Fix printf statement.
32470
32471 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32472
32473         * modules/gethostname-tests: New file.
32474
32475         * tests/test-gethostname.c: New file.
32476
32477 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32478
32479         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32480         used by the UNAME case.  Reported by Bruno Haible
32481         <bruno@clisp.org>.
32482
32483 2008-01-17  Eric Blake  <ebb9@byu.net>
32484
32485         Convert c-strcasestr to be more efficient.
32486         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32487         (Depends-on): Add c-strcase, remove malloca, strnlen.
32488         * tests/test-c-strcasestr.c (main): Enhance test.
32489         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32490
32491 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32492
32493         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32494         Use it in creating po/Makevars.
32495
32496 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32497
32498         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32499         Applications that requires it should initialize libgcrypt
32500         manually.
32501
32502 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32503
32504         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32505
32506 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32507
32508         Fix problem with getdate on mingw32 reported by Simon Josefsson
32509         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32510         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32511         tzname", when deciding whether to declare tzname.
32512         * lib/strftime.c (tzname): Likewise.
32513
32514 2008-01-15  Bruno Haible  <bruno@clisp.org>
32515
32516         Work around a MacOS X 10.5 bug in frexpl().
32517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32518         * doc/functions/frexpl.texi: Document the bug.
32519         Reported by Elias Pipping <pipping@gentoo.org>.
32520
32521 2008-01-14  Eric Blake  <ebb9@byu.net>
32522
32523         Touch up previous patch.
32524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32525         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32526
32527         Convert strcasestr module to use Two-Way algorithm.
32528         * modules/strcasestr-simple: New module, based on the old
32529         strcasestr, but with Two-Way rather than KMP.
32530         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32531         * lib/string.in.h (rpl_strcasestr): Declare.
32532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32533         performance.
32534         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32535         * modules/string (Makefile.am): Support strcasestr.
32536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32537         * modules/strcasestr-tests (Depends-on): Check for alarm.
32538         * tests/test-strcasestr.c: Augment test.
32539         * lib/str-two-way.h: Clean up stray macro.
32540         * NEWS: Document new module.
32541         * MODULES.html.sh (string handling): Likewise.
32542         * doc/functions/strcasestr.texi: New file.
32543         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32544         here, since it is not a POSIX function.
32545
32546 2008-01-14  Colin Watson  <cjwatson@debian.org>
32547             Bruno Haible  <bruno@clisp.org>
32548
32549         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32550         works fine; if not, set REPLACE_STRSIGNAL.
32551         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32553         REPLACE_STRSIGNAL.
32554         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32555         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32556         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32557
32558 2008-01-14  Bruno Haible  <bruno@clisp.org>
32559
32560         * modules/strsignal (Include): Change to <string.h>.
32561
32562 2008-01-14  Colin Watson  <cjwatson@debian.org>
32563
32564         * modules/argp (Notice): Add a notice recommending to change
32565         XGETTEXT_OPTIONS.
32566         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32567
32568 2008-01-13  Colin Watson  <cjwatson@debian.org>
32569
32570         * modules/strsignal-tests: New file.
32571         * tests/test-strsignal.c: New file.
32572
32573         * lib/strsignal.c: New file, from glibc with modifications.
32574         * lib/siglist.h: New file, from glibc with modifications.
32575         * lib/string.in.h (strsignal): New declaration.
32576         * m4/strsignal.m4: New file.
32577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32578         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32579         * modules/strsignal: New file.
32580         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32581         HAVE_DECL_STRSIGNAL.
32582
32583 2008-01-13  Bruno Haible  <bruno@clisp.org>
32584
32585         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32586         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32587         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32588         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32589
32590 2008-01-13  Bruno Haible  <bruno@clisp.org>
32591
32592         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32593         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32594         * lib/argp.h (__attribute__): Likewise.
32595         * lib/c-stack.c (__attribute__): Likewise.
32596         * lib/error.h (__attribute__): Likewise.
32597         * lib/fts.c (__attribute__): Likewise.
32598         * lib/openat.h (__attribute__): Likewise.
32599         * lib/stdio.in.h (__attribute__): Likewise.
32600         * lib/string.in.h (__attribute__): Likewise.
32601         * lib/utimens.c (__attribute__): Likewise.
32602         * lib/vasnprintf.h (__attribute__): Likewise.
32603         * lib/xalloc.h (__attribute__): Likewise.
32604         * lib/xprintf.h (__attribute__): Likewise.
32605         * lib/xstrtol.h (__attribute__): Likewise.
32606         * lib/xvasprintf.h (__attribute__): Likewise.
32607
32608 2008-01-12  Bruno Haible  <bruno@clisp.org>
32609
32610         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32611         * doc/glibc-headers/a.out.texi: New file.
32612         * doc/glibc-headers/aliases.texi: New file.
32613         * doc/glibc-headers/alloca.texi: New file.
32614         * doc/glibc-headers/ar.texi: New file.
32615         * doc/glibc-headers/argp.texi: New file.
32616         * doc/glibc-headers/argz.texi: New file.
32617         * doc/glibc-headers/byteswap.texi: New file.
32618         * doc/glibc-headers/crypt.texi: New file.
32619         * doc/glibc-headers/endian.texi: New file.
32620         * doc/glibc-headers/envz.texi: New file.
32621         * doc/glibc-headers/err.texi: New file.
32622         * doc/glibc-headers/error.texi: New file.
32623         * doc/glibc-headers/execinfo.texi: New file.
32624         * doc/glibc-headers/fpu_control.texi: New file.
32625         * doc/glibc-headers/fstab.texi: New file.
32626         * doc/glibc-headers/fts.texi: New file.
32627         * doc/glibc-headers/getopt.texi: New file.
32628         * doc/glibc-headers/ieee754.texi: New file.
32629         * doc/glibc-headers/ifaddrs.texi: New file.
32630         * doc/glibc-headers/libintl.texi: New file.
32631         * doc/glibc-headers/mcheck.texi: New file.
32632         * doc/glibc-headers/mntent.texi: New file.
32633         * doc/glibc-headers/obstack.texi: New file.
32634         * doc/glibc-headers/paths.texi: New file.
32635         * doc/glibc-headers/printf.texi: New file.
32636         * doc/glibc-headers/pty.texi: New file.
32637         * doc/glibc-headers/resolv.texi: New file.
32638         * doc/glibc-headers/shadow.texi: New file.
32639         * doc/glibc-headers/sysexits.texi: New file.
32640         * doc/glibc-headers/ttyent.texi: New file.
32641
32642 2008-01-12  Jim Meyering  <meyering@redhat.com>
32643
32644         announce-gen: emit Gnulib's git-based version string.
32645         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32646         New option --gnulib-version=V, where V is expected to be
32647         the output of running git describe in the gnulib directory.
32648         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32649         not useful, and plan to stop publishing an xdelta file with each
32650         coreutils release.
32651
32652         * build-aux/announce-gen: Also check for lzma-compressed files.
32653
32654 2008-01-11  Bruno Haible  <bruno@clisp.org>
32655
32656         * tests/test-memmem.c (main): Increase maximum allowed time.
32657         * tests/test-strstr.c (main): Likewise.
32658
32659 2008-01-11  Bruno Haible  <bruno@clisp.org>
32660
32661         * doc/functions/memmem.texi: Add more precisions about platforms.
32662         * doc/functions/strstr.texi: Likewise.
32663
32664 2008-01-10  Eric Blake  <ebb9@byu.net>
32665
32666         * m4/strstr.m4: Delete cruft from copy-n-paste.
32667         Reported by Bruno Haible.
32668
32669 2008-01-10  Bruno Haible  <bruno@clisp.org>
32670
32671         Make c-strstr rely on strstr.
32672         * lib/c-strstr.c: Don't include str-kmp.h.
32673         (c_strstr): Define in terms of strstr.
32674         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32675         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32676
32677 2008-01-10  Bruno Haible  <bruno@clisp.org>
32678
32679         * doc/gnulib.texi (String Functions in C Locale): New section.
32680         * doc/c-ctype.texi: New file.
32681         * doc/c-strcase.texi: New file.
32682         * doc/c-strcaseeq.texi: New file.
32683         * doc/c-strcasestr.texi: New file.
32684         * doc/c-strstr.texi: New file.
32685         * doc/c-strtod.texi: New file.
32686         * doc/c-strtold.texi: New file.
32687
32688 2008-01-10  Eric Blake  <ebb9@byu.net>
32689
32690         * lib/relocatable.h: Fix a comment.
32691
32692 2008-01-10  Eric Blake  <ebb9@byu.net>
32693
32694         Share two-way algorithm.
32695         * lib/str-two-way.h: New file, merged from...
32696         * lib/memmem.c: ...here...
32697         * lib/strstr.c: ...and here.
32698         * modules/memmem (Files): Use it.
32699         * modules/strstr (Files): Likewise.
32700
32701         Avoid quadratic strstr implementations.
32702         * lib/strstr.c: New file.
32703         * m4/strstr.m4: Likewise.
32704         * modules/strstr: Likewise.
32705         * modules/strstr-tests: Likewise.
32706         * tests/test-strstr.c: Likewise.
32707         * lib/string.in.h (rpl_strstr): Declare.
32708         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32710         * modules/string (Makefile.am): Likewise.
32711         * MODULES.html.sh (string handling): Mention new module.
32712         * doc/functions/strstr.texi (strstr): Document the bug.
32713
32714 2008-01-10  Bruno Haible  <bruno@clisp.org>
32715
32716         * lib/relocatable.h (relocate): State whether result is freshly
32717         allocated or not.
32718         * lib/relocatable.c (relocate): Return a freshly allocated string
32719         instead of a pointer to a privately held string.
32720         Reported by Sylvain Beucler <beuc@gnu.org>.
32721
32722 2008-01-10  Colin Watson  <cjwatson@debian.org>
32723
32724         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32725         s/S_ISNLK/S_ISLNK/.
32726
32727 2008-01-09  Bruno Haible  <bruno@clisp.org>
32728
32729         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32730         and other files.
32731         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32732         if it's only a guess.
32733         * modules/memmem: Simplify by depending on memmem-simple.
32734
32735 2008-01-09  Bruno Haible  <bruno@clisp.org>
32736
32737         Work around OpenBSD 4.0 tdelete() bug.
32738         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32739         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32740         macros and don't redefine the enum values.
32741         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32742         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32743         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32744
32745 2008-01-09  Bruno Haible  <bruno@clisp.org>
32746
32747         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32748         (main): Don't perform the tests if setlocale did not install a UTF-8
32749         locale. Needed on OpenBSD 4.0.
32750         * modules/wcwidth-tests (Depends-on): Add localcharset.
32751
32752 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32753
32754         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32755         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32756         * NEWS: announce this.
32757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32758
32759 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32760         and Eric Blake  <ebb9@byu.net>
32761
32762         Add memmem-simple module.
32763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32764         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32765         * modules/memmem-simple: New file.
32766         * modules/memmem (Description): Tweak.
32767         * MODULES.html.sh (string handling): Mention new module.
32768         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32769         addressed by memmem-simple.
32770         * NEWS: Document the difference.
32771
32772 2008-01-09  Eric Blake  <ebb9@byu.net>
32773
32774         Give gcc some memmem optimization hints.
32775         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32776         (strcasestr): Declare as pure.
32777         * modules/memmem (Maintainer): Claim my implementation.
32778
32779 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32780
32781         Support AIX 6.1 and higher.
32782         * build-aux/config.libpath: Likewise.
32783         * build-aux/config.rpath: Likewise.
32784
32785 2008-01-08  Jim Meyering  <meyering@redhat.com>
32786             Bruno Haible  <bruno@clisp.org>
32787
32788         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32789         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32790         Reported by Peter Fales in
32791         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32792
32793 2008-01-08  Bruno Haible  <bruno@clisp.org>
32794
32795         * modules/unictype/category-of (Depends-on): Add
32796         unictype/category-none.
32797         * modules/unictype/category-and-tests (Depends-on): Add
32798         unictype/category-{L,N,Lu,Nd}.
32799         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32800         * modules/unictype/category-or-tests (Depends-on): Add
32801         unictype/category-{L,N}.
32802         * modules/unictype/category-name-tests (Depends-on): Add
32803         unictype/category-{Z,Nl}.
32804         Reported by Simon Josefsson.
32805
32806 2008-01-08  Bruno Haible  <bruno@clisp.org>
32807
32808         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32809         convention better.
32810         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32811         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32812         Reported by Peter Miller <millerp@canb.auug.org.au>.
32813
32814 2008-01-08  Eric Blake  <ebb9@byu.net>
32815
32816         Rewrite memmem to guarantee linear complexity without malloc.
32817         * lib/memmem.c (memmem): Use Two-Way rather than
32818         Knuth-Morris-Pratt, to allow O(1) space usage.
32819         (critical_factorization, two_way_short_needle)
32820         (two_way_long_needle): New functions.
32821         (knuth_morris_pratt): Delete.
32822         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32823         Add stdint.
32824         * tests/test-memmem.c (main): Add tests for periodic needle and
32825         sublinear performance.
32826         * doc/functions/memmem.texi (memmem): Document other deficiencies
32827         in cygwin and older glibc.
32828
32829 2008-01-08  Bruno Haible  <bruno@clisp.org>
32830
32831         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32832         augmentation.
32833
32834 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32835
32836         Add a configure time option: --disable-acl.
32837         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32838         AC_ARG_ENABLE(acl).
32839
32840 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32841
32842         * tests/test-localename.c: Don't include obsolete "setenv.h".
32843
32844         * modules/localename-tests (Depends-on): Need unsetenv.
32845
32846 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32847
32848         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32849
32850 2008-01-06  Colin Watson  <cjwatson@debian.org>
32851
32852         * users.txt: Add man-db.
32853
32854 2008-01-07  Bruno Haible  <bruno@clisp.org>
32855
32856         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32857         previous section name.
32858
32859 2008-01-07  Bruno Haible  <bruno@clisp.org>
32860
32861         * lib/progname.c (set_program_name): Don't strip off a leading
32862         "lt-" prefix outside a .libs directory.
32863         Suggested by Paul Eggert.
32864
32865 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32866             Bruno Haible  <bruno@clisp.org>
32867
32868         Improve memory cleanup in 'relocatable' module.
32869         * lib/relocatable.h (compute_curr_prefix): Change return type to
32870         'char *'.
32871         * lib/relocatable.c (compute_curr_prefix): Change return type to
32872         'char *'. Free curr_installdir after use.
32873         (relocate): Free curr_prefix_better after use.
32874         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32875
32876 2008-01-01  Bruno Haible  <bruno@clisp.org>
32877
32878         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32879         failure on older glibc systems.
32880         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32881
32882 2008-01-05  Eric Blake  <ebb9@byu.net>
32883
32884         Avoid quadratic system memmem.
32885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32886         Reported by Ralf Wildenhues.
32887
32888         Fix memmem test for mingw.
32889         * modules/memmem-tests (configure.ac): Check for alarm.
32890         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32891         it.
32892         * doc/functions/memmem.texi: New file.
32893         * doc/gnulib.texi (Function Substitutes): Add memmem.
32894         Reported by Bruno Haible.
32895
32896 2008-01-04  Bruno Haible  <bruno@clisp.org>
32897
32898         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32899         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32900         gl_HEADER_STRING_H_DEFAULTS.
32901
32902 2008-01-04  Eric Blake  <ebb9@byu.net>
32903
32904         Shorten duration of memmem test.
32905         * tests/test-memmem.c (main): Use alarm to declare failure if test
32906         is taking too long.
32907         Reported by Ralf Wildenhues.
32908
32909 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32910
32911         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32912         string, needed by strerror.
32913
32914 2008-01-03  Colin Watson  <cjwatson@debian.org>
32915             Bruno Haible  <bruno@clisp.org>
32916
32917         * doc/gnulib-tool.texi (Localization): New section.
32918
32919 2008-01-02  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32922         variables to 'unsigned char *' type.
32923         Reported by Paul Eggert.
32924
32925 2008-01-02  Jim Meyering  <jim@meyering.net>
32926
32927         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32928
32929 2007-12-31  Jim Meyering  <jim@meyering.net>
32930
32931         Avoid use of private FTS type name.
32932         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32933
32934 2007-12-30  Karl Berry  <karl@gnu.org>
32935
32936         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32937         work around defect in Texinfo and/or the standalone Info browser.
32938
32939 2007-12-30  Bruno Haible  <bruno@clisp.org>
32940
32941         Unify 5 copies of the KMP code.
32942         * lib/str-kmp.h: New file.
32943         * lib/c-strcasestr.c: Include str-kmp.h.
32944         (knuth_morris_pratt): Remove function.
32945         (c_strcasestr): Update.
32946         * lib/c-strstr.c: Include str-kmp.h.
32947         (knuth_morris_pratt): Remove function.
32948         (c_strcasestr): Update.
32949         * lib/mbscasestr.c: Include str-kmp.h.
32950         (knuth_morris_pratt_unibyte): Remove function.
32951         * lib/mbsstr.c: Include str-kmp.h.
32952         (knuth_morris_pratt_unibyte): Remove function.
32953         * lib/strcasestr.c: Include str-kmp.h.
32954         (knuth_morris_pratt): Remove function.
32955         (strcasestr): Update.
32956         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32957         * modules/c-strstr (Files): Likewise.
32958         * modules/mbscasestr (Files): Likewise.
32959         * modules/mbsstr (Files): Likewise.
32960         * modules/strcasestr (Files): Likewise.
32961         Suggested by Paul Eggert.
32962
32963 2007-12-30  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32966         defined.
32967
32968 2007-12-30  Bruno Haible  <bruno@clisp.org>
32969
32970         * lib/xmalloca.h: Include xalloc.h.
32971         (xnmalloca): New macro.
32972
32973 2007-12-30  Bruno Haible  <bruno@clisp.org>
32974
32975         * lib/malloca.h (nmalloca): New macro.
32976         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32977         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32978         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32979         knuth_morris_pratt_multibyte): Likewise.
32980         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32981         knuth_morris_pratt_multibyte): Likewise.
32982         * lib/memmem.c (knuth_morris_pratt): Likewise.
32983         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32984
32985 2007-12-25  Bruno Haible  <bruno@clisp.org>
32986
32987         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32988         * lib/glob.c: Don't include openat.h.
32989         (link_exists2_p): Add back the code that deals with the
32990         !GLOB_ALTDIRFUNC case.
32991         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32992         let it do the filename concatenation.
32993         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32994         * modules/glob (Depends-on): Remove openat.
32995
32996 2007-12-31  Bruno Haible  <bruno@clisp.org>
32997
32998         * modules/dirfd (License): Change to LGPLv2+.
32999         Approved by Jim Meyering.
33000
33001 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33002
33003         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33004         when multiplying M by sizeof (size_t).
33005
33006 2007-12-10  Martin Lambers  <marlam@marlam.de>
33007
33008         Override getpagesize on mingw.
33009         * lib/getpagesize.c: New file.
33010         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33011         * modules/getpagesize (Files): Add lib/getpagesize.c.
33012         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33014         REPLACE_GETPAGESIZE.
33015         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33016
33017 2007-12-25  Bruno Haible  <bruno@clisp.org>
33018
33019         * modules/localcharset (Notice): New field.
33020         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33021         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33022
33023 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33024             Bruno Haible  <bruno@clisp.org>
33025
33026         Avoid using the syntax symbol() in formatted documentation.
33027         * MODULES.html.sh (func_module): When replacing symbol() with a
33028         hyperlink, remove the parentheses. Show an error if some remain.
33029         Recognize and render the '...' syntax.
33030         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33031         Rework. Add paragraph about GCC's inlining.
33032         * doc/alloca.texi: Likewise.
33033         * doc/error.texi: Remove parentheses from symbol reference.
33034         * doc/gnulib-intro.texi: Likewise.
33035         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33036         * modules/fnmatch (Description): Reword to say "the ... function".
33037         * modules/full-read (Description): Likewise.
33038         * modules/full-write (Description): Likewise.
33039         * modules/safe-read (Description): Likewise.
33040         * modules/safe-write (Description): Likewise.
33041         * modules/strchrnul (Description): Likewise.
33042         * modules/trim (Description): Likewise.
33043         * modules/error (Description): Remove parentheses from symbol
33044         references.
33045         * modules/verror (Description): Likewise.
33046         Reported by Karl Berry.
33047
33048 2007-12-25  Bruno Haible  <bruno@clisp.org>
33049
33050         Fixup after 2007-10-16 commit.
33051         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33052
33053 2007-12-24  Bruno Haible  <bruno@clisp.org>
33054
33055         Make --enable-relocatable work with DESTDIR.
33056         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33057         to compute installdir from destprog.
33058         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33059         also set the RELOC_DESTDIR variable.
33060         Reported by Левашев Иван <octagram@bluebottle.com>.
33061
33062 2007-12-24  Bruno Haible  <bruno@clisp.org>
33063
33064         Fix link error due to xalloc_die().
33065         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33066         of xreadlink.
33067         * lib/relocwrapper.c: Update comments.
33068         * build-aux/install-reloc: Remove xreadlink.c from file list.
33069         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33070         xreadlink.c.
33071         Reported by Левашев Иван <octagram@bluebottle.com>.
33072
33073 2007-12-24  Bruno Haible  <bruno@clisp.org>
33074
33075         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33076         * lib/setenv.h: Remove file.
33077         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33078         lib/setenv.h.
33079         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33080         (Depends-on): Add stdlib.
33081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33082         gl_FUNC_UNSETENV.
33083         (Include): Replace setenv.h with <stdlib.h>.
33084         * modules/unsetenv: New file.
33085         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33086         * lib/unsetenv.c: Include <stdlib.h> first.
33087         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33088         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33089         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33090         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33091         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33092         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33094         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33095         * doc/functions/unsetenv.texi: Update.
33096         * modules/xsetenv (Depends-on): Add unsetenv.
33097         * modules/getdate (Depends-on): Likewise.
33098         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33099         * lib/xsetenv.c: Don't include setenv.h.
33100         * lib/getdate.y: Likewise.
33101         * lib/relocwrapper.c: Likewise.
33102         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33103         (Depends-on): Add stdlib.
33104         * NEWS: Mention the changes.
33105         Reported by Левашев Иван <octagram@bluebottle.com>.
33106
33107 2007-12-23  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33110         indentation.
33111
33112 2007-12-23  Bruno Haible  <bruno@clisp.org>
33113
33114         * lib/c-strcasestr.c: Add more comments.
33115         * lib/c-strstr.c: Likewise.
33116         * lib/mbscasestr.c: Likewise.
33117         * lib/mbsstr.c: Likewise.
33118         * lib/strcasestr.c: Likewise.
33119         * lib/memmem.c: Likewise.
33120
33121 2007-12-23  Bruno Haible  <bruno@clisp.org>
33122
33123         * tests/test-memmem.c: Include <string.h> first.
33124
33125 2007-12-22  Bruno Haible  <bruno@clisp.org>
33126
33127         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33128         the contents of $testsbase.
33129         Reported by Ralf Wildenhues.
33130
33131 2007-12-22  Bruno Haible  <bruno@clisp.org>
33132
33133         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33134         two variables local_ldadd_before, local_ldadd_last.
33135
33136 2007-12-20  Eric Blake  <ebb9@byu.net>
33137
33138         Work around circular library issue when cross-compiling.
33139         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33140         that progname.o does not need to pull in rpl_memcmp.
33141
33142 2007-12-19  Eric Blake  <ebb9@byu.net>
33143
33144         Fix memmem to avoid O(n^2) worst-case complexity.
33145         * lib/memmem.c (knuth_morris_pratt): New function.
33146         (memmem): Use it if first few naive iterations fail.
33147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33148         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33149         * modules/memchr (License): Likewise.
33150         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33151         malloca.
33152         * tests/test-memmem.c: Rewrite, borrowing ideas from
33153         test-mbsstr1.c; the old version wouldn't even compile!
33154         * modules/memmem-tests: New file.
33155         * lib/string.in.h (rpl_memmem): Add declaration.
33156         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33158         REPLACE_MEMMEM.
33159
33160 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33161
33162         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33163         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33164         before any system include files, and undef after them all.  This
33165         should fix a problem on VMS reported by John E. Malmberg in
33166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33167
33168 2007-12-17  Eric Blake  <ebb9@byu.net>
33169
33170         Revert addition of verify, for BSD/OS.
33171         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33172         can't handle large files, for the sake of obsolete platforms.
33173         * modules/fseeko (Depends-on): Remove verify.
33174         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33175         * doc/functions/ftello.texi (ftello): Likewise.
33176         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33177         Reported by Larry Jones.
33178
33179 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33180
33181         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33182         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33183
33184 2007-12-17  Jim Meyering  <meyering@redhat.com>
33185
33186         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33187         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33188         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33189         * modules/getcwd (Depends-on): Add openat.
33190         Reported by Petr Salinger.
33191
33192 2007-12-17  Bruno Haible  <bruno@clisp.org>
33193
33194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33195         avoid a segmentation fault of the configure test on x86_64 systems.
33196
33197 2007-12-15  Jim Meyering  <meyering@redhat.com>
33198
33199         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33200
33201 2007-12-13  Eric Blake  <ebb9@byu.net>
33202
33203         Another fseek test.
33204         * tests/test-fseek.c (main): Also test ungetc handling.
33205         * tests/test-fseeko.c (main): Likewise.
33206         * modules/fseeko (Depends-on): Add verify.
33207         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33208         large.
33209         Reported by Larry Jones.
33210
33211         Fix fseeko on mingw.
33212         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33213         seek.
33214
33215         Beef up fseek tests.
33216         * tests/test-fseek.c (main): Also test eof handling.
33217         * tests/test-fseeko.c (main): Likewise.
33218         Reported by Larry Jones.
33219
33220 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33221
33222         Fix fseeko on BSD-based platforms.
33223         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33224         successful seek.
33225
33226 2007-12-12  Eric Blake  <ebb9@byu.net>
33227
33228         Allow circular dependency of separate libtests.a
33229         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33230         when use_libtests.
33231
33232 2007-12-11  Eric Blake  <ebb9@byu.net>
33233
33234         Fix bug with -0.0L in previous patch.
33235         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33236         * tests/test-isnan.c (main): Also test on zeroes.
33237         * tests/test-isnanf.c (main): Likewise.
33238         * tests/test-isnanl.h (main): Likewise.
33239
33240         Detect pseudo-denormals on x86 even when cross-compiling.
33241         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33242         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33243         invalid bit patterns that happen to satisfy ==.
33244
33245         Avoid link failures with separate libtests.a.
33246         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33247         last, to satisfy circular dependencies.
33248
33249 2007-12-11  Eric Blake  <ebb9@byu.net>
33250         and Bruno Haible  <bruno@clisp.org>
33251
33252         Fix OpenBSD 4.0 <float.h> handling of long double.
33253         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33254         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33255         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33256
33257 2007-12-11  Jim Meyering  <meyering@redhat.com>
33258
33259         * users.txt: Add libvirt.
33260
33261         Support versions of autoconf prior to 2.59c.
33262         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33263         if it is not already defined.
33264
33265 2007-12-09  Bruno Haible  <bruno@clisp.org>
33266
33267         Let 'gnulib-tool --import' collect sources needed for the tests in
33268         tests/ rather than in lib/.
33269         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33270         argument. If true, add rules to generate libtests.a, and put libtests.a
33271         into $(LDADD). Consider source files in subdirectories and set
33272         uses_subdirs.
33273         (func_emit_initmacro_start, func_emit_initmacro_end,
33274         func_emit_initmacro_done): Pass all arguments explicitly.
33275         (func_import): Determine two module lists main_modules,
33276         testsrelated_modules. Determine use_libtests. Determine two variables
33277         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33278         instead of just sed_transform_lib_file. Determine two variables
33279         main_files and testsrelated_files. Compute 'files' as the union of
33280         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33281         func_add_or_update. In the generated gnulib-comp.m4, collect the
33282         object files for tests/ in different variables than those for lib/.
33283         Substitute LIBTESTS_LIBDEPS.
33284         (func_create_testdir): Combine the uses_subdirs results from
33285         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33286
33287 2007-12-09  Bruno Haible  <bruno@clisp.org>
33288
33289         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33290         the build-aux directory.
33291
33292 2007-12-09  Bruno Haible  <bruno@clisp.org>
33293
33294         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33295         introduced on 2006-09-09.
33296
33297 2007-12-07  Jim Meyering  <meyering@redhat.com>
33298
33299         Let these macros work also with autoconf-2.59.
33300         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33301         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33302         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33303
33304 2007-12-06  Jim Meyering  <meyering@redhat.com>
33305
33306         Avoid a configure-time syntax error in gl_FUNC_ACL.
33307         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33308         function in each branch, before testing the cache variable.
33309
33310 2007-12-04  Eric Blake  <ebb9@byu.net>
33311
33312         Make scripts executable.
33313         * build-aux/config.guess: Add execute permissions.
33314         * build-aux/config.sub: Likewise.
33315         * build-aux/gendocs.sh: Likewise.
33316
33317         Fix frexp on mingw.
33318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33319         cross-compiling.
33320         * doc/functions/frexp.texi (frexp): Document the bug.
33321
33322         Make cygwin fseeko check more reliable.
33323         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33324         version numbers, rather than unrelated feature check.
33325         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33326         * doc/functions/ftello.texi (ftello): Likewise.
33327         Reported by Bruno Haible.
33328
33329         * m4/strerror.m4: Bump version number.
33330
33331 2007-12-03  Bruno Haible  <bruno@clisp.org>
33332
33333         * doc/functions/mprotect.texi: Mention the mingw problem.
33334
33335 2007-12-03  Eric Blake  <ebb9@byu.net>
33336
33337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33338         REPLACE_STRERROR is initialized before this macro.
33339
33340 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33341
33342         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33343         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33344         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33345         put -lsec in even for programs other than 'ls'.  This fixes a problem
33346         for gettext reported by Bruno Haible in
33347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33348         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33349         Add support for Solaris 10.  This isn't efficient, but should get the
33350         job done for now.
33351
33352 2007-12-03  James Youngman  <jay@gnu.org>
33353
33354         * doc/regexprops-generic.texi: change "an close-group" to "a
33355         close-group" and "illegal" to "not allowed".
33356
33357 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33358
33359         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33360         pr_byname.h. Needed for the rare case when the maintainer has done
33361         "make maintainer-clean" in the source directory and then attempts a
33362         build outside the source directory.
33363         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33364         scripts_byname.h.
33365
33366 2007-12-02  Martin Lambers <marlam@marlam.de>
33367             Bruno Haible  <bruno@clisp.org>
33368
33369         * lib/getpagesize.h: Remove file.
33370         * lib/unistd.in.h: Include declaration of getpagesize here.
33371         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33372         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33373         HAVE_SYS_PARAM_H.
33374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33375         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33376         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33377         (Depends-on): Add unistd.
33378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33379         (Include): Use <unistd.h> instead of getpagesize.h.
33380         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33381         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33382         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33383         gl_GETPAGESIZE invocation, already handled by module dependency.
33384         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33385
33386 2007-12-02  Bruno Haible  <bruno@clisp.org>
33387
33388         * modules/strings-tests: New file.
33389         * tests/test-strings.c: New file.
33390
33391         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33392         * lib/strings.in.h: New file.
33393         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33394         * m4/strings_h.m4: New file.
33395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33396         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33397         * modules/strings: New file.
33398         * modules/string (Makefile.am): Update.
33399         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33400         Reported by Karl Berry.
33401
33402 2007-12-01  Eric Blake  <ebb9@byu.net>
33403
33404         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33405         accomodate fix in cygwin 1.5.25.
33406
33407 2007-12-01  Jim Meyering  <meyering@redhat.com>
33408
33409         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33410         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33411         that would inhibit utf8-optimization of a regexp containing line-
33412         or buffer-anchors, e.g., `^', `$'.
33413
33414 2007-11-30  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33417         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33418         glthread_recursive_lock_init.
33419         * lib/lock.c (glthread_recursive_lock_init)
33420         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33422
33423 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33424
33425         New function qset_acl, like set_acl but with syscall semantics.
33426         * lib/acl.h (qset_acl): New decl.
33427         * lib/acl.c (qset_acl): New function.
33428         (set_acl): Use new function.  Use more-consistent diagnostics.
33429
33430 2007-11-28  Jim Meyering  <meyering@redhat.com>
33431
33432         * modules/physmem (License): Change from GPL to LGPLv2+.
33433
33434 2007-11-26  Bruno Haible  <bruno@clisp.org>
33435
33436         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33437         'long double' type has excess precision.
33438         Reported by Jim Meyering in
33439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33440
33441 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33442
33443         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33444         Sync from <http://gnu.org/licenses>.
33445         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33446         with license text from same location.
33447         * doc/maintain.texi, doc/standards.texi:  Sync from
33448         <http://savannah.gnu.org/projects/gnustandards>.
33449
33450 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33451         and Jim Meyering  <meyering@redhat.com>
33452
33453         Adjust getdate' grammar to accept a slightly more regular language.
33454         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33455         Before, the former was rejected.
33456         * lib/getdate.y (digits_to_date_time): New function, factored
33457         out of ...
33458         (number): ...here.  Just call digits_to_date_time.
33459         (hybrid): New non-terminal to handle an <unsigned number,
33460         signed relative offset> sequence consistently.
33461
33462 2007-11-18  Jim Meyering  <meyering@redhat.com>
33463
33464         Pull my changes from coreutils:
33465         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33466         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33467         use of $gnulib_tool_option_extras, so that it's separated from the
33468         preceding argument.
33469
33470         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33471         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33472         parent destination directories before copying a file into place.
33473
33474 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33475
33476         bootstrap: work also with 4-argument variant of AC_INIT
33477         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33478
33479 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33480
33481         Port test-getaddrinfo to Solaris.
33482         Problem reported by Bruno Haible in
33483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33484         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33485         explanation of setting 'hints'.
33486         Don't reject an implementation merely because it returns EAI_SERVICE.
33487         (EAI_SERVICE): Define to 0 if not defined.
33488
33489 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33490
33491         The license of gnu-make and posix-shell is now "GPLed build tool".
33492         * modules/gnu-make (License): Likewise.
33493         * modules/posix-shell (License): Likewise.
33494
33495         New module posix-shell, for determining a POSIX shell
33496         or perhaps something that is close enough to a POSIX shell.
33497         * m4/posix-shell.m4: New file.
33498         * modules/posix-shell: New file.
33499
33500         * MODULES.html.sh: Mention new module.
33501
33502         New module gnu-make, for determining whether we're using GNU Make.
33503         * m4/gnu-make.m4: New file.
33504         * modules/gnu-make: New file.
33505         * MODULES.html.sh: Mention new module.
33506
33507 2007-11-14  Jim Meyering  <meyering@redhat.com>
33508
33509         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33510         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33511         use this macro to create a function _definition_.
33512         Remove useless "#undef ARGMATCH_DIE".
33513
33514 2007-11-14  Bruno Haible  <bruno@clisp.org>
33515
33516         * lib/config.charset: Update for OpenBSD 4.1.
33517         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33518
33519 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33520
33521         Document 64-bit #if problems in stdint.texi.
33522         * doc/headers/stdint.texi (stdint.h): Mention problems with
33523         64-bit-#if, and how to work around them.
33524
33525         Don't insist on 'long long int' support in the preprocessor.  It
33526         breaks too many things.  For example, PRIdMAX still uses a 'long
33527         long int' format with the latest Sun compiler, even though
33528         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33529         preprocessor problem.  This causes the latest coreutils to dump
33530         core on Solaris 10 sparc with the Sun C compiler.
33531         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33532         the troublesome expressions at configure-time, not at #if-time.
33533         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33534         preprocessor.
33535         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33536         compile-time C checks, done at 'configure'-time.
33537         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33538         * modules/inttypes (Makefile): Substitute the new symbols that
33539         gl_INTTYPES_H now generates.
33540         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33541
33542 2007-11-12  Bruno Haible  <bruno@clisp.org>
33543
33544         Tests for Unicode character classification functions.
33545
33546         * modules/unictype/bidicategory-byname-tests: New file.
33547         * modules/unictype/bidicategory-name-tests: New file.
33548         * modules/unictype/bidicategory-of-tests: New file.
33549         * modules/unictype/bidicategory-test-tests: New file.
33550         * modules/unictype/block-list-tests: New file.
33551         * modules/unictype/block-of-tests: New file.
33552         * modules/unictype/block-test-tests: New file.
33553         * modules/unictype/category-C-tests: New file.
33554         * modules/unictype/category-Cc-tests: New file.
33555         * modules/unictype/category-Cf-tests: New file.
33556         * modules/unictype/category-Cn-tests: New file.
33557         * modules/unictype/category-Co-tests: New file.
33558         * modules/unictype/category-Cs-tests: New file.
33559         * modules/unictype/category-L-tests: New file.
33560         * modules/unictype/category-Ll-tests: New file.
33561         * modules/unictype/category-Lm-tests: New file.
33562         * modules/unictype/category-Lo-tests: New file.
33563         * modules/unictype/category-Lt-tests: New file.
33564         * modules/unictype/category-Lu-tests: New file.
33565         * modules/unictype/category-M-tests: New file.
33566         * modules/unictype/category-Mc-tests: New file.
33567         * modules/unictype/category-Me-tests: New file.
33568         * modules/unictype/category-Mn-tests: New file.
33569         * modules/unictype/category-N-tests: New file.
33570         * modules/unictype/category-Nd-tests: New file.
33571         * modules/unictype/category-Nl-tests: New file.
33572         * modules/unictype/category-No-tests: New file.
33573         * modules/unictype/category-P-tests: New file.
33574         * modules/unictype/category-Pc-tests: New file.
33575         * modules/unictype/category-Pd-tests: New file.
33576         * modules/unictype/category-Pe-tests: New file.
33577         * modules/unictype/category-Pf-tests: New file.
33578         * modules/unictype/category-Pi-tests: New file.
33579         * modules/unictype/category-Po-tests: New file.
33580         * modules/unictype/category-Ps-tests: New file.
33581         * modules/unictype/category-S-tests: New file.
33582         * modules/unictype/category-Sc-tests: New file.
33583         * modules/unictype/category-Sk-tests: New file.
33584         * modules/unictype/category-Sm-tests: New file.
33585         * modules/unictype/category-So-tests: New file.
33586         * modules/unictype/category-Z-tests: New file.
33587         * modules/unictype/category-Zl-tests: New file.
33588         * modules/unictype/category-Zp-tests: New file.
33589         * modules/unictype/category-Zs-tests: New file.
33590         * modules/unictype/category-and-not-tests: New file.
33591         * modules/unictype/category-and-tests: New file.
33592         * modules/unictype/category-byname-tests: New file.
33593         * modules/unictype/category-name-tests: New file.
33594         * modules/unictype/category-none-tests: New file.
33595         * modules/unictype/category-of-tests: New file.
33596         * modules/unictype/category-or-tests: New file.
33597         * modules/unictype/category-test-withtable-tests: New file.
33598         * modules/unictype/combining-class-tests: New file.
33599         * modules/unictype/ctype-alnum-tests: New file.
33600         * modules/unictype/ctype-alpha-tests: New file.
33601         * modules/unictype/ctype-blank-tests: New file.
33602         * modules/unictype/ctype-cntrl-tests: New file.
33603         * modules/unictype/ctype-digit-tests: New file.
33604         * modules/unictype/ctype-graph-tests: New file.
33605         * modules/unictype/ctype-lower-tests: New file.
33606         * modules/unictype/ctype-print-tests: New file.
33607         * modules/unictype/ctype-punct-tests: New file.
33608         * modules/unictype/ctype-space-tests: New file.
33609         * modules/unictype/ctype-upper-tests: New file.
33610         * modules/unictype/ctype-xdigit-tests: New file.
33611         * modules/unictype/decimal-digit-tests: New file.
33612         * modules/unictype/digit-tests: New file.
33613         * modules/unictype/mirror-tests: New file.
33614         * modules/unictype/numeric-tests: New file.
33615         * modules/unictype/property-alphabetic-tests: New file.
33616         * modules/unictype/property-ascii-hex-digit-tests: New file.
33617         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33618         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33619         * modules/unictype/property-bidi-block-separator-tests: New file.
33620         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33621         * modules/unictype/property-bidi-common-separator-tests: New file.
33622         * modules/unictype/property-bidi-control-tests: New file.
33623         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33624         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33625         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33626         * modules/unictype/property-bidi-european-digit-tests: New file.
33627         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33628         * modules/unictype/property-bidi-left-to-right-tests: New file.
33629         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33630         * modules/unictype/property-bidi-other-neutral-tests: New file.
33631         * modules/unictype/property-bidi-pdf-tests: New file.
33632         * modules/unictype/property-bidi-segment-separator-tests: New file.
33633         * modules/unictype/property-bidi-whitespace-tests: New file.
33634         * modules/unictype/property-byname-tests: New file.
33635         * modules/unictype/property-combining-tests: New file.
33636         * modules/unictype/property-composite-tests: New file.
33637         * modules/unictype/property-currency-symbol-tests: New file.
33638         * modules/unictype/property-dash-tests: New file.
33639         * modules/unictype/property-decimal-digit-tests: New file.
33640         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33641         * modules/unictype/property-deprecated-tests: New file.
33642         * modules/unictype/property-diacritic-tests: New file.
33643         * modules/unictype/property-extender-tests: New file.
33644         * modules/unictype/property-format-control-tests: New file.
33645         * modules/unictype/property-grapheme-base-tests: New file.
33646         * modules/unictype/property-grapheme-extend-tests: New file.
33647         * modules/unictype/property-grapheme-link-tests: New file.
33648         * modules/unictype/property-hex-digit-tests: New file.
33649         * modules/unictype/property-hyphen-tests: New file.
33650         * modules/unictype/property-id-continue-tests: New file.
33651         * modules/unictype/property-id-start-tests: New file.
33652         * modules/unictype/property-ideographic-tests: New file.
33653         * modules/unictype/property-ids-binary-operator-tests: New file.
33654         * modules/unictype/property-ids-trinary-operator-tests: New file.
33655         * modules/unictype/property-ignorable-control-tests: New file.
33656         * modules/unictype/property-iso-control-tests: New file.
33657         * modules/unictype/property-join-control-tests: New file.
33658         * modules/unictype/property-left-of-pair-tests: New file.
33659         * modules/unictype/property-line-separator-tests: New file.
33660         * modules/unictype/property-logical-order-exception-tests: New file.
33661         * modules/unictype/property-lowercase-tests: New file.
33662         * modules/unictype/property-math-tests: New file.
33663         * modules/unictype/property-non-break-tests: New file.
33664         * modules/unictype/property-not-a-character-tests: New file.
33665         * modules/unictype/property-numeric-tests: New file.
33666         * modules/unictype/property-other-alphabetic-tests: New file.
33667         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33668         * modules/unictype/property-other-grapheme-extend-tests: New file.
33669         * modules/unictype/property-other-id-continue-tests: New file.
33670         * modules/unictype/property-other-id-start-tests: New file.
33671         * modules/unictype/property-other-lowercase-tests: New file.
33672         * modules/unictype/property-other-math-tests: New file.
33673         * modules/unictype/property-other-uppercase-tests: New file.
33674         * modules/unictype/property-paired-punctuation-tests: New file.
33675         * modules/unictype/property-paragraph-separator-tests: New file.
33676         * modules/unictype/property-pattern-syntax-tests: New file.
33677         * modules/unictype/property-pattern-white-space-tests: New file.
33678         * modules/unictype/property-private-use-tests: New file.
33679         * modules/unictype/property-punctuation-tests: New file.
33680         * modules/unictype/property-quotation-mark-tests: New file.
33681         * modules/unictype/property-radical-tests: New file.
33682         * modules/unictype/property-sentence-terminal-tests: New file.
33683         * modules/unictype/property-soft-dotted-tests: New file.
33684         * modules/unictype/property-space-tests: New file.
33685         * modules/unictype/property-terminal-punctuation-tests: New file.
33686         * modules/unictype/property-test-tests: New file.
33687         * modules/unictype/property-titlecase-tests: New file.
33688         * modules/unictype/property-unassigned-code-value-tests: New file.
33689         * modules/unictype/property-unified-ideograph-tests: New file.
33690         * modules/unictype/property-uppercase-tests: New file.
33691         * modules/unictype/property-variation-selector-tests: New file.
33692         * modules/unictype/property-white-space-tests: New file.
33693         * modules/unictype/property-xid-continue-tests: New file.
33694         * modules/unictype/property-xid-start-tests: New file.
33695         * modules/unictype/property-zero-width-tests: New file.
33696         * modules/unictype/scripts-tests: New file.
33697         * modules/unictype/syntax-c-ident-tests: New file.
33698         * modules/unictype/syntax-c-whitespace-tests: New file.
33699         * modules/unictype/syntax-java-ident-tests: New file.
33700         * modules/unictype/syntax-java-whitespace-tests: New file.
33701         * tests/unictype/test-bidi_byname.c: New file.
33702         * tests/unictype/test-bidi_name.c: New file.
33703         * tests/unictype/test-bidi_of.c: New file.
33704         * tests/unictype/test-bidi_test.c: New file.
33705         * tests/unictype/test-block_list.c: New file.
33706         * tests/unictype/test-block_of.c: New file.
33707         * tests/unictype/test-block_test.c: New file.
33708         * tests/unictype/test-categ_and.c: New file.
33709         * tests/unictype/test-categ_and_not.c: New file.
33710         * tests/unictype/test-categ_byname.c: New file.
33711         * tests/unictype/test-categ_name.c: New file.
33712         * tests/unictype/test-categ_none.c: New file.
33713         * tests/unictype/test-categ_of.c: New file.
33714         * tests/unictype/test-categ_or.c: New file.
33715         * tests/unictype/test-categ_test_withtable.c: New file.
33716         * tests/unictype/test-combining.c: New file.
33717         * tests/unictype/test-decdigit.c: New file.
33718         * tests/unictype/test-digit.c: New file.
33719         * tests/unictype/test-mirror.c: New file.
33720         * tests/unictype/test-numeric.c: New file.
33721         * tests/unictype/test-pr_byname.c: New file.
33722         * tests/unictype/test-pr_test.c: New file.
33723         * tests/unictype/test-predicate-part1.h: New file.
33724         * tests/unictype/test-predicate-part2.h: New file.
33725         * tests/unictype/test-scripts.c: New file.
33726         * tests/unictype/test-sy_c_ident.c: New file.
33727         * tests/unictype/test-sy_java_ident.c: New file.
33728
33729         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33730         for Unicode 5.0.0.
33731         * tests/unictype/test-categ_Cc.c: Likewise.
33732         * tests/unictype/test-categ_Cf.c: Likewise.
33733         * tests/unictype/test-categ_Cn.c: Likewise.
33734         * tests/unictype/test-categ_Co.c: Likewise.
33735         * tests/unictype/test-categ_Cs.c: Likewise.
33736         * tests/unictype/test-categ_L.c: Likewise.
33737         * tests/unictype/test-categ_Ll.c: Likewise.
33738         * tests/unictype/test-categ_Lm.c: Likewise.
33739         * tests/unictype/test-categ_Lo.c: Likewise.
33740         * tests/unictype/test-categ_Lt.c: Likewise.
33741         * tests/unictype/test-categ_Lu.c: Likewise.
33742         * tests/unictype/test-categ_M.c: Likewise.
33743         * tests/unictype/test-categ_Mc.c: Likewise.
33744         * tests/unictype/test-categ_Me.c: Likewise.
33745         * tests/unictype/test-categ_Mn.c: Likewise.
33746         * tests/unictype/test-categ_N.c: Likewise.
33747         * tests/unictype/test-categ_Nd.c: Likewise.
33748         * tests/unictype/test-categ_Nl.c: Likewise.
33749         * tests/unictype/test-categ_No.c: Likewise.
33750         * tests/unictype/test-categ_P.c: Likewise.
33751         * tests/unictype/test-categ_Pc.c: Likewise.
33752         * tests/unictype/test-categ_Pd.c: Likewise.
33753         * tests/unictype/test-categ_Pe.c: Likewise.
33754         * tests/unictype/test-categ_Pf.c: Likewise.
33755         * tests/unictype/test-categ_Pi.c: Likewise.
33756         * tests/unictype/test-categ_Po.c: Likewise.
33757         * tests/unictype/test-categ_Ps.c: Likewise.
33758         * tests/unictype/test-categ_S.c: Likewise.
33759         * tests/unictype/test-categ_Sc.c: Likewise.
33760         * tests/unictype/test-categ_Sk.c: Likewise.
33761         * tests/unictype/test-categ_Sm.c: Likewise.
33762         * tests/unictype/test-categ_So.c: Likewise.
33763         * tests/unictype/test-categ_Z.c: Likewise.
33764         * tests/unictype/test-categ_Zl.c: Likewise.
33765         * tests/unictype/test-categ_Zp.c: Likewise.
33766         * tests/unictype/test-categ_Zs.c: Likewise.
33767         * tests/unictype/test-ctype_alnum.c: Likewise.
33768         * tests/unictype/test-ctype_alpha.c: Likewise.
33769         * tests/unictype/test-ctype_blank.c: Likewise.
33770         * tests/unictype/test-ctype_cntrl.c: Likewise.
33771         * tests/unictype/test-ctype_digit.c: Likewise.
33772         * tests/unictype/test-ctype_graph.c: Likewise.
33773         * tests/unictype/test-ctype_lower.c: Likewise.
33774         * tests/unictype/test-ctype_print.c: Likewise.
33775         * tests/unictype/test-ctype_punct.c: Likewise.
33776         * tests/unictype/test-ctype_space.c: Likewise.
33777         * tests/unictype/test-ctype_upper.c: Likewise.
33778         * tests/unictype/test-ctype_xdigit.c: Likewise.
33779         * tests/unictype/test-decdigit.h: Likewise.
33780         * tests/unictype/test-digit.h: Likewise.
33781         * tests/unictype/test-numeric.h: Likewise.
33782         * tests/unictype/test-pr_alphabetic.c: Likewise.
33783         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33784         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33785         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33786         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33787         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33788         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33789         * tests/unictype/test-pr_bidi_control.c: Likewise.
33790         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33791         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33792         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33793         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33794         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33795         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33796         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33797         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33798         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33799         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33800         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33801         * tests/unictype/test-pr_combining.c: Likewise.
33802         * tests/unictype/test-pr_composite.c: Likewise.
33803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33804         * tests/unictype/test-pr_dash.c: Likewise.
33805         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33806         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33807         * tests/unictype/test-pr_deprecated.c: Likewise.
33808         * tests/unictype/test-pr_diacritic.c: Likewise.
33809         * tests/unictype/test-pr_extender.c: Likewise.
33810         * tests/unictype/test-pr_format_control.c: Likewise.
33811         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33812         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33813         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33814         * tests/unictype/test-pr_hex_digit.c: Likewise.
33815         * tests/unictype/test-pr_hyphen.c: Likewise.
33816         * tests/unictype/test-pr_id_continue.c: Likewise.
33817         * tests/unictype/test-pr_id_start.c: Likewise.
33818         * tests/unictype/test-pr_ideographic.c: Likewise.
33819         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33820         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33821         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33822         * tests/unictype/test-pr_iso_control.c: Likewise.
33823         * tests/unictype/test-pr_join_control.c: Likewise.
33824         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33825         * tests/unictype/test-pr_line_separator.c: Likewise.
33826         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33827         * tests/unictype/test-pr_lowercase.c: Likewise.
33828         * tests/unictype/test-pr_math.c: Likewise.
33829         * tests/unictype/test-pr_non_break.c: Likewise.
33830         * tests/unictype/test-pr_not_a_character.c: Likewise.
33831         * tests/unictype/test-pr_numeric.c: Likewise.
33832         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33833         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33834         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33835         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33836         * tests/unictype/test-pr_other_id_start.c: Likewise.
33837         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33838         * tests/unictype/test-pr_other_math.c: Likewise.
33839         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33840         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33841         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33842         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33843         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33844         * tests/unictype/test-pr_private_use.c: Likewise.
33845         * tests/unictype/test-pr_punctuation.c: Likewise.
33846         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33847         * tests/unictype/test-pr_radical.c: Likewise.
33848         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33849         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33850         * tests/unictype/test-pr_space.c: Likewise.
33851         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33852         * tests/unictype/test-pr_titlecase.c: Likewise.
33853         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33854         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33855         * tests/unictype/test-pr_uppercase.c: Likewise.
33856         * tests/unictype/test-pr_variation_selector.c: Likewise.
33857         * tests/unictype/test-pr_white_space.c: Likewise.
33858         * tests/unictype/test-pr_xid_continue.c: Likewise.
33859         * tests/unictype/test-pr_xid_start.c: Likewise.
33860         * tests/unictype/test-pr_zero_width.c: Likewise.
33861         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33862         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33863
33864 2007-11-12  Bruno Haible  <bruno@clisp.org>
33865
33866         Unicode character classification functions.
33867         * lib/unictype.h: New file.
33868         * modules/unictype/base: New file.
33869         * modules/unictype/category-L: New file.
33870         * modules/unictype/category-Lu: New file.
33871         * modules/unictype/category-Ll: New file.
33872         * modules/unictype/category-Lt: New file.
33873         * modules/unictype/category-Lm: New file.
33874         * modules/unictype/category-Lo: New file.
33875         * modules/unictype/category-M: New file.
33876         * modules/unictype/category-Mn: New file.
33877         * modules/unictype/category-Mc: New file.
33878         * modules/unictype/category-Me: New file.
33879         * modules/unictype/category-N: New file.
33880         * modules/unictype/category-Nd: New file.
33881         * modules/unictype/category-Nl: New file.
33882         * modules/unictype/category-No: New file.
33883         * modules/unictype/category-P: New file.
33884         * modules/unictype/category-Pc: New file.
33885         * modules/unictype/category-Pd: New file.
33886         * modules/unictype/category-Ps: New file.
33887         * modules/unictype/category-Pe: New file.
33888         * modules/unictype/category-Pi: New file.
33889         * modules/unictype/category-Pf: New file.
33890         * modules/unictype/category-Po: New file.
33891         * modules/unictype/category-S: New file.
33892         * modules/unictype/category-Sm: New file.
33893         * modules/unictype/category-Sc: New file.
33894         * modules/unictype/category-Sk: New file.
33895         * modules/unictype/category-So: New file.
33896         * modules/unictype/category-Z: New file.
33897         * modules/unictype/category-Zs: New file.
33898         * modules/unictype/category-Zl: New file.
33899         * modules/unictype/category-Zp: New file.
33900         * modules/unictype/category-C: New file.
33901         * modules/unictype/category-Cc: New file.
33902         * modules/unictype/category-Cf: New file.
33903         * modules/unictype/category-Cs: New file.
33904         * modules/unictype/category-Co: New file.
33905         * modules/unictype/category-Cn: New file.
33906         * modules/unictype/category-or: New file.
33907         * modules/unictype/category-of: New file.
33908         * modules/unictype/category-test: New file.
33909         * modules/unictype/category-test-withtable: New file.
33910         * modules/unictype/category-byname: New file.
33911         * modules/unictype/category-none: New file.
33912         * modules/unictype/category-and: New file.
33913         * modules/unictype/category-and-not: New file.
33914         * modules/unictype/category-name: New file.
33915         * modules/unictype/combining-class: New file.
33916         * modules/unictype/category-all: New file.
33917         * modules/unictype/bidicategory-all: New file.
33918         * modules/unictype/bidicategory-byname: New file.
33919         * modules/unictype/bidicategory-name: New file.
33920         * modules/unictype/bidicategory-of: New file.
33921         * modules/unictype/bidicategory-test: New file.
33922         * modules/unictype/decimal-digit: New file.
33923         * modules/unictype/digit: New file.
33924         * modules/unictype/numeric: New file.
33925         * modules/unictype/mirror: New file.
33926         * modules/unictype/property-white-space: New file.
33927         * modules/unictype/property-alphabetic: New file.
33928         * modules/unictype/property-other-alphabetic: New file.
33929         * modules/unictype/property-not-a-character: New file.
33930         * modules/unictype/property-default-ignorable-code-point: New file.
33931         * modules/unictype/property-other-default-ignorable-code-point: New
33932         file.
33933         * modules/unictype/property-deprecated: New file.
33934         * modules/unictype/property-logical-order-exception: New file.
33935         * modules/unictype/property-variation-selector: New file.
33936         * modules/unictype/property-private-use: New file.
33937         * modules/unictype/property-unassigned-code-value: New file.
33938         * modules/unictype/property-uppercase: New file.
33939         * modules/unictype/property-other-uppercase: New file.
33940         * modules/unictype/property-lowercase: New file.
33941         * modules/unictype/property-other-lowercase: New file.
33942         * modules/unictype/property-titlecase: New file.
33943         * modules/unictype/property-soft-dotted: New file.
33944         * modules/unictype/property-id-start: New file.
33945         * modules/unictype/property-other-id-start: New file.
33946         * modules/unictype/property-id-continue: New file.
33947         * modules/unictype/property-other-id-continue: New file.
33948         * modules/unictype/property-xid-start: New file.
33949         * modules/unictype/property-xid-continue: New file.
33950         * modules/unictype/property-pattern-white-space: New file.
33951         * modules/unictype/property-pattern-syntax: New file.
33952         * modules/unictype/property-join-control: New file.
33953         * modules/unictype/property-grapheme-base: New file.
33954         * modules/unictype/property-grapheme-extend: New file.
33955         * modules/unictype/property-other-grapheme-extend: New file.
33956         * modules/unictype/property-grapheme-link: New file.
33957         * modules/unictype/property-bidi-control: New file.
33958         * modules/unictype/property-bidi-left-to-right: New file.
33959         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33960         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33961         * modules/unictype/property-bidi-european-digit: New file.
33962         * modules/unictype/property-bidi-eur-num-separator: New file.
33963         * modules/unictype/property-bidi-eur-num-terminator: New file.
33964         * modules/unictype/property-bidi-arabic-digit: New file.
33965         * modules/unictype/property-bidi-common-separator: New file.
33966         * modules/unictype/property-bidi-block-separator: New file.
33967         * modules/unictype/property-bidi-segment-separator: New file.
33968         * modules/unictype/property-bidi-whitespace: New file.
33969         * modules/unictype/property-bidi-non-spacing-mark: New file.
33970         * modules/unictype/property-bidi-boundary-neutral: New file.
33971         * modules/unictype/property-bidi-pdf: New file.
33972         * modules/unictype/property-bidi-embedding-or-override: New file.
33973         * modules/unictype/property-bidi-other-neutral: New file.
33974         * modules/unictype/property-hex-digit: New file.
33975         * modules/unictype/property-ascii-hex-digit: New file.
33976         * modules/unictype/property-ideographic: New file.
33977         * modules/unictype/property-unified-ideograph: New file.
33978         * modules/unictype/property-radical: New file.
33979         * modules/unictype/property-ids-binary-operator: New file.
33980         * modules/unictype/property-ids-trinary-operator: New file.
33981         * modules/unictype/property-zero-width: New file.
33982         * modules/unictype/property-space: New file.
33983         * modules/unictype/property-non-break: New file.
33984         * modules/unictype/property-iso-control: New file.
33985         * modules/unictype/property-format-control: New file.
33986         * modules/unictype/property-dash: New file.
33987         * modules/unictype/property-hyphen: New file.
33988         * modules/unictype/property-punctuation: New file.
33989         * modules/unictype/property-line-separator: New file.
33990         * modules/unictype/property-paragraph-separator: New file.
33991         * modules/unictype/property-quotation-mark: New file.
33992         * modules/unictype/property-sentence-terminal: New file.
33993         * modules/unictype/property-terminal-punctuation: New file.
33994         * modules/unictype/property-currency-symbol: New file.
33995         * modules/unictype/property-math: New file.
33996         * modules/unictype/property-other-math: New file.
33997         * modules/unictype/property-paired-punctuation: New file.
33998         * modules/unictype/property-left-of-pair: New file.
33999         * modules/unictype/property-combining: New file.
34000         * modules/unictype/property-composite: New file.
34001         * modules/unictype/property-decimal-digit: New file.
34002         * modules/unictype/property-numeric: New file.
34003         * modules/unictype/property-diacritic: New file.
34004         * modules/unictype/property-extender: New file.
34005         * modules/unictype/property-ignorable-control: New file.
34006         * modules/unictype/property-test: New file.
34007         * modules/unictype/property-byname: New file.
34008         * modules/unictype/property-all: New file.
34009         * modules/unictype/scripts: New file.
34010         * modules/unictype/scripts-all: New file.
34011         * modules/unictype/block-of: New file.
34012         * modules/unictype/block-test: New file.
34013         * modules/unictype/block-list: New file.
34014         * modules/unictype/block-all: New file.
34015         * modules/unictype/syntax-c-whitespace: New file.
34016         * modules/unictype/syntax-java-whitespace: New file.
34017         * modules/unictype/syntax-c-ident: New file.
34018         * modules/unictype/syntax-java-ident: New file.
34019         * modules/unictype/ctype-alnum: New file.
34020         * modules/unictype/ctype-alpha: New file.
34021         * modules/unictype/ctype-cntrl: New file.
34022         * modules/unictype/ctype-digit: New file.
34023         * modules/unictype/ctype-graph: New file.
34024         * modules/unictype/ctype-lower: New file.
34025         * modules/unictype/ctype-print: New file.
34026         * modules/unictype/ctype-punct: New file.
34027         * modules/unictype/ctype-space: New file.
34028         * modules/unictype/ctype-upper: New file.
34029         * modules/unictype/ctype-xdigit: New file.
34030         * modules/unictype/ctype-blank: New file.
34031         * lib/unictype/bidi_byname.c: New file.
34032         * lib/unictype/bidi_name.c: New file.
34033         * lib/unictype/bidi_of.c: New file.
34034         * lib/unictype/bidi_test.c: New file.
34035         * lib/unictype/bitmap.h: New file.
34036         * lib/unictype/block_test.c: New file.
34037         * lib/unictype/blocks.c: New file.
34038         * lib/unictype/categ_C.c: New file.
34039         * lib/unictype/categ_Cc.c: New file.
34040         * lib/unictype/categ_Cf.c: New file.
34041         * lib/unictype/categ_Cn.c: New file.
34042         * lib/unictype/categ_Co.c: New file.
34043         * lib/unictype/categ_Cs.c: New file.
34044         * lib/unictype/categ_L.c: New file.
34045         * lib/unictype/categ_Ll.c: New file.
34046         * lib/unictype/categ_Lm.c: New file.
34047         * lib/unictype/categ_Lo.c: New file.
34048         * lib/unictype/categ_Lt.c: New file.
34049         * lib/unictype/categ_Lu.c: New file.
34050         * lib/unictype/categ_M.c: New file.
34051         * lib/unictype/categ_Mc.c: New file.
34052         * lib/unictype/categ_Me.c: New file.
34053         * lib/unictype/categ_Mn.c: New file.
34054         * lib/unictype/categ_N.c: New file.
34055         * lib/unictype/categ_Nd.c: New file.
34056         * lib/unictype/categ_Nl.c: New file.
34057         * lib/unictype/categ_No.c: New file.
34058         * lib/unictype/categ_P.c: New file.
34059         * lib/unictype/categ_Pc.c: New file.
34060         * lib/unictype/categ_Pd.c: New file.
34061         * lib/unictype/categ_Pe.c: New file.
34062         * lib/unictype/categ_Pf.c: New file.
34063         * lib/unictype/categ_Pi.c: New file.
34064         * lib/unictype/categ_Po.c: New file.
34065         * lib/unictype/categ_Ps.c: New file.
34066         * lib/unictype/categ_S.c: New file.
34067         * lib/unictype/categ_Sc.c: New file.
34068         * lib/unictype/categ_Sk.c: New file.
34069         * lib/unictype/categ_Sm.c: New file.
34070         * lib/unictype/categ_So.c: New file.
34071         * lib/unictype/categ_Z.c: New file.
34072         * lib/unictype/categ_Zl.c: New file.
34073         * lib/unictype/categ_Zp.c: New file.
34074         * lib/unictype/categ_Zs.c: New file.
34075         * lib/unictype/categ_and.c: New file.
34076         * lib/unictype/categ_and_not.c: New file.
34077         * lib/unictype/categ_byname.c: New file.
34078         * lib/unictype/categ_name.c: New file.
34079         * lib/unictype/categ_none.c: New file.
34080         * lib/unictype/categ_of.c: New file.
34081         * lib/unictype/categ_or.c: New file.
34082         * lib/unictype/categ_test.c: New file.
34083         * lib/unictype/combining.c: New file.
34084         * lib/unictype/ctype_alnum.c: New file.
34085         * lib/unictype/ctype_alpha.c: New file.
34086         * lib/unictype/ctype_blank.c: New file.
34087         * lib/unictype/ctype_cntrl.c: New file.
34088         * lib/unictype/ctype_digit.c: New file.
34089         * lib/unictype/ctype_graph.c: New file.
34090         * lib/unictype/ctype_lower.c: New file.
34091         * lib/unictype/ctype_print.c: New file.
34092         * lib/unictype/ctype_punct.c: New file.
34093         * lib/unictype/ctype_space.c: New file.
34094         * lib/unictype/ctype_upper.c: New file.
34095         * lib/unictype/ctype_xdigit.c: New file.
34096         * lib/unictype/decdigit.c: New file.
34097         * lib/unictype/digit.c: New file.
34098         * lib/unictype/identsyntaxmap.h: New file.
34099         * lib/unictype/mirror.c: New file.
34100         * lib/unictype/numeric.c: New file.
34101         * lib/unictype/pr_alphabetic.c: New file.
34102         * lib/unictype/pr_ascii_hex_digit.c: New file.
34103         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34104         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34105         * lib/unictype/pr_bidi_block_separator.c: New file.
34106         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34107         * lib/unictype/pr_bidi_common_separator.c: New file.
34108         * lib/unictype/pr_bidi_control.c: New file.
34109         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34110         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34111         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34112         * lib/unictype/pr_bidi_european_digit.c: New file.
34113         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34114         * lib/unictype/pr_bidi_left_to_right.c: New file.
34115         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34116         * lib/unictype/pr_bidi_other_neutral.c: New file.
34117         * lib/unictype/pr_bidi_pdf.c: New file.
34118         * lib/unictype/pr_bidi_segment_separator.c: New file.
34119         * lib/unictype/pr_bidi_whitespace.c: New file.
34120         * lib/unictype/pr_byname.c: New file.
34121         * lib/unictype/pr_byname.gperf: New file.
34122         * lib/unictype/pr_combining.c: New file.
34123         * lib/unictype/pr_composite.c: New file.
34124         * lib/unictype/pr_currency_symbol.c: New file.
34125         * lib/unictype/pr_dash.c: New file.
34126         * lib/unictype/pr_decimal_digit.c: New file.
34127         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34128         * lib/unictype/pr_deprecated.c: New file.
34129         * lib/unictype/pr_diacritic.c: New file.
34130         * lib/unictype/pr_extender.c: New file.
34131         * lib/unictype/pr_format_control.c: New file.
34132         * lib/unictype/pr_grapheme_base.c: New file.
34133         * lib/unictype/pr_grapheme_extend.c: New file.
34134         * lib/unictype/pr_grapheme_link.c: New file.
34135         * lib/unictype/pr_hex_digit.c: New file.
34136         * lib/unictype/pr_hyphen.c: New file.
34137         * lib/unictype/pr_id_continue.c: New file.
34138         * lib/unictype/pr_id_start.c: New file.
34139         * lib/unictype/pr_ideographic.c: New file.
34140         * lib/unictype/pr_ids_binary_operator.c: New file.
34141         * lib/unictype/pr_ids_trinary_operator.c: New file.
34142         * lib/unictype/pr_ignorable_control.c: New file.
34143         * lib/unictype/pr_iso_control.c: New file.
34144         * lib/unictype/pr_join_control.c: New file.
34145         * lib/unictype/pr_left_of_pair.c: New file.
34146         * lib/unictype/pr_line_separator.c: New file.
34147         * lib/unictype/pr_logical_order_exception.c: New file.
34148         * lib/unictype/pr_lowercase.c: New file.
34149         * lib/unictype/pr_math.c: New file.
34150         * lib/unictype/pr_non_break.c: New file.
34151         * lib/unictype/pr_not_a_character.c: New file.
34152         * lib/unictype/pr_numeric.c: New file.
34153         * lib/unictype/pr_other_alphabetic.c: New file.
34154         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34155         * lib/unictype/pr_other_grapheme_extend.c: New file.
34156         * lib/unictype/pr_other_id_continue.c: New file.
34157         * lib/unictype/pr_other_id_start.c: New file.
34158         * lib/unictype/pr_other_lowercase.c: New file.
34159         * lib/unictype/pr_other_math.c: New file.
34160         * lib/unictype/pr_other_uppercase.c: New file.
34161         * lib/unictype/pr_paired_punctuation.c: New file.
34162         * lib/unictype/pr_paragraph_separator.c: New file.
34163         * lib/unictype/pr_pattern_syntax.c: New file.
34164         * lib/unictype/pr_pattern_white_space.c: New file.
34165         * lib/unictype/pr_private_use.c: New file.
34166         * lib/unictype/pr_punctuation.c: New file.
34167         * lib/unictype/pr_quotation_mark.c: New file.
34168         * lib/unictype/pr_radical.c: New file.
34169         * lib/unictype/pr_sentence_terminal.c: New file.
34170         * lib/unictype/pr_soft_dotted.c: New file.
34171         * lib/unictype/pr_space.c: New file.
34172         * lib/unictype/pr_terminal_punctuation.c: New file.
34173         * lib/unictype/pr_test.c: New file.
34174         * lib/unictype/pr_titlecase.c: New file.
34175         * lib/unictype/pr_unassigned_code_value.c: New file.
34176         * lib/unictype/pr_unified_ideograph.c: New file.
34177         * lib/unictype/pr_uppercase.c: New file.
34178         * lib/unictype/pr_variation_selector.c: New file.
34179         * lib/unictype/pr_white_space.c: New file.
34180         * lib/unictype/pr_xid_continue.c: New file.
34181         * lib/unictype/pr_xid_start.c: New file.
34182         * lib/unictype/pr_zero_width.c: New file.
34183         * lib/unictype/scripts.c: New file.
34184         * lib/unictype/sy_c_ident.c: New file.
34185         * lib/unictype/sy_c_whitespace.c: New file.
34186         * lib/unictype/sy_java_ident.c: New file.
34187         * lib/unictype/sy_java_whitespace.c: New file.
34188
34189         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34190         Unicode 5.0.0.
34191         * lib/unictype/blocks.h: Likewise.
34192         * lib/unictype/categ_C.h: Likewise.
34193         * lib/unictype/categ_Cc.h: Likewise.
34194         * lib/unictype/categ_Cf.h: Likewise.
34195         * lib/unictype/categ_Cn.h: Likewise.
34196         * lib/unictype/categ_Co.h: Likewise.
34197         * lib/unictype/categ_Cs.h: Likewise.
34198         * lib/unictype/categ_L.h: Likewise.
34199         * lib/unictype/categ_Ll.h: Likewise.
34200         * lib/unictype/categ_Lm.h: Likewise.
34201         * lib/unictype/categ_Lo.h: Likewise.
34202         * lib/unictype/categ_Lt.h: Likewise.
34203         * lib/unictype/categ_Lu.h: Likewise.
34204         * lib/unictype/categ_M.h: Likewise.
34205         * lib/unictype/categ_Mc.h: Likewise.
34206         * lib/unictype/categ_Me.h: Likewise.
34207         * lib/unictype/categ_Mn.h: Likewise.
34208         * lib/unictype/categ_N.h: Likewise.
34209         * lib/unictype/categ_Nd.h: Likewise.
34210         * lib/unictype/categ_Nl.h: Likewise.
34211         * lib/unictype/categ_No.h: Likewise.
34212         * lib/unictype/categ_P.h: Likewise.
34213         * lib/unictype/categ_Pc.h: Likewise.
34214         * lib/unictype/categ_Pd.h: Likewise.
34215         * lib/unictype/categ_Pe.h: Likewise.
34216         * lib/unictype/categ_Pf.h: Likewise.
34217         * lib/unictype/categ_Pi.h: Likewise.
34218         * lib/unictype/categ_Po.h: Likewise.
34219         * lib/unictype/categ_Ps.h: Likewise.
34220         * lib/unictype/categ_S.h: Likewise.
34221         * lib/unictype/categ_Sc.h: Likewise.
34222         * lib/unictype/categ_Sk.h: Likewise.
34223         * lib/unictype/categ_Sm.h: Likewise.
34224         * lib/unictype/categ_So.h: Likewise.
34225         * lib/unictype/categ_Z.h: Likewise.
34226         * lib/unictype/categ_Zl.h: Likewise.
34227         * lib/unictype/categ_Zp.h: Likewise.
34228         * lib/unictype/categ_Zs.h: Likewise.
34229         * lib/unictype/categ_of.h: Likewise.
34230         * lib/unictype/combining.h: Likewise.
34231         * lib/unictype/ctype_alnum.h: Likewise.
34232         * lib/unictype/ctype_alpha.h: Likewise.
34233         * lib/unictype/ctype_blank.h: Likewise.
34234         * lib/unictype/ctype_cntrl.h: Likewise.
34235         * lib/unictype/ctype_digit.h: Likewise.
34236         * lib/unictype/ctype_graph.h: Likewise.
34237         * lib/unictype/ctype_lower.h: Likewise.
34238         * lib/unictype/ctype_print.h: Likewise.
34239         * lib/unictype/ctype_punct.h: Likewise.
34240         * lib/unictype/ctype_space.h: Likewise.
34241         * lib/unictype/ctype_upper.h: Likewise.
34242         * lib/unictype/ctype_xdigit.h: Likewise.
34243         * lib/unictype/decdigit.h: Likewise.
34244         * lib/unictype/digit.h: Likewise.
34245         * lib/unictype/mirror.h: Likewise.
34246         * lib/unictype/numeric.h: Likewise.
34247         * lib/unictype/pr_alphabetic.h: Likewise.
34248         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34249         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34250         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34251         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34252         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34253         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34254         * lib/unictype/pr_bidi_control.h: Likewise.
34255         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34256         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34257         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34258         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34259         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34260         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34261         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34262         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34263         * lib/unictype/pr_bidi_pdf.h: Likewise.
34264         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34265         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34266         * lib/unictype/pr_combining.h: Likewise.
34267         * lib/unictype/pr_composite.h: Likewise.
34268         * lib/unictype/pr_currency_symbol.h: Likewise.
34269         * lib/unictype/pr_dash.h: Likewise.
34270         * lib/unictype/pr_decimal_digit.h: Likewise.
34271         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34272         * lib/unictype/pr_deprecated.h: Likewise.
34273         * lib/unictype/pr_diacritic.h: Likewise.
34274         * lib/unictype/pr_extender.h: Likewise.
34275         * lib/unictype/pr_format_control.h: Likewise.
34276         * lib/unictype/pr_grapheme_base.h: Likewise.
34277         * lib/unictype/pr_grapheme_extend.h: Likewise.
34278         * lib/unictype/pr_grapheme_link.h: Likewise.
34279         * lib/unictype/pr_hex_digit.h: Likewise.
34280         * lib/unictype/pr_hyphen.h: Likewise.
34281         * lib/unictype/pr_id_continue.h: Likewise.
34282         * lib/unictype/pr_id_start.h: Likewise.
34283         * lib/unictype/pr_ideographic.h: Likewise.
34284         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34285         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34286         * lib/unictype/pr_ignorable_control.h: Likewise.
34287         * lib/unictype/pr_iso_control.h: Likewise.
34288         * lib/unictype/pr_join_control.h: Likewise.
34289         * lib/unictype/pr_left_of_pair.h: Likewise.
34290         * lib/unictype/pr_line_separator.h: Likewise.
34291         * lib/unictype/pr_logical_order_exception.h: Likewise.
34292         * lib/unictype/pr_lowercase.h: Likewise.
34293         * lib/unictype/pr_math.h: Likewise.
34294         * lib/unictype/pr_non_break.h: Likewise.
34295         * lib/unictype/pr_not_a_character.h: Likewise.
34296         * lib/unictype/pr_numeric.h: Likewise.
34297         * lib/unictype/pr_other_alphabetic.h: Likewise.
34298         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34299         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34300         * lib/unictype/pr_other_id_continue.h: Likewise.
34301         * lib/unictype/pr_other_id_start.h: Likewise.
34302         * lib/unictype/pr_other_lowercase.h: Likewise.
34303         * lib/unictype/pr_other_math.h: Likewise.
34304         * lib/unictype/pr_other_uppercase.h: Likewise.
34305         * lib/unictype/pr_paired_punctuation.h: Likewise.
34306         * lib/unictype/pr_paragraph_separator.h: Likewise.
34307         * lib/unictype/pr_pattern_syntax.h: Likewise.
34308         * lib/unictype/pr_pattern_white_space.h: Likewise.
34309         * lib/unictype/pr_private_use.h: Likewise.
34310         * lib/unictype/pr_punctuation.h: Likewise.
34311         * lib/unictype/pr_quotation_mark.h: Likewise.
34312         * lib/unictype/pr_radical.h: Likewise.
34313         * lib/unictype/pr_sentence_terminal.h: Likewise.
34314         * lib/unictype/pr_soft_dotted.h: Likewise.
34315         * lib/unictype/pr_space.h: Likewise.
34316         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34317         * lib/unictype/pr_titlecase.h: Likewise.
34318         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34319         * lib/unictype/pr_unified_ideograph.h: Likewise.
34320         * lib/unictype/pr_uppercase.h: Likewise.
34321         * lib/unictype/pr_variation_selector.h: Likewise.
34322         * lib/unictype/pr_white_space.h: Likewise.
34323         * lib/unictype/pr_xid_continue.h: Likewise.
34324         * lib/unictype/pr_xid_start.h: Likewise.
34325         * lib/unictype/pr_zero_width.h: Likewise.
34326         * lib/unictype/scripts.h: Likewise.
34327         * lib/unictype/scripts_byname.gperf: Likewise.
34328         * lib/unictype/sy_c_ident.h: Likewise.
34329         * lib/unictype/sy_c_whitespace.h: Likewise.
34330         * lib/unictype/sy_java_ident.h: Likewise.
34331         * lib/unictype/sy_java_whitespace.h: Likewise.
34332
34333         * lib/unictype/Makefile: New file.
34334         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34335         glibc.
34336         * lib/unictype/3level.h: New file, copied from glibc.
34337         * lib/unictype/3levelbit.h: New file.
34338
34339 2007-11-11  Bruno Haible  <bruno@clisp.org>
34340
34341         * modules/gperf: New file.
34342         * modules/iconv_open (Depends-on): Add it.
34343         (Makefile.am): Remove the GPERF definition.
34344
34345 2007-11-11  Bruno Haible  <bruno@clisp.org>
34346
34347         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34348         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34349
34350 2007-11-11  Bruno Haible  <bruno@clisp.org>
34351
34352         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34353         (usage): Remove function.
34354
34355 2007-11-11  Bruno Haible  <bruno@clisp.org>
34356
34357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34358         gl_FUNC_CEILF_LIBS.
34359         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34360         gl_FUNC_CEIL_LIBS.
34361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34362         gl_FUNC_CEILL_LIBS.
34363         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34364         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34365         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34366
34367 2007-11-11  Bruno Haible  <bruno@clisp.org>
34368
34369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34370         roundf were declared but do not exist on functions.
34371         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34372         roundl were declared but do not exist on functions.
34373         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34374         HAVE_FLOORL_AND_CEILL, respectively.
34375         Needed for Sun C on Solaris 10.
34376
34377 2007-11-11  Bruno Haible  <bruno@clisp.org>
34378
34379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34380         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34381         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34382         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34383         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34384         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34385         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34386         HAVE_DECL_ROUNDF.
34387         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34388         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34390         of HAVE_DECL_ROUND*.
34391         * modules/math (Makefile.am): Update.
34392
34393 2007-11-10  Bruno Haible  <bruno@clisp.org>
34394
34395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34396         ptrdiff_t as m4/intl.m4.
34397
34398 2007-11-10  Jim Meyering  <meyering@redhat.com>
34399
34400         Avoid link failure for the argmatch test.
34401         * tests/test-argmatch.c (usage): Define function to avoid a link
34402         failure: argmatch_die requires a usage function.
34403
34404 2007-11-09  Bruno Haible  <bruno@clisp.org>
34405
34406         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34407         * doc/functions/vsnprintf.texi: Likewise.
34408         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34409         with a size argument < 2.
34410
34411 2007-11-09  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34414         buffer. Fixes an inefficiency introduced on 2007-11-03.
34415
34416 2007-11-09  Bruno Haible  <bruno@clisp.org>
34417
34418         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34419         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34420
34421 2007-11-08  Jim Meyering  <meyering@redhat.com>
34422
34423         Change cache variable name prefix "jm_" to "gl_" everywhere.
34424         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34425         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34426         * m4/uptime.m4: s/gl_/jm_/
34427
34428 2007-11-07  Bruno Haible  <bruno@clisp.org>
34429
34430         Update to GNU gettext 0.17.
34431         * m4/intl.m4: Update to GNU gettext 0.17.
34432         * m4/po.m4: Likewise.
34433         * modules/gettext (Files): Remove m4/ulonglong.m4.
34434         (configure.ac): Require gettext infrastructure from version 0.17.
34435
34436 2007-11-06  Bruno Haible  <bruno@clisp.org>
34437
34438         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34439         symbolic values are not defined in a public header.
34440         * lib/freadable.c (freadable) [QNX]: Likewise.
34441         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34442         * lib/freading.c (freading) [QNX]: Likewise.
34443         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34444         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34445         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34446         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34447         Reported by Alain Magloire.
34448
34449         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34450
34451 2007-11-05  Bruno Haible  <bruno@clisp.org>
34452
34453         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34454         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34455         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34456         Reported by Eric Blake.
34457
34458 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34459             Bruno Haible  <bruno@clisp.org>
34460
34461         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34462         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34463         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34464         (malloc): Undefine also before including <stdlib.h>.
34465         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34466         Needed on OSF/1 4.0.
34467
34468 2007-11-05  Jim Meyering  <meyering@redhat.com>
34469
34470         git-version-gen: sync from coreutils.
34471         * build-aux/git-version-gen: Add comments.
34472         Change the first '-' to '.' in the snapshot version string,
34473         e.g., 6.9-377-08144 -> 6.9.377-08144
34474         Remove first parameter.
34475         Don't declare a version "-dirty" merely because a time
34476         stamp has changed.
34477
34478 2007-11-04  Bruno Haible  <bruno@clisp.org>
34479
34480         * lib/lock.h: Protect all macro definitions containing an 'if'
34481         statement through a "do { ... } while (0)".
34482         * lib/tls.h: Likewise.
34483
34484 2007-11-04  Bruno Haible  <bruno@clisp.org>
34485
34486         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34487
34488 2007-11-04  Bruno Haible  <bruno@clisp.org>
34489
34490         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34491         * modules/fprintf-posix (Depends-on): Add nocrash.
34492         * modules/snprintf-posix (Depends-on): Likewise.
34493         * modules/sprintf-posix (Depends-on): Likewise.
34494         * modules/vasnprintf-posix (Depends-on): Likewise.
34495         * modules/vasprintf-posix (Depends-on): Likewise.
34496         * modules/vfprintf-posix (Depends-on): Likewise.
34497         * modules/vsnprintf-posix (Depends-on): Likewise.
34498         * modules/vsprintf-posix (Depends-on): Likewise.
34499         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34500         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34501         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34502         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34503         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34504         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34505         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34506
34507 2007-11-04  Bruno Haible  <bruno@clisp.org>
34508
34509         * modules/nocrash: New file.
34510         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34511         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34512
34513 2007-11-04  Bruno Haible  <bruno@clisp.org>
34514
34515         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34516         precision handling.
34517         * tests/test-vasprintf-posix.c (test_function): Likewise.
34518         * tests/test-snprintf-posix.h (test_function): Likewise.
34519         * tests/test-sprintf-posix.h (test_function): Likewise.
34520
34521         Fix *printf behaviour for large precisions on mingw and BeOS.
34522         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34523         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34525         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34527         gl_PRINTF_PRECISION and test its result. Invoke
34528         gl_PREREQ_VASNPRINTF_PRECISION.
34529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34532         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34533         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34536         * doc/functions/fprintf.texi: Update.
34537         * doc/functions/printf.texi: Update.
34538         * doc/functions/snprintf.texi: Update.
34539         * doc/functions/sprintf.texi: Update.
34540         * doc/functions/vfprintf.texi: Update.
34541         * doc/functions/vprintf.texi: Update.
34542         * doc/functions/vsnprintf.texi: Update.
34543         * doc/functions/vsprintf.texi: Update.
34544
34545 2007-11-04  Bruno Haible  <bruno@clisp.org>
34546
34547         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34548
34549 2007-11-04  Bruno Haible  <bruno@clisp.org>
34550
34551         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34552         Reported by Sylvain Beucler <beuc@gnu.org>.
34553
34554 2007-11-03  Bruno Haible  <bruno@clisp.org>
34555
34556         * tests/test-fprintf-posix2.sh: New file.
34557         * tests/test-fprintf-posix2.c: New file.
34558         * modules/fprintf-posix-tests (Files): Add them.
34559         (TESTS): Add test-fprintf-posix2.sh.
34560         (configure.ac): Check for getrlimit and setrlimit.
34561         (check_PROGRAMS): Add test-fprintf-posix2.
34562
34563         * tests/test-printf-posix2.sh: New file.
34564         * tests/test-printf-posix2.c: New file.
34565         * modules/printf-posix-tests (Files): Add them.
34566         (TESTS): Add test-printf-posix2.sh.
34567         (configure.ac): Check for getrlimit and setrlimit.
34568         (check_PROGRAMS): Add test-printf-posix2.
34569
34570         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34571         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34572         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34573         (decode_double): New function, copied from decode_long_double.
34574         (scale10_round_decimal_decoded): New function, extracted from
34575         scale10_round_decimal_long_double.
34576         (scale10_round_decimal_long_double): Use it.
34577         (scale10_round_decimal_double): New function.
34578         (floorlog10): New function.
34579         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34581         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34583         gl_PRINTF_ENOMEM and test its result. Invoke
34584         gl_PREREQ_VASNPRINTF_ENOMEM.
34585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34592         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34593         * modules/snprintf-posix (Depends-on): Likewise.
34594         * modules/sprintf-posix (Depends-on): Likewise.
34595         * modules/vasnprintf-posix (Depends-on): Likewise.
34596         * modules/vasprintf-posix (Depends-on): Likewise.
34597         * modules/vfprintf-posix (Depends-on): Likewise.
34598         * modules/vsnprintf-posix (Depends-on): Likewise.
34599         * modules/vsprintf-posix (Depends-on): Likewise.
34600         * doc/functions/fprintf.texi: Update.
34601         * doc/functions/printf.texi: Update.
34602         * doc/functions/snprintf.texi: Update.
34603         * doc/functions/sprintf.texi: Update.
34604         * doc/functions/vfprintf.texi: Update.
34605         * doc/functions/vprintf.texi: Update.
34606         * doc/functions/vsnprintf.texi: Update.
34607         * doc/functions/vsprintf.texi: Update.
34608
34609 2007-11-03  Bruno Haible  <bruno@clisp.org>
34610
34611         * modules/frexp-nolibm-tests: New file.
34612
34613         * modules/frexp-nolibm: New file.
34614         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34615
34616 2007-11-03  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34619         value is C99 compliant.
34620         Needed for OSF/1 5.1.
34621
34622 2007-11-03  Bruno Haible  <bruno@clisp.org>
34623
34624         Fix out-of-memory handling of vasnprintf.
34625         * lib/printf-parse.c: Include <errno.h>.
34626         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34627         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34628         is already set.
34629
34630 2007-11-02  Eric Blake  <ebb9@byu.net>
34631
34632         Fix tests on cygwin.
34633         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34634
34635 2007-11-01  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34638         warning.
34639         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34640         needed for POSIX compatibility.
34641
34642 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34643
34644         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34645         for compatibility with GNU.
34646
34647 2007-11-01  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34650         (putenv): Renamed from rpl_putenv. Change argument type from
34651         'const char *' to 'char *'.
34652         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34653         of defining putenv in config.h, just set REPLACE_PUTENV.
34654         * modules/putenv (Depends-on): Add stdlib.
34655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34656         (Include): Use <stdlib.h>.
34657         * lib/stdlib.in.h (putenv): New declaration.
34658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34659         REPLACE_PUTENV.
34660         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34661         REPLACE_PUTENV.
34662         Needed for MacOS X 10.5.0.
34663         Reported by Peter O'Gorman <peter@pogma.com>.
34664
34665 2007-11-01  Jim Meyering  <meyering@redhat.com>
34666
34667         Treat an empty date string exactly like "0".
34668         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34669         if the remaining date string (to be parsed) is empty, use "0".
34670         Reported by Mischa Molhoek and discussed in this thread:
34671         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34672
34673 2007-10-31  Bruno Haible  <bruno@clisp.org>
34674
34675         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34676         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34677         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34678         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34679         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34680         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34681
34682 2007-10-31  Bruno Haible  <bruno@clisp.org>
34683
34684         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34685         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34686         (AC_TYPE_LONG_LONG_INT): Use it.
34687         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34688         it as well.
34689         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34690         to m4/longlong.m4.
34691         * modules/stdint (Files): Remove m4/ulonglong.m4.
34692         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34693         m4/ulonglong.m4.
34694         * modules/strtoumax (Files): Likewise.
34695
34696 2007-10-30  Bruno Haible  <bruno@clisp.org>
34697
34698         * modules/xvasprintf-posix: New file.
34699         Suggested by Eric Blake.
34700
34701 2007-10-30  Bruno Haible  <bruno@clisp.org>
34702
34703         * modules/xprintf-posix-tests: New file.
34704         * tests/test-xprintf-posix.sh: New file.
34705         * tests/test-xprintf-posix.c: New file.
34706         * tests/test-xfprintf-posix.c: New file.
34707
34708         * modules/xprintf-posix: New file.
34709
34710 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34711
34712         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34713         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34714         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34715
34716 2007-10-29  Bruno Haible  <bruno@clisp.org>
34717
34718         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34719         contain the special marker '_cv_'.
34720         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34721         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34722         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34723         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34724         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34725         Reported by Ralf Wildenhues.
34726
34727 2007-10-29  Bruno Haible  <bruno@clisp.org>
34728
34729         * gnulib-tool (func_import): When --lgpl is not specified, set
34730         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34731         GPLv3.
34732         Reported by Simon Josefsson.
34733
34734 2007-10-28  Bruno Haible  <bruno@clisp.org>
34735
34736         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34737         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34738         HAVE_DECL_ISFINITE.
34739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34740         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34741         HAVE_DECL_ISFINITE.
34742
34743 2007-10-28  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34746         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34747
34748 2007-10-28  Bruno Haible  <bruno@clisp.org>
34749
34750         Fix link errors with Sun C 5.0 on Solaris 10.
34751         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34752         function is declared but not present in the compiler's libm.
34753         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34754         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34755         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34756         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34757         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34758         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34759         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34761         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34762         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34763         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34764         HAVE_DECL_FLOORL.
34765
34766 2007-10-28  Bruno Haible  <bruno@clisp.org>
34767
34768         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34769         gl_FUNC_FLOORL. Cache the result.
34770         (gl_FUNC_FLOORL): Use it.
34771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34772         gl_FUNC_CEILL. Cache the result.
34773         (gl_FUNC_CEILL): Use it.
34774
34775         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34776         gl_FUNC_FLOOR. Cache the result.
34777         (gl_FUNC_FLOOR): Use it.
34778         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34779         gl_FUNC_CEIL. Cache the result.
34780         (gl_FUNC_CEIL): Use it.
34781
34782         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34783         gl_FUNC_FLOORF. Cache the result.
34784         (gl_FUNC_FLOORF): Use it.
34785         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34786         gl_FUNC_CEILF. Cache the result.
34787         (gl_FUNC_CEILF): Use it.
34788
34789 2007-10-28  Bruno Haible  <bruno@clisp.org>
34790
34791         * gnulib-tool: Allow specifying the LGPL version number through
34792         --lgpl=2 or --lgpl=3.
34793         (func_usage): Document --lgpl with argument.
34794         Handle --lgpl=... arguments.
34795         (func_import): Recognize also gl_LGPL calls with an argument. When
34796         --lgpl=2 is used and the module's license is just LGPL, report an
34797         error. Set sed_transform_lib_file according to the lgpl variable. In
34798         the generated files, use --lgpl or gl_LGPL invocations with argument,
34799         if necessary.
34800         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34801         an LGPv2+ license.
34802         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34803         gl_LGPL macro.
34804
34805 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34806             Bruno Haible  <bruno@clisp.org>
34807
34808         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34809         (u16_uctomb_aux): Likewise.
34810         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34811         !HAVE_INLINE.
34812         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34813
34814 2007-10-28  Bruno Haible  <bruno@clisp.org>
34815
34816         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34817         Invoke AM_GETTEXT_OPTION if it exists.
34818         * modules/vasprintf: Likewise.
34819         * modules/verror: Likewise.
34820         * modules/xprintf: Likewise.
34821         * modules/xvasprintf: Likewise.
34822
34823 2007-10-27  Ben Pfaff  <blp@gnu.org>
34824
34825         * lib/math.in.h: Define isfinite macro and prototypes for
34826         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34827         implementations.
34828         * m4/math_h.m4: New substitutions for isfinite module.
34829         * lib/isfinite.c: New file.
34830         * m4/isfinite.m4: New file.
34831         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34832         * modules/isfinite: New file.
34833         * modules/isfinite-tests: New file.
34834         * tests/tests-isfinite.c: New file.
34835         * doc/functions/isfinite.texi: Mention isfinite module.
34836         * MODULES.html.sh: Mention new module.
34837
34838 2007-10-27  Ben Pfaff  <blp@gnu.org>
34839
34840         Ralf Wildenhues reported that Tru64 4.0D declares the round
34841         functions but does not have definitions.
34842         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34843         cannot be found in any library, set the output variable to
34844         "missing" instead of "".
34845         * m4/round.m4: Also use our substitute if we cannot find round in
34846         any library, even if it is declared.
34847         * m4/roundf.m4: Likewise for roundf.
34848         * m4/roundl.m4: Likewise for roundl.
34849         * lib/math.in.h: Undefine roundf, round, roundl before defining
34850         their replacements, to allow for hypothetical systems where these
34851         may be defined as macros but not available in libraries.
34852
34853 2007-10-27  Bruno Haible  <bruno@clisp.org>
34854
34855         * doc/gnulib.texi: Invoke @firstparagraphindent.
34856         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34857         changes in gnulib.
34858         (Source changes): New section.
34859
34860 2007-10-26  Bruno Haible  <bruno@clisp.org>
34861
34862         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34863         borrowed from autoconf.
34864
34865 2007-10-26  Bruno Haible  <bruno@clisp.org>
34866
34867         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34868         strerror returned the empty string. Needed on HP-UX 11.00.
34869
34870 2007-10-24  Micah Cowan  <micah@cowan.name>
34871
34872         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34873         * build-aux/bootstrap: Remove support for now-unnecessary option,
34874         --cvs-user, and envvars CVS_USER, CVS_RSH.
34875
34876 2007-10-24  Jim Meyering  <meyering@redhat.com>
34877
34878         Avoid diagnostics from sha1sum when there is no cached checksum.
34879         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34880         if the po.s1 file hasn't been created yet.
34881
34882         * build-aux/bootstrap: Sync from coreutils:
34883         2007-10-24  Jim Meyering  <meyering@redhat.com>
34884         Get gnulib from the git repository, not from an obsolete cvs one.
34885         * build-aux/bootstrap: Suggestion from Micah Cowan.
34886         2007-10-04  Jim Meyering  <jim@meyering.net>
34887         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34888         (update_po_files): Work also when there are no .po files in po/.
34889
34890 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34891
34892         * README: Append ".git" to git and cg examples.
34893         Problem reported by Benoit Sigoure.
34894
34895 2007-10-23  Micah Cowan  <micah@cowan.name>
34896
34897         * users.txt: Add wget.
34898
34899 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34900
34901         Fix linking of some unistdio tests on FreeBSD.
34902         * modules/unistdio/u16-vsnprintf-tests
34903         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34904         * modules/unistdio/u16-vsprintf-tests
34905         (test_u16_vsnprintf1_LDADD): Likewise.
34906         * modules/unistdio/u32-vsnprintf-tests
34907         (test_u32_vsnprintf1_LDADD): Likewise.
34908         * modules/unistdio/u32-vsprintf-tests
34909         (test_u32_vsprintf1_LDADD): Likewise.
34910         * modules/unistdio/u8-vsnprintf-tests
34911         (test_u8_vsnprintf1_LDADD): Likewise.
34912         * modules/unistdio/u8-vsprintf-tests
34913         (test_u8_vsprintf1_LDADD): Likewise.
34914         * modules/unistdio/ulc-vsnprintf-tests
34915         (test_ulc_vsnprintf1_LDADD): Likewise.
34916         * modules/unistdio/ulc-vsprintf-tests
34917         (test_ulc_vsprintf1_LDADD): Likewise.
34918
34919         Fix linking of some uniconv tests on FreeBSD.
34920         * modules/uniconv/u16-conv-from-enc-tests
34921         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34922         * modules/uniconv/u16-conv-to-enc-tests
34923         (test_u16_conv_to_enc_LDADD): Likewise.
34924         * modules/uniconv/u16-strconv-from-enc-tests
34925         (test_u16_strconv_from_enc_LDADD): Likewise.
34926         * modules/uniconv/u16-strconv-to-enc-tests
34927         (test_u16_strconv_to_enc_LDADD): Likewise.
34928         * modules/uniconv/u32-conv-from-enc-tests
34929         (test_u32_conv_from_enc_LDADD): Likewise.
34930         * modules/uniconv/u32-conv-to-enc-tests
34931         (test_u32_conv_to_enc_LDADD): Likewise.
34932         * modules/uniconv/u32-strconv-from-enc-tests
34933         (test_u32_strconv_from_enc_LDADD): Likewise.
34934         * modules/uniconv/u32-strconv-to-enc-tests
34935         (test_u32_strconv_to_enc_LDADD): Likewise.
34936         * modules/uniconv/u8-conv-from-enc-tests
34937         (test_u8_conv_from_enc_LDADD): Likewise.
34938         * modules/uniconv/u8-conv-to-enc-tests
34939         (test_u8_conv_to_enc_LDADD): Likewise.
34940         * modules/uniconv/u8-strconv-from-enc-tests
34941         (test_u8_strconv_from_enc_LDADD): Likewise.
34942         * modules/uniconv/u8-strconv-to-enc-tests
34943         (test_u8_strconv_to_enc_LDADD): Likewise.
34944
34945 2007-10-22  Bruno Haible  <bruno@clisp.org>
34946
34947         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34948         size.
34949
34950 2007-10-22  Eric Blake  <ebb9@byu.net>
34951
34952         Tweak x*printf documentation.
34953         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34954         variable name and comments.
34955         Suggested by Bruno Haible.
34956
34957 2007-10-22  Bruno Haible  <bruno@clisp.org>
34958
34959         * lib/acl.c (copy_acl): Fix file name in comment.
34960
34961 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34962
34963         Fix Tru64 problem with stdbool.h.
34964         * lib/stdbool.in.h (false, true):
34965         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34966         Don't declare as an enum in this situation; it runs afoul of Tru64.
34967         Problem reported by Steven M. Schweda in
34968         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34969
34970 2007-10-22  Eric Blake  <ebb9@byu.net>
34971
34972         Also wrap vf?printf.
34973         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34974         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34975         (xvprintf, xvfprintf): New functions.
34976
34977 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34978
34979         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34980         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34981
34982         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34983         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34984
34985 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34986
34987         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34988         by Bruno Haible.
34989
34990 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34991
34992         * lib/getloadavg.c
34993         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34994         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34995
34996         * tests/test-i-ring.c: Work for C89.
34997
34998 2007-10-22  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35001         -1u, in preprocessor expression, so that we don't test for the bug
35002         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35004
35005 2007-10-22  Eric Blake  <ebb9@byu.net>
35006
35007         * tests/test-yesno.sh: Silence stderr during test.
35008
35009 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35010
35011         * modules/crypto/gc-camellia: New file.
35012
35013         * m4/gc-camellia.m4: New file.
35014
35015         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35016
35017         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35018
35019 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35020
35021         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35022         --help to stdout.  Reported by sms@antinode.org (Steven
35023         M. Schweda).
35024
35025 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35026
35027         * users.txt: Fix link to libksba.
35028
35029 2007-10-21  Ben Pfaff  <blp@gnu.org>
35030
35031         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35032         round.c roundf implementation that depends on floorf and ceilf to
35033         be tested unconditionally.
35034
35035 2007-10-21  Ben Pfaff  <blp@gnu.org>
35036
35037         * m4/check-libm-func.m4: Removed.
35038         * m4/check-math-lib.m4: New file.
35039         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35040         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35041         definition and lack of AC_LIBOBJ([roundf]).
35042         * m4/roundl.m4: Ditto, and similarly for roundl.
35043         * modules/round: Reference new m4 file.
35044         * modules/roundf: Ditto.
35045         * modules/roundl: Ditto.
35046         * tests/test-round2.c (main): Use ROUND instead of round.
35047         Bug report from Bruno Haible.
35048
35049 2007-10-21  Bruno Haible  <bruno@clisp.org>
35050
35051         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35052         context.
35053
35054 2007-10-21  Bruno Haible  <bruno@clisp.org>
35055
35056         * tests/test-wcwidth.c (main): Allow negative result for some control
35057         characters.
35058
35059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35060         Needed on OSF/1 5.1.
35061
35062 2007-10-21  Bruno Haible  <bruno@clisp.org>
35063
35064         * tests/test-floorf1.c: Include isnanf.h.
35065         (main): Use isnanf() instead of isnan().
35066         * tests/test-ceilf1.c: Include isnanf.h.
35067         (main): Use isnanf() instead of isnan().
35068         * tests/test-truncf1.c: Include isnanf.h.
35069         (main): Use isnanf() instead of isnan().
35070         * tests/test-roundf1.c: Include isnanf.h.
35071         (main): Use isnanf() instead of isnan().
35072
35073 2007-10-21  Eric Blake  <ebb9@byu.net>
35074
35075         * users.txt: Update URL for m4.
35076
35077 2007-10-21  Bruno Haible  <bruno@clisp.org>
35078
35079         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35080
35081 2007-10-21  Bruno Haible  <bruno@clisp.org>
35082
35083         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35084         Git's management files if the CVS files are not present.
35085
35086 2007-10-20  Bruno Haible  <bruno@clisp.org>
35087
35088         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35089         gcc-3.4.x.
35090
35091 2007-10-20  Ben Pfaff  <blp@gnu.org>
35092
35093         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35094         implementations.
35095         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35096         * lib/round.c: New file.
35097         * lib/roundf.c: New file.
35098         * lib/roundl.c: New file.
35099         * m4/round.m4: New file.
35100         * m4/roundf.m4: New file.
35101         * m4/roundl.m4: New file.
35102         * m4/check-libm-func-m4: New file.
35103         * modules/math: Replace round, roundf, roundl related @VARS@ in
35104         math.in.h.
35105         * modules/round: New file.
35106         * modules/round-tests: New file.
35107         * modules/roundf: New file.
35108         * modules/roundf-tests: New file.
35109         * modules/roundl: New file.
35110         * modules/roundl-tests: New file.
35111         * tests/test-round1.c: New file.
35112         * tests/test-round2.c: New file.
35113         * tests/test-roundf1.c: New file.
35114         * tests/test-roundf2.c: New file.
35115         * tests/test-roundl.c: New file.
35116         * doc/functions/round.texi: Mention round module.
35117         * doc/functions/roundf.texi: Mention roundf module.
35118         * doc/functions/roundl.texi: Mention roundl module.
35119         * MODULES.html.sh: Mention new modules.
35120         Thanks to Bruno Haible for suggestions.
35121
35122 2007-10-20  Jim Meyering  <meyering@redhat.com>
35123
35124         * lib/xprintf.c: Include <config.h> unconditionally.
35125
35126         Change xprintf's license to GPL.
35127         * modules/xprintf (License): s/LGPL/GPL/, since this module
35128         depends on modules (exit and exitfail) which are GPL.
35129         Suggestion from Bruno Haible.
35130
35131         xprintf fixes.
35132         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35133         Use a clearer diagnostic.
35134         Patch from Bruno Haible.
35135
35136 2007-10-20  Bruno Haible  <bruno@clisp.org>
35137
35138         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35139         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35141
35142 2007-10-20  Bruno Haible  <bruno@clisp.org>
35143
35144         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35145         precision in the comparison result > x - 1 or similar.
35146         * tests/test-ceilf2.c (correct_result_p): Likewise.
35147         * tests/test-truncf2.c (correct_result_p): Likewise.
35148         * tests/test-trunc2.c (correct_result_p): Likewise.
35149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35150
35151 2007-10-20  Bruno Haible  <bruno@clisp.org>
35152
35153         * modules/ceil: New file.
35154         * m4/ceil.m4: New file.
35155         * doc/functions/ceil.texi: Mention the 'ceil' module.
35156
35157 2007-10-20  Bruno Haible  <bruno@clisp.org>
35158
35159         * modules/floor: New file.
35160         * m4/floor.m4: New file.
35161         * doc/functions/floor.texi: Mention the 'floor' module.
35162
35163 2007-10-20  Bruno Haible  <bruno@clisp.org>
35164
35165         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35166         of %a.
35167         * modules/floorf-tests (Depends-on): Likewise.
35168         * modules/truncf-tests (Depends-on): Likewise.
35169         * modules/trunc-tests (Depends-on): Likewise.
35170         Reported by Ben Pfaff.
35171
35172 2007-10-19  Jim Meyering  <meyering@redhat.com>
35173
35174         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35175         Don't bother testing specific errno values.  Just test ferror.
35176
35177         New module: xprintf
35178         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35179
35180 2007-10-19  Bruno Haible  <bruno@clisp.org>
35181
35182         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35183         syntax.
35184         * modules/javaexec (Makefile.am): Likewise.
35185         * modules/relocatable-prog (Makefile.am): Likewise.
35186         Suggested by Jim Meyering.
35187
35188 2007-10-18  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35191         Reported by Jim Meyering.
35192
35193 2007-10-18  Eric Blake  <ebb9@byu.net>
35194
35195         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35196
35197 2007-10-18  Bruno Haible  <bruno@clisp.org>
35198
35199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35200         the format string into writable memory. Needed in Fortify conditions.
35201
35202 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35203             Bruno Haible  <bruno@clisp.org>
35204
35205         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35206         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35207         * modules/trim (Depends-on): Add mbchar.
35208         (configure.ac): Add gl_FUNC_MBRTOWC.
35209         (Makefile.am): Augment lib_SOURCES.
35210
35211 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35212
35213         Modify glob.c to use fstatat and dirfd, to simplify it.
35214         Suggested by Eric Blake.
35215         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35216         Don't include <stdbool.h>; not used.
35217         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35218         (link_exists_p): Simplify implementation, since we can now assume
35219         dirfd and fstatat.
35220         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35221
35222 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35223
35224         * gnulib-tool (func_get_dependencies): Fix sed script to
35225         match only tests.
35226
35227 2007-10-17  Bruno Haible  <bruno@clisp.org>
35228
35229         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35230         allow locale names without encoding suffix.
35231         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35232         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35233
35234 2007-10-16  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35237         * lib/getgroups.c (getgroups): Likewise.
35238         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35239
35240 2007-10-16  Bruno Haible  <bruno@clisp.org>
35241
35242         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35243         * modules/malloc-posix (License): Likewise.
35244         * modules/realloc-posix (License): Likewise.
35245         * modules/calloc-posix (License): Likewise.
35246         * modules/intprops (License): Change from GPL to LGPL, with
35247         Paul Eggert's approval.
35248
35249 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35250
35251         Merge glibc changes into lib/glob.c.
35252
35253         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35254         2007-10-15 04:59:03 UTC.  Here are the changes:
35255
35256         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35257
35258         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35259
35260         * lib/glob.c: Add some branch prediction throughout.
35261
35262         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35263
35264         [BZ #5103]
35265         * lib/glob.c (glob): Recognize patterns starting \/.
35266
35267         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35268
35269         [BZ #3996]
35270         * lib/glob.c (attribute_hidden): Define if not defined.
35271         (glob): Unescape dirname, filename or username when needed and not
35272         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35273         is NULL.  Handle unescaped [ in pattern without closing ].
35274         Don't pass GLOB_CHECK down to recursive glob for directories.
35275         (__glob_pattern_type): New function.
35276         (__glob_pattern_p): Implement using __glob_pattern_type.
35277         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35278         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35279         Remove unreachable code.
35280
35281         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35282
35283         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35284         explain why there are no leaks.
35285
35286         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35287
35288         [BZ #3253]
35289         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35290         time, rather allocate increasingly bigger arrays of pointers, if
35291         possible with alloca, if too large with malloc.
35292
35293 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35294
35295         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35296         Problem reported by H.Merijn Brand in
35297         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35299         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35300
35301 2007-10-15  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35304         with explicit rpl_ prefix.
35305         * lib/fopen.c (fopen): Likewise.
35306         * lib/freopen.c (freopen): Likewise.
35307         * lib/iconv.c (iconv): Likewise.
35308         * lib/iconv_close.c (iconv_close): Likewise.
35309
35310 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35311
35312         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35313
35314 2007-10-15  Bruno Haible  <bruno@clisp.org>
35315
35316         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35317         <stddef.h> instead of <stdlib.h> since we only need NULL.
35318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35319
35320 2007-10-15  Bruno Haible  <bruno@clisp.org>
35321
35322         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35323         Replace paragraph talking about LIBOBJS.
35324         Reported by Colin Watson <cjwatson@debian.org>.
35325
35326 2007-10-15  Bruno Haible  <bruno@clisp.org>
35327
35328         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35329         <stdlib.h> before using NULL.
35330
35331 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35332
35333         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35334         Reported by Albert Chin <china@thewrittenword.com>.
35335
35336 2007-10-14  Bruno Haible  <bruno@clisp.org>
35337
35338         * modules/iconv_open-utf-tests: New file.
35339         * tests/test-iconv-utf.c: New file.
35340
35341         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35342         * modules/iconv_open-utf: New file.
35343         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35344         (iconv, iconv_close): New declarations.
35345         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35346         be defined.
35347         (iconv_open): Add special handling of conversion between UTF-8 and
35348         UTF-{16,32}{BE,LE}.
35349         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35350         * lib/iconv_close.c: New file.
35351         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35352         gl_FUNC_ICONV_OPEN.
35353         (gl_FUNC_ICONV_OPEN): Use it.
35354         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35355         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35356         and REPLACE_ICONV_UTF.
35357         * modules/iconv_open (Depends-on): Add c-strcase.
35358         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35359         ICONV_CONST.
35360         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35361
35362 2007-10-13  Albert Chin  <china@thewrittenword.com>
35363             Bruno Haible  <bruno@clisp.org>
35364
35365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35366         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35367
35368 2007-10-13  Bruno Haible  <bruno@clisp.org>
35369
35370         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35371         defined, use the ISO C99 inline semantics.
35372         * lib/argp.h (ARGP_EI): Likewise.
35373
35374 2007-10-13  Bruno Haible  <bruno@clisp.org>
35375
35376         Handle 'inline' change in gcc 4.3.0.
35377         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35378         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35379         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35380         argp_fmtstream_point): Disable 'extern' declaration if the function
35381         definition is going to be provided inline.
35382         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35383         semantics, not the ISO C99 inline semantics.
35384         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35385         'extern' declaration if the function definition is going to be provided
35386         inline.
35387         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35388         the GNU C inline semantics, not the ISO C99 inline semantics. With
35389         GCC 4.2, avoid a warning.
35390
35391 2007-10-13  Bruno Haible  <bruno@clisp.org>
35392
35393         * lib/freading.h (freading): Enable the use of __freading for
35394         glibc >= 2.7.
35395         * lib/freading.c (freading): Likewise.
35396
35397 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35398
35399         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35400         "warning: C99 inline functions are not supported; using GNU89".
35401
35402 2007-10-12  Bruno Haible  <bruno@clisp.org>
35403
35404         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35405         of 2.
35406         * tests/test-ceilf2.c: New file.
35407         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35408
35409         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35410         * modules/ceilf-tests: Update.
35411
35412 2007-10-12  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35415         of 2.
35416         * tests/test-floorf2.c: New file.
35417         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35418
35419         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35420         * modules/floorf-tests: Update.
35421
35422 2007-10-12  Bruno Haible  <bruno@clisp.org>
35423
35424         * tests/test-trunc2.c: New file.
35425         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35426
35427         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35428         * modules/trunc-tests: Update.
35429
35430 2007-10-12  Bruno Haible  <bruno@clisp.org>
35431
35432         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35433         of 2.
35434         * tests/test-truncf2.c: New file.
35435         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35436
35437         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35438         * modules/truncf-tests: Update.
35439
35440 2007-10-11  Eric Blake  <ebb9@byu.net>
35441
35442         Don't claim strerror is broken on Interix.
35443         * doc/functions/strerror.texi (strerror): Known broken systems are
35444         now Solaris 8, and not Interix.
35445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35446         Interix on cross-compile.
35447         Reported by Martin Koeppe in
35448         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35449
35450 2007-10-11  Bruno Haible  <bruno@clisp.org>
35451
35452         * modules/i-ring-tests: New file.
35453         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35454         instead of assert.
35455
35456 2007-10-11  Bruno Haible  <bruno@clisp.org>
35457
35458         * modules/filenamecat-tests: New file.
35459         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35460         * lib/filenamecat.c: Remove test code.
35461
35462 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35463
35464         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35465
35466         * lib/strerror.c: Include <string.h> always, to test interface,
35467         and to remove the need for the dummy.
35468         Include intprops.h to compute width instead of doing it ourselves
35469         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35470         (strerror): Define it to return NULL if there's no system strerror.
35471         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35472         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35473         ancient pre-strerror Unix systems well any more.  Saying "unknown
35474         system error" is enough.
35475         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35476         simpler strerror.c implementation.
35477         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35478         Simplify the tests to reflect the simpler strerror implementation.
35479         * modules/strerror (Depends-on): Add intprops.
35480
35481 2007-10-09  Eric Blake  <ebb9@byu.net>
35482
35483         Silence test-fpending.
35484         * modules/fpending-tests (Files): Add wrapper script.
35485         * tests/test-fpending.sh: New file.
35486
35487 2007-10-09  Bruno Haible  <bruno@clisp.org>
35488
35489         * MODULES.html.sh (func_module): Don't create a hyperlink for
35490         function names like 'printf_frexp'.
35491         (Misc): Add crc, memxor.
35492         (Characteristics of floating types): New section.
35493         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35494         isnanf-nolibm, signbit, trunc, truncf, truncl.
35495         (Enhancements for ISO C 99 functions): New subsection Input/output.
35496         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35497         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35498         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35499         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35500         (Enhancements for POSIX:2001 functions): Add chdir-long.
35501         (File system functions): Add areadlink, chdir-safer, read-file.
35502         Remove cycle-check.
35503         (File system as inode set): New section.
35504         (Date and time): Add gethrxtime.
35505         (Multithreading): Add openmp.
35506         (Internationalization functions): Add localename.
35507         (Unicode string functions): Add unistr/u*-mbsnlen.
35508         (Support for maintaining and releasing projects): Add git-version-gen.
35509         (Lone files): Remove directories.
35510
35511 2007-10-08  Ben Pfaff  <blp@gnu.org>
35512
35513         * lib/xmalloca.h: Fix typo in comment.
35514
35515 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35516
35517         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35518         when avoiding problems with integer overflow.  Use a portable test
35519         instead.
35520
35521 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35522
35523         * modules/dummy (License): Change to LGPLv2+.
35524         * modules/float (License): Likewise
35525         * modules/realloc (License): Likewise
35526         * modules/stdlib (License): Likewise
35527
35528 2007-10-07  Bruno Haible  <bruno@clisp.org>
35529
35530         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35531         * floor.c (TWO_MANT_DIG): Likewise.
35532         * ceil.c (TWO_MANT_DIG): Likewise.
35533         Reported by Ben Pfaff.
35534
35535 2007-10-07  Bruno Haible  <bruno@clisp.org>
35536
35537         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35538         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35539         * lib/frexp.c (FUNC): Likewise.
35540         * lib/printf-frexp.h (printf_frexp): Likewise.
35541         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35542         * lib/printf-frexp.c (FUNC): Likewise.
35543         Suggested by Jim Meyering.
35544
35545 2007-10-07  Jim Meyering  <meyering@redhat.com>
35546
35547         Make xnanosleep's integer overflow test more robust.
35548         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35549         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35550
35551 2007-10-07  Bruno Haible  <bruno@clisp.org>
35552
35553         * NEWS: Mention the license change.
35554
35555         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35556         abbreviations in the modules files.
35557
35558         Change copyright notice from GPLv2+ to GPLv3+.
35559         * README: Change copyright notice.
35560         * MODULES.html.sh: Likewise.
35561         * build-aux/bootstrap.conf: Likewise.
35562         * build-aux/config.libpath: Likewise.
35563         * build-aux/csharpcomp.sh.in: Likewise.
35564         * build-aux/csharpexec.sh.in: Likewise.
35565         * build-aux/install-reloc: Likewise.
35566         * build-aux/javacomp.sh.in: Likewise.
35567         * build-aux/javaexec.sh.in: Likewise.
35568         * build-aux/ldd.sh.in: Likewise.
35569         * build-aux/reloc-ldflags: Likewise.
35570         * build-aux/relocatable.sh.in: Likewise.
35571         * build-aux/x-to-1.in: Likewise.
35572         * check-module: Likewise.
35573         * config/srclistvars.sh: Likewise.
35574         * gnulib-tool: Likewise.
35575         * lib/acl-internal.h: Likewise.
35576         * lib/acl.c: Likewise.
35577         * lib/acl.h: Likewise.
35578         * lib/acl_entries.c: Likewise.
35579         * lib/areadlink-with-size.c: Likewise.
35580         * lib/areadlink.c: Likewise.
35581         * lib/areadlink.h: Likewise.
35582         * lib/argmatch.c: Likewise.
35583         * lib/argmatch.h: Likewise.
35584         * lib/argp-ba.c: Likewise.
35585         * lib/argp-eexst.c: Likewise.
35586         * lib/argp-fmtstream.c: Likewise.
35587         * lib/argp-fmtstream.h: Likewise.
35588         * lib/argp-fs-xinl.c: Likewise.
35589         * lib/argp-help.c: Likewise.
35590         * lib/argp-namefrob.h: Likewise.
35591         * lib/argp-parse.c: Likewise.
35592         * lib/argp-pin.c: Likewise.
35593         * lib/argp-pv.c: Likewise.
35594         * lib/argp-pvh.c: Likewise.
35595         * lib/argp-xinl.c: Likewise.
35596         * lib/argp.h: Likewise.
35597         * lib/at-func.c: Likewise.
35598         * lib/atanl.c: Likewise.
35599         * lib/backupfile.c: Likewise.
35600         * lib/backupfile.h: Likewise.
35601         * lib/basename.c: Likewise.
35602         * lib/binary-io.h: Likewise.
35603         * lib/byteswap.in.h: Likewise.
35604         * lib/c-stack.c: Likewise.
35605         * lib/c-stack.h: Likewise.
35606         * lib/c-strcasestr.c: Likewise.
35607         * lib/c-strcasestr.h: Likewise.
35608         * lib/c-strstr.c: Likewise.
35609         * lib/c-strstr.h: Likewise.
35610         * lib/c-strtod.c: Likewise.
35611         * lib/calloc.c: Likewise.
35612         * lib/canon-host.c: Likewise.
35613         * lib/canon-host.h: Likewise.
35614         * lib/canonicalize-lgpl.c: Likewise.
35615         * lib/canonicalize.c: Likewise.
35616         * lib/canonicalize.h: Likewise.
35617         * lib/ceil.c: Likewise.
35618         * lib/ceilf.c: Likewise.
35619         * lib/ceill.c: Likewise.
35620         * lib/chdir-long.c: Likewise.
35621         * lib/chdir-long.h: Likewise.
35622         * lib/chdir-safer.c: Likewise.
35623         * lib/chdir-safer.h: Likewise.
35624         * lib/chown.c: Likewise.
35625         * lib/classpath.c: Likewise.
35626         * lib/classpath.h: Likewise.
35627         * lib/clean-temp.c: Likewise.
35628         * lib/clean-temp.h: Likewise.
35629         * lib/cloexec.c: Likewise.
35630         * lib/close-stream.c: Likewise.
35631         * lib/closein.c: Likewise.
35632         * lib/closein.h: Likewise.
35633         * lib/closeout.c: Likewise.
35634         * lib/closeout.h: Likewise.
35635         * lib/concat-filename.c: Likewise.
35636         * lib/copy-file.c: Likewise.
35637         * lib/copy-file.h: Likewise.
35638         * lib/count-one-bits.h: Likewise.
35639         * lib/crc.c: Likewise.
35640         * lib/crc.h: Likewise.
35641         * lib/creat-safer.c: Likewise.
35642         * lib/csharpcomp.c: Likewise.
35643         * lib/csharpcomp.h: Likewise.
35644         * lib/csharpexec.c: Likewise.
35645         * lib/csharpexec.h: Likewise.
35646         * lib/cycle-check.c: Likewise.
35647         * lib/cycle-check.h: Likewise.
35648         * lib/diacrit.c: Likewise.
35649         * lib/diacrit.h: Likewise.
35650         * lib/diffseq.h: Likewise.
35651         * lib/dirchownmod.c: Likewise.
35652         * lib/dirent.in.h: Likewise.
35653         * lib/dirfd.c: Likewise.
35654         * lib/dirfd.h: Likewise.
35655         * lib/dirname.c: Likewise.
35656         * lib/dirname.h: Likewise.
35657         * lib/dummy.c: Likewise.
35658         * lib/dup-safer.c: Likewise.
35659         * lib/dup2.c: Likewise.
35660         * lib/eealloc.h: Likewise.
35661         * lib/error.c: Likewise.
35662         * lib/error.h: Likewise.
35663         * lib/euidaccess.c: Likewise.
35664         * lib/exclude.c: Likewise.
35665         * lib/exclude.h: Likewise.
35666         * lib/execute.c: Likewise.
35667         * lib/execute.h: Likewise.
35668         * lib/exitfail.c: Likewise.
35669         * lib/exitfail.h: Likewise.
35670         * lib/expl.c: Likewise.
35671         * lib/fatal-signal.c: Likewise.
35672         * lib/fatal-signal.h: Likewise.
35673         * lib/fbufmode.c: Likewise.
35674         * lib/fbufmode.h: Likewise.
35675         * lib/fchdir.c: Likewise.
35676         * lib/fchmodat.c: Likewise.
35677         * lib/fchownat.c: Likewise.
35678         * lib/fcntl--.h: Likewise.
35679         * lib/fcntl-safer.h: Likewise.
35680         * lib/fcntl.in.h: Likewise.
35681         * lib/fd-safer.c: Likewise.
35682         * lib/fflush.c: Likewise.
35683         * lib/file-has-acl.c: Likewise.
35684         * lib/file-set.c: Likewise.
35685         * lib/file-type.c: Likewise.
35686         * lib/file-type.h: Likewise.
35687         * lib/fileblocks.c: Likewise.
35688         * lib/filemode.c: Likewise.
35689         * lib/filemode.h: Likewise.
35690         * lib/filename.h: Likewise.
35691         * lib/filenamecat.c: Likewise.
35692         * lib/filenamecat.h: Likewise.
35693         * lib/findprog.c: Likewise.
35694         * lib/findprog.h: Likewise.
35695         * lib/float.in.h: Likewise.
35696         * lib/floor.c: Likewise.
35697         * lib/floorf.c: Likewise.
35698         * lib/floorl.c: Likewise.
35699         * lib/fopen-safer.c: Likewise.
35700         * lib/fopen.c: Likewise.
35701         * lib/fpending.c: Likewise.
35702         * lib/fpending.h: Likewise.
35703         * lib/fprintf.c: Likewise.
35704         * lib/fprintftime.h: Likewise.
35705         * lib/fpucw.h: Likewise.
35706         * lib/fpurge.c: Likewise.
35707         * lib/fpurge.h: Likewise.
35708         * lib/freadable.c: Likewise.
35709         * lib/freadable.h: Likewise.
35710         * lib/freadahead.c: Likewise.
35711         * lib/freadahead.h: Likewise.
35712         * lib/freading.c: Likewise.
35713         * lib/freading.h: Likewise.
35714         * lib/free.c: Likewise.
35715         * lib/freopen.c: Likewise.
35716         * lib/frexp.c: Likewise.
35717         * lib/frexpl.c: Likewise.
35718         * lib/fseek.c: Likewise.
35719         * lib/fseterr.c: Likewise.
35720         * lib/fseterr.h: Likewise.
35721         * lib/fstatat.c: Likewise.
35722         * lib/fstrcmp.c: Likewise.
35723         * lib/fstrcmp.h: Likewise.
35724         * lib/fsusage.c: Likewise.
35725         * lib/fsusage.h: Likewise.
35726         * lib/ftell.c: Likewise.
35727         * lib/ftello.c: Likewise.
35728         * lib/fts-cycle.c: Likewise.
35729         * lib/fts.c: Likewise.
35730         * lib/fts_.h: Likewise.
35731         * lib/full-read.c: Likewise.
35732         * lib/full-read.h: Likewise.
35733         * lib/full-write.c: Likewise.
35734         * lib/full-write.h: Likewise.
35735         * lib/fwritable.c: Likewise.
35736         * lib/fwritable.h: Likewise.
35737         * lib/fwriteerror.c: Likewise.
35738         * lib/fwriteerror.h: Likewise.
35739         * lib/fwriting.c: Likewise.
35740         * lib/fwriting.h: Likewise.
35741         * lib/gcd.c: Likewise.
35742         * lib/gcd.h: Likewise.
35743         * lib/getcwd.c: Likewise.
35744         * lib/getdate.h: Likewise.
35745         * lib/getdate.y: Likewise.
35746         * lib/getdomainname.c: Likewise.
35747         * lib/getdomainname.h: Likewise.
35748         * lib/getgroups.c: Likewise.
35749         * lib/gethostname.c: Likewise.
35750         * lib/gethrxtime.c: Likewise.
35751         * lib/gethrxtime.h: Likewise.
35752         * lib/getloadavg.c: Likewise.
35753         * lib/getndelim2.c: Likewise.
35754         * lib/getndelim2.h: Likewise.
35755         * lib/getnline.c: Likewise.
35756         * lib/getnline.h: Likewise.
35757         * lib/getopt.c: Likewise.
35758         * lib/getopt.in.h: Likewise.
35759         * lib/getopt1.c: Likewise.
35760         * lib/getopt_int.h: Likewise.
35761         * lib/getpagesize.h: Likewise.
35762         * lib/getsubopt.c: Likewise.
35763         * lib/gettime.c: Likewise.
35764         * lib/getugroups.c: Likewise.
35765         * lib/getugroups.h: Likewise.
35766         * lib/getusershell.c: Likewise.
35767         * lib/gl_anyavltree_list1.h: Likewise.
35768         * lib/gl_anyavltree_list2.h: Likewise.
35769         * lib/gl_anyhash_list1.h: Likewise.
35770         * lib/gl_anyhash_list2.h: Likewise.
35771         * lib/gl_anylinked_list1.h: Likewise.
35772         * lib/gl_anylinked_list2.h: Likewise.
35773         * lib/gl_anyrbtree_list1.h: Likewise.
35774         * lib/gl_anyrbtree_list2.h: Likewise.
35775         * lib/gl_anytree_list1.h: Likewise.
35776         * lib/gl_anytree_list2.h: Likewise.
35777         * lib/gl_anytree_oset.h: Likewise.
35778         * lib/gl_anytreehash_list1.h: Likewise.
35779         * lib/gl_anytreehash_list2.h: Likewise.
35780         * lib/gl_array_list.c: Likewise.
35781         * lib/gl_array_list.h: Likewise.
35782         * lib/gl_array_oset.c: Likewise.
35783         * lib/gl_array_oset.h: Likewise.
35784         * lib/gl_avltree_list.c: Likewise.
35785         * lib/gl_avltree_list.h: Likewise.
35786         * lib/gl_avltree_oset.c: Likewise.
35787         * lib/gl_avltree_oset.h: Likewise.
35788         * lib/gl_avltreehash_list.c: Likewise.
35789         * lib/gl_avltreehash_list.h: Likewise.
35790         * lib/gl_carray_list.c: Likewise.
35791         * lib/gl_carray_list.h: Likewise.
35792         * lib/gl_linked_list.c: Likewise.
35793         * lib/gl_linked_list.h: Likewise.
35794         * lib/gl_linkedhash_list.c: Likewise.
35795         * lib/gl_linkedhash_list.h: Likewise.
35796         * lib/gl_list.c: Likewise.
35797         * lib/gl_list.h: Likewise.
35798         * lib/gl_oset.c: Likewise.
35799         * lib/gl_oset.h: Likewise.
35800         * lib/gl_rbtree_list.c: Likewise.
35801         * lib/gl_rbtree_list.h: Likewise.
35802         * lib/gl_rbtree_oset.c: Likewise.
35803         * lib/gl_rbtree_oset.h: Likewise.
35804         * lib/gl_rbtreehash_list.c: Likewise.
35805         * lib/gl_rbtreehash_list.h: Likewise.
35806         * lib/gl_sublist.c: Likewise.
35807         * lib/gl_sublist.h: Likewise.
35808         * lib/group-member.c: Likewise.
35809         * lib/group-member.h: Likewise.
35810         * lib/hard-locale.c: Likewise.
35811         * lib/hard-locale.h: Likewise.
35812         * lib/hash-pjw.c: Likewise.
35813         * lib/hash-pjw.h: Likewise.
35814         * lib/hash-triple.c: Likewise.
35815         * lib/hash.c: Likewise.
35816         * lib/hash.h: Likewise.
35817         * lib/human.c: Likewise.
35818         * lib/human.h: Likewise.
35819         * lib/i-ring.c: Likewise.
35820         * lib/i-ring.h: Likewise.
35821         * lib/idcache.c: Likewise.
35822         * lib/imaxabs.c: Likewise.
35823         * lib/imaxdiv.c: Likewise.
35824         * lib/inet_pton.c: Likewise.
35825         * lib/inet_pton.h: Likewise.
35826         * lib/intprops.h: Likewise.
35827         * lib/inttostr.c: Likewise.
35828         * lib/inttostr.h: Likewise.
35829         * lib/inttypes.in.h: Likewise.
35830         * lib/isapipe.c: Likewise.
35831         * lib/isdir.c: Likewise.
35832         * lib/isnan.c: Likewise.
35833         * lib/isnan.h: Likewise.
35834         * lib/isnanf.c: Likewise.
35835         * lib/isnanf.h: Likewise.
35836         * lib/isnanl-nolibm.h: Likewise.
35837         * lib/isnanl.c: Likewise.
35838         * lib/isnanl.h: Likewise.
35839         * lib/javacomp.c: Likewise.
35840         * lib/javacomp.h: Likewise.
35841         * lib/javaexec.c: Likewise.
35842         * lib/javaexec.h: Likewise.
35843         * lib/javaversion.c: Likewise.
35844         * lib/javaversion.h: Likewise.
35845         * lib/javaversion.java: Likewise.
35846         * lib/lbrkprop.h: Likewise.
35847         * lib/lchmod.h: Likewise.
35848         * lib/lchown.c: Likewise.
35849         * lib/ldexpl.c: Likewise.
35850         * lib/linebreak.c: Likewise.
35851         * lib/linebreak.h: Likewise.
35852         * lib/linebuffer.c: Likewise.
35853         * lib/linebuffer.h: Likewise.
35854         * lib/locale.in.h: Likewise.
35855         * lib/logl.c: Likewise.
35856         * lib/long-options.c: Likewise.
35857         * lib/long-options.h: Likewise.
35858         * lib/lstat.c: Likewise.
35859         * lib/lstat.h: Likewise.
35860         * lib/math.in.h: Likewise.
35861         * lib/mbchar.c: Likewise.
35862         * lib/mbchar.h: Likewise.
35863         * lib/mbfile.h: Likewise.
35864         * lib/mbiter.h: Likewise.
35865         * lib/mbscasecmp.c: Likewise.
35866         * lib/mbscasestr.c: Likewise.
35867         * lib/mbschr.c: Likewise.
35868         * lib/mbscspn.c: Likewise.
35869         * lib/mbslen.c: Likewise.
35870         * lib/mbsncasecmp.c: Likewise.
35871         * lib/mbsnlen.c: Likewise.
35872         * lib/mbspbrk.c: Likewise.
35873         * lib/mbspcasecmp.c: Likewise.
35874         * lib/mbsrchr.c: Likewise.
35875         * lib/mbssep.c: Likewise.
35876         * lib/mbsspn.c: Likewise.
35877         * lib/mbsstr.c: Likewise.
35878         * lib/mbstok_r.c: Likewise.
35879         * lib/mbswidth.c: Likewise.
35880         * lib/mbswidth.h: Likewise.
35881         * lib/mbuiter.h: Likewise.
35882         * lib/memcasecmp.c: Likewise.
35883         * lib/memcasecmp.h: Likewise.
35884         * lib/memchr.c: Likewise.
35885         * lib/memcmp.c: Likewise.
35886         * lib/memcoll.c: Likewise.
35887         * lib/memcoll.h: Likewise.
35888         * lib/memcpy.c: Likewise.
35889         * lib/memrchr.c: Likewise.
35890         * lib/mkancesdirs.c: Likewise.
35891         * lib/mkdir-p.c: Likewise.
35892         * lib/mkdir-p.h: Likewise.
35893         * lib/mkdir.c: Likewise.
35894         * lib/mkdirat.c: Likewise.
35895         * lib/mkdtemp.c: Likewise.
35896         * lib/mkstemp-safer.c: Likewise.
35897         * lib/mkstemp.c: Likewise.
35898         * lib/modechange.c: Likewise.
35899         * lib/modechange.h: Likewise.
35900         * lib/mountlist.c: Likewise.
35901         * lib/mountlist.h: Likewise.
35902         * lib/mpsort.c: Likewise.
35903         * lib/nanosleep.c: Likewise.
35904         * lib/obstack.c: Likewise.
35905         * lib/obstack.h: Likewise.
35906         * lib/open-safer.c: Likewise.
35907         * lib/open.c: Likewise.
35908         * lib/openat-die.c: Likewise.
35909         * lib/openat-priv.h: Likewise.
35910         * lib/openat-proc.c: Likewise.
35911         * lib/openat.c: Likewise.
35912         * lib/openat.h: Likewise.
35913         * lib/pagealign_alloc.c: Likewise.
35914         * lib/pagealign_alloc.h: Likewise.
35915         * lib/physmem.c: Likewise.
35916         * lib/physmem.h: Likewise.
35917         * lib/pipe-safer.c: Likewise.
35918         * lib/pipe.c: Likewise.
35919         * lib/pipe.h: Likewise.
35920         * lib/posixtm.c: Likewise.
35921         * lib/posixtm.h: Likewise.
35922         * lib/posixver.c: Likewise.
35923         * lib/printf-frexp.c: Likewise.
35924         * lib/printf-frexp.h: Likewise.
35925         * lib/printf-frexpl.c: Likewise.
35926         * lib/printf-frexpl.h: Likewise.
35927         * lib/printf.c: Likewise.
35928         * lib/progname.c: Likewise.
35929         * lib/progname.h: Likewise.
35930         * lib/progreloc.c: Likewise.
35931         * lib/putenv.c: Likewise.
35932         * lib/quote.c: Likewise.
35933         * lib/quote.h: Likewise.
35934         * lib/quotearg.c: Likewise.
35935         * lib/quotearg.h: Likewise.
35936         * lib/raise.c: Likewise.
35937         * lib/readline.c: Likewise.
35938         * lib/readline.h: Likewise.
35939         * lib/readlink.c: Likewise.
35940         * lib/readtokens.c: Likewise.
35941         * lib/readtokens.h: Likewise.
35942         * lib/readtokens0.c: Likewise.
35943         * lib/readtokens0.h: Likewise.
35944         * lib/readutmp.c: Likewise.
35945         * lib/readutmp.h: Likewise.
35946         * lib/realloc.c: Likewise.
35947         * lib/relocwrapper.c: Likewise.
35948         * lib/rename-dest-slash.c: Likewise.
35949         * lib/rename.c: Likewise.
35950         * lib/rmdir.c: Likewise.
35951         * lib/rpmatch.c: Likewise.
35952         * lib/safe-read.c: Likewise.
35953         * lib/safe-read.h: Likewise.
35954         * lib/safe-write.c: Likewise.
35955         * lib/safe-write.h: Likewise.
35956         * lib/same-inode.h: Likewise.
35957         * lib/same.c: Likewise.
35958         * lib/same.h: Likewise.
35959         * lib/save-cwd.c: Likewise.
35960         * lib/save-cwd.h: Likewise.
35961         * lib/savedir.c: Likewise.
35962         * lib/savedir.h: Likewise.
35963         * lib/savewd.c: Likewise.
35964         * lib/savewd.h: Likewise.
35965         * lib/search.in.h: Likewise.
35966         * lib/setenv.c: Likewise.
35967         * lib/setenv.h: Likewise.
35968         * lib/settime.c: Likewise.
35969         * lib/sh-quote.c: Likewise.
35970         * lib/sh-quote.h: Likewise.
35971         * lib/sig2str.c: Likewise.
35972         * lib/sig2str.h: Likewise.
35973         * lib/signal.in.h: Likewise.
35974         * lib/signbitd.c: Likewise.
35975         * lib/signbitf.c: Likewise.
35976         * lib/signbitl.c: Likewise.
35977         * lib/sigprocmask.c: Likewise.
35978         * lib/sincosl.c: Likewise.
35979         * lib/sleep.c: Likewise.
35980         * lib/sprintf.c: Likewise.
35981         * lib/sqrtl.c: Likewise.
35982         * lib/stat-time.h: Likewise.
35983         * lib/stdio--.h: Likewise.
35984         * lib/stdio-safer.h: Likewise.
35985         * lib/stdlib--.h: Likewise.
35986         * lib/stdlib-safer.h: Likewise.
35987         * lib/stdlib.in.h: Likewise.
35988         * lib/stpcpy.c: Likewise.
35989         * lib/stpncpy.c: Likewise.
35990         * lib/strchrnul.c: Likewise.
35991         * lib/strcspn.c: Likewise.
35992         * lib/strerror.c: Likewise.
35993         * lib/strftime.c: Likewise.
35994         * lib/strftime.h: Likewise.
35995         * lib/striconveh.c: Likewise.
35996         * lib/striconveh.h: Likewise.
35997         * lib/striconveha.c: Likewise.
35998         * lib/striconveha.h: Likewise.
35999         * lib/stripslash.c: Likewise.
36000         * lib/strnlen1.c: Likewise.
36001         * lib/strnlen1.h: Likewise.
36002         * lib/strtod.c: Likewise.
36003         * lib/strtoimax.c: Likewise.
36004         * lib/strtok_r.c: Likewise.
36005         * lib/strtol.c: Likewise.
36006         * lib/strtoll.c: Likewise.
36007         * lib/strtoul.c: Likewise.
36008         * lib/strtoull.c: Likewise.
36009         * lib/sysexits.in.h: Likewise.
36010         * lib/tempname.c: Likewise.
36011         * lib/tempname.h: Likewise.
36012         * lib/timespec.h: Likewise.
36013         * lib/tls.c: Likewise.
36014         * lib/tls.h: Likewise.
36015         * lib/tmpdir.c: Likewise.
36016         * lib/tmpdir.h: Likewise.
36017         * lib/tmpfile-safer.c: Likewise.
36018         * lib/tmpfile.c: Likewise.
36019         * lib/trigl.c: Likewise.
36020         * lib/trigl.h: Likewise.
36021         * lib/trim.c: Likewise.
36022         * lib/trim.h: Likewise.
36023         * lib/trunc.c: Likewise.
36024         * lib/truncf.c: Likewise.
36025         * lib/truncl.c: Likewise.
36026         * lib/tsearch.c: Likewise.
36027         * lib/unicodeio.c: Likewise.
36028         * lib/unicodeio.h: Likewise.
36029         * lib/unistd--.h: Likewise.
36030         * lib/unistd-safer.h: Likewise.
36031         * lib/unistdio/ulc-fprintf.c: Likewise.
36032         * lib/unistdio/ulc-vfprintf.c: Likewise.
36033         * lib/unlinkdir.c: Likewise.
36034         * lib/unlinkdir.h: Likewise.
36035         * lib/unlocked-io.h: Likewise.
36036         * lib/unsetenv.c: Likewise.
36037         * lib/userspec.c: Likewise.
36038         * lib/utime.c: Likewise.
36039         * lib/utimecmp.c: Likewise.
36040         * lib/utimecmp.h: Likewise.
36041         * lib/utimens.c: Likewise.
36042         * lib/verify.h: Likewise.
36043         * lib/verror.c: Likewise.
36044         * lib/verror.h: Likewise.
36045         * lib/version-etc-fsf.c: Likewise.
36046         * lib/version-etc.c: Likewise.
36047         * lib/version-etc.h: Likewise.
36048         * lib/vfprintf.c: Likewise.
36049         * lib/vprintf.c: Likewise.
36050         * lib/vsprintf.c: Likewise.
36051         * lib/w32spawn.h: Likewise.
36052         * lib/wait-process.c: Likewise.
36053         * lib/wait-process.h: Likewise.
36054         * lib/wcwidth.c: Likewise.
36055         * lib/write-any-file.c: Likewise.
36056         * lib/xalloc-die.c: Likewise.
36057         * lib/xalloc.h: Likewise.
36058         * lib/xasprintf.c: Likewise.
36059         * lib/xgetcwd.c: Likewise.
36060         * lib/xgetcwd.h: Likewise.
36061         * lib/xgetdomainname.c: Likewise.
36062         * lib/xgetdomainname.h: Likewise.
36063         * lib/xgethostname.c: Likewise.
36064         * lib/xmalloc.c: Likewise.
36065         * lib/xmalloca.c: Likewise.
36066         * lib/xmalloca.h: Likewise.
36067         * lib/xmemcoll.c: Likewise.
36068         * lib/xnanosleep.c: Likewise.
36069         * lib/xreadlink.c: Likewise.
36070         * lib/xreadlink.h: Likewise.
36071         * lib/xsetenv.c: Likewise.
36072         * lib/xsetenv.h: Likewise.
36073         * lib/xstriconv.c: Likewise.
36074         * lib/xstriconv.h: Likewise.
36075         * lib/xstrndup.c: Likewise.
36076         * lib/xstrndup.h: Likewise.
36077         * lib/xstrtod.c: Likewise.
36078         * lib/xstrtod.h: Likewise.
36079         * lib/xstrtol-error.c: Likewise.
36080         * lib/xstrtol.c: Likewise.
36081         * lib/xstrtol.h: Likewise.
36082         * lib/xtime.h: Likewise.
36083         * lib/xvasprintf.c: Likewise.
36084         * lib/xvasprintf.h: Likewise.
36085         * lib/yesno.c: Likewise.
36086         * lib/yesno.h: Likewise.
36087         * posix-modules: Likewise.
36088         * tests/test-alloca-opt.c: Likewise.
36089         * tests/test-arcfour.c: Likewise.
36090         * tests/test-arctwo.c: Likewise.
36091         * tests/test-argmatch.c: Likewise.
36092         * tests/test-argp-2.sh: Likewise.
36093         * tests/test-argp.c: Likewise.
36094         * tests/test-arpa_inet.c: Likewise.
36095         * tests/test-array_list.c: Likewise.
36096         * tests/test-array_oset.c: Likewise.
36097         * tests/test-atexit.c: Likewise.
36098         * tests/test-avltree_list.c: Likewise.
36099         * tests/test-avltree_oset.c: Likewise.
36100         * tests/test-avltreehash_list.c: Likewise.
36101         * tests/test-base64.c: Likewise.
36102         * tests/test-binary-io.c: Likewise.
36103         * tests/test-byteswap.c: Likewise.
36104         * tests/test-c-ctype.c: Likewise.
36105         * tests/test-c-strcasecmp.c: Likewise.
36106         * tests/test-c-strcasestr.c: Likewise.
36107         * tests/test-c-strncasecmp.c: Likewise.
36108         * tests/test-c-strstr.c: Likewise.
36109         * tests/test-canonicalize-lgpl.c: Likewise.
36110         * tests/test-canonicalize.c: Likewise.
36111         * tests/test-carray_list.c: Likewise.
36112         * tests/test-ceilf.c: Likewise.
36113         * tests/test-ceill.c: Likewise.
36114         * tests/test-count-one-bits.c: Likewise.
36115         * tests/test-crc.c: Likewise.
36116         * tests/test-dirname.c: Likewise.
36117         * tests/test-fbufmode.c: Likewise.
36118         * tests/test-fcntl.c: Likewise.
36119         * tests/test-fflush.c: Likewise.
36120         * tests/test-floorf.c: Likewise.
36121         * tests/test-floorl.c: Likewise.
36122         * tests/test-fopen.c: Likewise.
36123         * tests/test-fprintf-posix.c: Likewise.
36124         * tests/test-fprintf-posix.h: Likewise.
36125         * tests/test-fpurge.c: Likewise.
36126         * tests/test-freadable.c: Likewise.
36127         * tests/test-freadahead.c: Likewise.
36128         * tests/test-freading.c: Likewise.
36129         * tests/test-freopen.c: Likewise.
36130         * tests/test-frexp.c: Likewise.
36131         * tests/test-frexpl.c: Likewise.
36132         * tests/test-fseek.c: Likewise.
36133         * tests/test-fseeko.c: Likewise.
36134         * tests/test-fseterr.c: Likewise.
36135         * tests/test-fstrcmp.c: Likewise.
36136         * tests/test-ftell.c: Likewise.
36137         * tests/test-ftello.c: Likewise.
36138         * tests/test-fwritable.c: Likewise.
36139         * tests/test-fwriting.c: Likewise.
36140         * tests/test-getaddrinfo.c: Likewise.
36141         * tests/test-getpass.c: Likewise.
36142         * tests/test-gettimeofday.c: Likewise.
36143         * tests/test-hmac-md5.c: Likewise.
36144         * tests/test-hmac-sha1.c: Likewise.
36145         * tests/test-iconv.c: Likewise.
36146         * tests/test-iconvme.c: Likewise.
36147         * tests/test-inttypes.c: Likewise.
36148         * tests/test-isnan.c: Likewise.
36149         * tests/test-isnanf.c: Likewise.
36150         * tests/test-isnanl-nolibm.c: Likewise.
36151         * tests/test-isnanl.c: Likewise.
36152         * tests/test-isnanl.h: Likewise.
36153         * tests/test-ldexpl.c: Likewise.
36154         * tests/test-linked_list.c: Likewise.
36155         * tests/test-linkedhash_list.c: Likewise.
36156         * tests/test-locale.c: Likewise.
36157         * tests/test-localename.c: Likewise.
36158         * tests/test-lock.c: Likewise.
36159         * tests/test-lseek.c: Likewise.
36160         * tests/test-malloca.c: Likewise.
36161         * tests/test-math.c: Likewise.
36162         * tests/test-mbscasecmp.c: Likewise.
36163         * tests/test-mbscasestr1.c: Likewise.
36164         * tests/test-mbscasestr2.c: Likewise.
36165         * tests/test-mbscasestr3.c: Likewise.
36166         * tests/test-mbscasestr4.c: Likewise.
36167         * tests/test-mbschr.c: Likewise.
36168         * tests/test-mbscspn.c: Likewise.
36169         * tests/test-mbsncasecmp.c: Likewise.
36170         * tests/test-mbspbrk.c: Likewise.
36171         * tests/test-mbspcasecmp.c: Likewise.
36172         * tests/test-mbsrchr.c: Likewise.
36173         * tests/test-mbsspn.c: Likewise.
36174         * tests/test-mbsstr1.c: Likewise.
36175         * tests/test-mbsstr2.c: Likewise.
36176         * tests/test-mbsstr3.c: Likewise.
36177         * tests/test-md5.c: Likewise.
36178         * tests/test-memmem.c: Likewise.
36179         * tests/test-netinet_in.c: Likewise.
36180         * tests/test-open.c: Likewise.
36181         * tests/test-printf-frexp.c: Likewise.
36182         * tests/test-printf-frexpl.c: Likewise.
36183         * tests/test-printf-posix.c: Likewise.
36184         * tests/test-printf-posix.h: Likewise.
36185         * tests/test-rbtree_list.c: Likewise.
36186         * tests/test-rbtree_oset.c: Likewise.
36187         * tests/test-rbtreehash_list.c: Likewise.
36188         * tests/test-read-file.c: Likewise.
36189         * tests/test-rijndael.c: Likewise.
36190         * tests/test-search.c: Likewise.
36191         * tests/test-signbit.c: Likewise.
36192         * tests/test-sleep.c: Likewise.
36193         * tests/test-snprintf-posix.c: Likewise.
36194         * tests/test-snprintf-posix.h: Likewise.
36195         * tests/test-snprintf.c: Likewise.
36196         * tests/test-sprintf-posix.c: Likewise.
36197         * tests/test-sprintf-posix.h: Likewise.
36198         * tests/test-stat-time.c: Likewise.
36199         * tests/test-stdbool.c: Likewise.
36200         * tests/test-stdint.c: Likewise.
36201         * tests/test-stdio.c: Likewise.
36202         * tests/test-stdlib.c: Likewise.
36203         * tests/test-stpncpy.c: Likewise.
36204         * tests/test-strcasestr.c: Likewise.
36205         * tests/test-striconv.c: Likewise.
36206         * tests/test-striconveh.c: Likewise.
36207         * tests/test-striconveha.c: Likewise.
36208         * tests/test-string.c: Likewise.
36209         * tests/test-sys_select.c: Likewise.
36210         * tests/test-sys_socket.c: Likewise.
36211         * tests/test-sys_stat.c: Likewise.
36212         * tests/test-sys_time.c: Likewise.
36213         * tests/test-sysexits.c: Likewise.
36214         * tests/test-time.c: Likewise.
36215         * tests/test-tls.c: Likewise.
36216         * tests/test-trunc.c: Likewise.
36217         * tests/test-truncf.c: Likewise.
36218         * tests/test-truncl.c: Likewise.
36219         * tests/test-unistd.c: Likewise.
36220         * tests/test-vasnprintf-posix.c: Likewise.
36221         * tests/test-vasnprintf-posix2.c: Likewise.
36222         * tests/test-vasnprintf.c: Likewise.
36223         * tests/test-vasprintf-posix.c: Likewise.
36224         * tests/test-vasprintf.c: Likewise.
36225         * tests/test-verify.c: Likewise.
36226         * tests/test-vfprintf-posix.c: Likewise.
36227         * tests/test-vprintf-posix.c: Likewise.
36228         * tests/test-vsnprintf-posix.c: Likewise.
36229         * tests/test-vsnprintf.c: Likewise.
36230         * tests/test-vsprintf-posix.c: Likewise.
36231         * tests/test-wchar.c: Likewise.
36232         * tests/test-wctype.c: Likewise.
36233         * tests/test-wcwidth.c: Likewise.
36234         * tests/test-xstrtol.c: Likewise.
36235         * tests/test-xvasprintf.c: Likewise.
36236         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36237         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36238         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36239         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36240         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36241         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36242         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36243         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36244         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36245         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36246         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36247         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36248         * tests/uniname/test-uninames.c: Likewise.
36249         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36250         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36251         * tests/unistdio/test-u16-printf1.h: Likewise.
36252         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36253         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36254         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36255         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36256         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36257         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36258         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36259         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36260         * tests/unistdio/test-u32-printf1.h: Likewise.
36261         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36262         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36263         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36264         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36265         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36266         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36267         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36268         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36269         * tests/unistdio/test-u8-printf1.h: Likewise.
36270         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36271         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36272         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36273         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36274         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36275         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36276         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36277         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36278         * tests/unistdio/test-ulc-printf1.h: Likewise.
36279         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36280         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36281         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36282         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36283         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36284         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36285         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36286         * tests/uniwidth/test-u16-width.c: Likewise.
36287         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36288         * tests/uniwidth/test-u32-width.c: Likewise.
36289         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36290         * tests/uniwidth/test-u8-width.c: Likewise.
36291         * tests/uniwidth/test-uc_width.c: Likewise.
36292         * config/srclist-update: Likewise.
36293         (fixlicense): Update to GPLv3+.
36294
36295         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36296         * tests/test-tsearch.c: Change copyright notice.
36297
36298         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36299         * lib/c-strcaseeq.h: Change copyright notice.
36300         * lib/streq.h: Likewise.
36301         * lib/uniconv.h: Likewise.
36302         * lib/uniconv/u-conv-from-enc.h: Likewise.
36303         * lib/uniconv/u-conv-to-enc.h: Likewise.
36304         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36305         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36306         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36307         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36308         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36309         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36310         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36311         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36312         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36313         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36314         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36315         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36316         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36317         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36318         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36319         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36320         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36321         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36322         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36323         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36324         * lib/uniname.h: Likewise.
36325         * lib/uniname/uniname.c: Likewise.
36326         * lib/unistdio.h: Likewise.
36327         * lib/unistdio/u-asnprintf.h: Likewise.
36328         * lib/unistdio/u-asprintf.h: Likewise.
36329         * lib/unistdio/u-printf-args.c: Likewise.
36330         * lib/unistdio/u-printf-args.h: Likewise.
36331         * lib/unistdio/u-printf-parse.h: Likewise.
36332         * lib/unistdio/u-snprintf.h: Likewise.
36333         * lib/unistdio/u-sprintf.h: Likewise.
36334         * lib/unistdio/u-vasprintf.h: Likewise.
36335         * lib/unistdio/u-vsnprintf.h: Likewise.
36336         * lib/unistdio/u-vsprintf.h: Likewise.
36337         * lib/unistdio/u16-asnprintf.c: Likewise.
36338         * lib/unistdio/u16-asprintf.c: Likewise.
36339         * lib/unistdio/u16-printf-parse.c: Likewise.
36340         * lib/unistdio/u16-snprintf.c: Likewise.
36341         * lib/unistdio/u16-sprintf.c: Likewise.
36342         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36343         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36344         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36345         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36346         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36347         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36348         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36349         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36350         * lib/unistdio/u16-vasnprintf.c: Likewise.
36351         * lib/unistdio/u16-vasprintf.c: Likewise.
36352         * lib/unistdio/u16-vsnprintf.c: Likewise.
36353         * lib/unistdio/u16-vsprintf.c: Likewise.
36354         * lib/unistdio/u32-asnprintf.c: Likewise.
36355         * lib/unistdio/u32-asprintf.c: Likewise.
36356         * lib/unistdio/u32-printf-parse.c: Likewise.
36357         * lib/unistdio/u32-snprintf.c: Likewise.
36358         * lib/unistdio/u32-sprintf.c: Likewise.
36359         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36360         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36361         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36362         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36363         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36364         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36365         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36366         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36367         * lib/unistdio/u32-vasnprintf.c: Likewise.
36368         * lib/unistdio/u32-vasprintf.c: Likewise.
36369         * lib/unistdio/u32-vsnprintf.c: Likewise.
36370         * lib/unistdio/u32-vsprintf.c: Likewise.
36371         * lib/unistdio/u8-asnprintf.c: Likewise.
36372         * lib/unistdio/u8-asprintf.c: Likewise.
36373         * lib/unistdio/u8-printf-parse.c: Likewise.
36374         * lib/unistdio/u8-snprintf.c: Likewise.
36375         * lib/unistdio/u8-sprintf.c: Likewise.
36376         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36377         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36378         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36379         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36380         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36381         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36382         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36383         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36384         * lib/unistdio/u8-vasnprintf.c: Likewise.
36385         * lib/unistdio/u8-vasprintf.c: Likewise.
36386         * lib/unistdio/u8-vsnprintf.c: Likewise.
36387         * lib/unistdio/u8-vsprintf.c: Likewise.
36388         * lib/unistdio/ulc-asnprintf.c: Likewise.
36389         * lib/unistdio/ulc-asprintf.c: Likewise.
36390         * lib/unistdio/ulc-printf-parse.c: Likewise.
36391         * lib/unistdio/ulc-snprintf.c: Likewise.
36392         * lib/unistdio/ulc-sprintf.c: Likewise.
36393         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36394         * lib/unistdio/ulc-vasprintf.c: Likewise.
36395         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36396         * lib/unistdio/ulc-vsprintf.c: Likewise.
36397         * lib/unistr.h: Likewise.
36398         * lib/unistr/u-cpy-alloc.h: Likewise.
36399         * lib/unistr/u-cpy.h: Likewise.
36400         * lib/unistr/u-endswith.h: Likewise.
36401         * lib/unistr/u-move.h: Likewise.
36402         * lib/unistr/u-set.h: Likewise.
36403         * lib/unistr/u-startswith.h: Likewise.
36404         * lib/unistr/u-stpcpy.h: Likewise.
36405         * lib/unistr/u-stpncpy.h: Likewise.
36406         * lib/unistr/u-strcat.h: Likewise.
36407         * lib/unistr/u-strcpy.h: Likewise.
36408         * lib/unistr/u-strcspn.h: Likewise.
36409         * lib/unistr/u-strdup.h: Likewise.
36410         * lib/unistr/u-strlen.h: Likewise.
36411         * lib/unistr/u-strncat.h: Likewise.
36412         * lib/unistr/u-strncpy.h: Likewise.
36413         * lib/unistr/u-strnlen.h: Likewise.
36414         * lib/unistr/u-strpbrk.h: Likewise.
36415         * lib/unistr/u-strspn.h: Likewise.
36416         * lib/unistr/u-strstr.h: Likewise.
36417         * lib/unistr/u-strtok.h: Likewise.
36418         * lib/unistr/u16-check.c: Likewise.
36419         * lib/unistr/u16-chr.c: Likewise.
36420         * lib/unistr/u16-cmp.c: Likewise.
36421         * lib/unistr/u16-cpy-alloc.c: Likewise.
36422         * lib/unistr/u16-cpy.c: Likewise.
36423         * lib/unistr/u16-endswith.c: Likewise.
36424         * lib/unistr/u16-mblen.c: Likewise.
36425         * lib/unistr/u16-mbsnlen.c: Likewise.
36426         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36427         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36428         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36429         * lib/unistr/u16-mbtouc.c: Likewise.
36430         * lib/unistr/u16-mbtoucr.c: Likewise.
36431         * lib/unistr/u16-move.c: Likewise.
36432         * lib/unistr/u16-next.c: Likewise.
36433         * lib/unistr/u16-prev.c: Likewise.
36434         * lib/unistr/u16-set.c: Likewise.
36435         * lib/unistr/u16-startswith.c: Likewise.
36436         * lib/unistr/u16-stpcpy.c: Likewise.
36437         * lib/unistr/u16-stpncpy.c: Likewise.
36438         * lib/unistr/u16-strcat.c: Likewise.
36439         * lib/unistr/u16-strchr.c: Likewise.
36440         * lib/unistr/u16-strcmp.c: Likewise.
36441         * lib/unistr/u16-strcpy.c: Likewise.
36442         * lib/unistr/u16-strcspn.c: Likewise.
36443         * lib/unistr/u16-strdup.c: Likewise.
36444         * lib/unistr/u16-strlen.c: Likewise.
36445         * lib/unistr/u16-strmblen.c: Likewise.
36446         * lib/unistr/u16-strmbtouc.c: Likewise.
36447         * lib/unistr/u16-strncat.c: Likewise.
36448         * lib/unistr/u16-strncmp.c: Likewise.
36449         * lib/unistr/u16-strncpy.c: Likewise.
36450         * lib/unistr/u16-strnlen.c: Likewise.
36451         * lib/unistr/u16-strpbrk.c: Likewise.
36452         * lib/unistr/u16-strrchr.c: Likewise.
36453         * lib/unistr/u16-strspn.c: Likewise.
36454         * lib/unistr/u16-strstr.c: Likewise.
36455         * lib/unistr/u16-strtok.c: Likewise.
36456         * lib/unistr/u16-to-u32.c: Likewise.
36457         * lib/unistr/u16-to-u8.c: Likewise.
36458         * lib/unistr/u16-uctomb-aux.c: Likewise.
36459         * lib/unistr/u16-uctomb.c: Likewise.
36460         * lib/unistr/u32-check.c: Likewise.
36461         * lib/unistr/u32-chr.c: Likewise.
36462         * lib/unistr/u32-cmp.c: Likewise.
36463         * lib/unistr/u32-cpy-alloc.c: Likewise.
36464         * lib/unistr/u32-cpy.c: Likewise.
36465         * lib/unistr/u32-endswith.c: Likewise.
36466         * lib/unistr/u32-mblen.c: Likewise.
36467         * lib/unistr/u32-mbsnlen.c: Likewise.
36468         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36469         * lib/unistr/u32-mbtouc.c: Likewise.
36470         * lib/unistr/u32-mbtoucr.c: Likewise.
36471         * lib/unistr/u32-move.c: Likewise.
36472         * lib/unistr/u32-next.c: Likewise.
36473         * lib/unistr/u32-prev.c: Likewise.
36474         * lib/unistr/u32-set.c: Likewise.
36475         * lib/unistr/u32-startswith.c: Likewise.
36476         * lib/unistr/u32-stpcpy.c: Likewise.
36477         * lib/unistr/u32-stpncpy.c: Likewise.
36478         * lib/unistr/u32-strcat.c: Likewise.
36479         * lib/unistr/u32-strchr.c: Likewise.
36480         * lib/unistr/u32-strcmp.c: Likewise.
36481         * lib/unistr/u32-strcpy.c: Likewise.
36482         * lib/unistr/u32-strcspn.c: Likewise.
36483         * lib/unistr/u32-strdup.c: Likewise.
36484         * lib/unistr/u32-strlen.c: Likewise.
36485         * lib/unistr/u32-strmblen.c: Likewise.
36486         * lib/unistr/u32-strmbtouc.c: Likewise.
36487         * lib/unistr/u32-strncat.c: Likewise.
36488         * lib/unistr/u32-strncmp.c: Likewise.
36489         * lib/unistr/u32-strncpy.c: Likewise.
36490         * lib/unistr/u32-strnlen.c: Likewise.
36491         * lib/unistr/u32-strpbrk.c: Likewise.
36492         * lib/unistr/u32-strrchr.c: Likewise.
36493         * lib/unistr/u32-strspn.c: Likewise.
36494         * lib/unistr/u32-strstr.c: Likewise.
36495         * lib/unistr/u32-strtok.c: Likewise.
36496         * lib/unistr/u32-to-u16.c: Likewise.
36497         * lib/unistr/u32-to-u8.c: Likewise.
36498         * lib/unistr/u32-uctomb.c: Likewise.
36499         * lib/unistr/u8-check.c: Likewise.
36500         * lib/unistr/u8-chr.c: Likewise.
36501         * lib/unistr/u8-cmp.c: Likewise.
36502         * lib/unistr/u8-cpy-alloc.c: Likewise.
36503         * lib/unistr/u8-cpy.c: Likewise.
36504         * lib/unistr/u8-endswith.c: Likewise.
36505         * lib/unistr/u8-mblen.c: Likewise.
36506         * lib/unistr/u8-mbsnlen.c: Likewise.
36507         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36508         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36509         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36510         * lib/unistr/u8-mbtouc.c: Likewise.
36511         * lib/unistr/u8-mbtoucr.c: Likewise.
36512         * lib/unistr/u8-move.c: Likewise.
36513         * lib/unistr/u8-next.c: Likewise.
36514         * lib/unistr/u8-prev.c: Likewise.
36515         * lib/unistr/u8-set.c: Likewise.
36516         * lib/unistr/u8-startswith.c: Likewise.
36517         * lib/unistr/u8-stpcpy.c: Likewise.
36518         * lib/unistr/u8-stpncpy.c: Likewise.
36519         * lib/unistr/u8-strcat.c: Likewise.
36520         * lib/unistr/u8-strchr.c: Likewise.
36521         * lib/unistr/u8-strcmp.c: Likewise.
36522         * lib/unistr/u8-strcpy.c: Likewise.
36523         * lib/unistr/u8-strcspn.c: Likewise.
36524         * lib/unistr/u8-strdup.c: Likewise.
36525         * lib/unistr/u8-strlen.c: Likewise.
36526         * lib/unistr/u8-strmblen.c: Likewise.
36527         * lib/unistr/u8-strmbtouc.c: Likewise.
36528         * lib/unistr/u8-strncat.c: Likewise.
36529         * lib/unistr/u8-strncmp.c: Likewise.
36530         * lib/unistr/u8-strncpy.c: Likewise.
36531         * lib/unistr/u8-strnlen.c: Likewise.
36532         * lib/unistr/u8-strpbrk.c: Likewise.
36533         * lib/unistr/u8-strrchr.c: Likewise.
36534         * lib/unistr/u8-strspn.c: Likewise.
36535         * lib/unistr/u8-strstr.c: Likewise.
36536         * lib/unistr/u8-strtok.c: Likewise.
36537         * lib/unistr/u8-to-u16.c: Likewise.
36538         * lib/unistr/u8-to-u32.c: Likewise.
36539         * lib/unistr/u8-uctomb-aux.c: Likewise.
36540         * lib/unistr/u8-uctomb.c: Likewise.
36541         * lib/unitypes.h: Likewise.
36542         * lib/uniwidth.h: Likewise.
36543         * lib/uniwidth/cjk.h: Likewise.
36544         * lib/uniwidth/u16-strwidth.c: Likewise.
36545         * lib/uniwidth/u16-width.c: Likewise.
36546         * lib/uniwidth/u32-strwidth.c: Likewise.
36547         * lib/uniwidth/u32-width.c: Likewise.
36548         * lib/uniwidth/u8-strwidth.c: Likewise.
36549         * lib/uniwidth/u8-width.c: Likewise.
36550         * lib/uniwidth/width.c: Likewise.
36551
36552 2007-10-07  Bruno Haible  <bruno@clisp.org>
36553
36554         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36555         The file is still under LGPL (see modules/inttypes).
36556
36557 2007-10-06  Bruno Haible  <bruno@clisp.org>
36558
36559         * modules/trunc (Dependencies): Add 'extensions'.
36560         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36561         Reported by Ben Pfaff <blp@gnu.org>.
36562
36563 2007-10-06  Bruno Haible  <bruno@clisp.org>
36564
36565         * modules/freopen-tests: New file.
36566         * tests/test-freopen.c: New file.
36567
36568         * modules/fopen-tests: New file.
36569         * tests/test-fopen.c: New file.
36570
36571         * modules/fopen: New file.
36572         * lib/fopen.c: New file.
36573         * m4/fopen.m4: New file.
36574         * modules/freopen: New file.
36575         * lib/freopen.c: New file.
36576         * m4/freopen.m4: New file.
36577         * lib/stdio.in.h (fopen, freopen): New declarations.
36578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36579         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36580         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36581         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36582         * doc/functions/fopen.texi: Mention the 'fopen' module.
36583         * doc/functions/freopen.texi: Mention the 'freopen' module.
36584
36585 2007-10-06  Bruno Haible  <bruno@clisp.org>
36586
36587         * modules/open-tests: New file.
36588         * tests/test-open.c: New file.
36589
36590         * modules/open: New file.
36591         * lib/open.c: New file.
36592         * m4/open.m4: New file.
36593         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36594         lib/open.c does.
36595         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36596         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36597         macros.
36598         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36599         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36600         REPLACE_OPEN.
36601         * doc/functions/open.texi: Mention the 'open' module.
36602
36603 2007-10-04  Bruno Haible  <bruno@clisp.org>
36604
36605         * modules/ceill-tests: New file.
36606         * tests/test-ceill.c: New file.
36607
36608         * modules/ceill: New file.
36609         * lib/ceill.c: Replace entire file.
36610         * m4/ceill.m4: New file.
36611         * lib/math.in.h (ceill): Replace declaration.
36612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36613         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36614         * doc/functions/ceill.texi: Mention the 'ceill' module.
36615         * modules/mathl (Files): Remove lib/ceill.c.
36616         (Depends-on): Add ceill.
36617
36618 2007-10-04  Bruno Haible  <bruno@clisp.org>
36619
36620         * modules/ceilf-tests: New file.
36621         * tests/test-ceilf.c: New file.
36622
36623         * modules/ceilf: New file.
36624         * lib/ceil.c: New file.
36625         * lib/ceilf.c: New file.
36626         * m4/ceilf.m4: New file.
36627         * lib/math.in.h (ceilf): New declaration.
36628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36629         HAVE_DECL_CEILF.
36630         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36631         HAVE_DECL_CEILF.
36632         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36633
36634 2007-10-04  Bruno Haible  <bruno@clisp.org>
36635
36636         * modules/floorl-tests: New file.
36637         * tests/test-floorl.c: New file.
36638
36639         * modules/floorl: New file.
36640         * lib/floorl.c: Replace entire file.
36641         * m4/floorl.m4: New file.
36642         * lib/math.in.h (floorl): Replace declaration.
36643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36644         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36645         * doc/functions/floorl.texi: Mention the 'floorl' module.
36646         * modules/mathl (Files): Remove lib/floorl.c.
36647         (Depends-on): Add floorl.
36648
36649 2007-10-04  Bruno Haible  <bruno@clisp.org>
36650
36651         * modules/floorf-tests: New file.
36652         * tests/test-floorf.c: New file.
36653
36654         * modules/floorf: New file.
36655         * lib/floor.c: New file.
36656         * lib/floorf.c: New file.
36657         * m4/floorf.m4: New file.
36658         * lib/math.in.h (floorf): New declaration.
36659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36660         HAVE_DECL_FLOORF.
36661         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36662         HAVE_DECL_FLOORF.
36663         * doc/functions/floorf.texi: Mention the 'floorf' module.
36664
36665 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36666             Bruno Haible  <bruno@clisp.org>
36667
36668         Advertise for the Git server instead of the CVS server.
36669         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36670         repository instead of the CVS one.
36671         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36672         about all VCS systems generically.
36673         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36674
36675 2007-10-04  Bruno Haible  <bruno@clisp.org>
36676
36677         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36678         means.
36679         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36680
36681 2007-10-04  Bruno Haible  <bruno@clisp.org>
36682
36683         * modules/truncl-tests: New file.
36684         * tests/test-truncl.c: New file.
36685
36686         * modules/truncl: New file.
36687         * lib/truncl.c: New file.
36688         * m4/truncl.m4: New file.
36689         * lib/math.in.h (truncl): New declaration.
36690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36691         HAVE_DECL_TRUNCL.
36692         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36693         HAVE_DECL_TRUNCL.
36694         * doc/functions/truncl.texi: Mention the 'truncl' module.
36695
36696 2007-10-04  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/truncf-tests: New file.
36699         * tests/test-truncf.c: New file.
36700
36701         * modules/truncf: New file.
36702         * lib/trunc.c: Make paramerizable through USE_* macros.
36703         * lib/truncf.c: New file.
36704         * m4/truncf.m4: New file.
36705         * lib/math.in.h (truncf): New declaration.
36706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36707         HAVE_DECL_TRUNCF.
36708         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36709         HAVE_DECL_TRUNCF.
36710         * doc/functions/truncf.texi: Mention the 'truncf' module.
36711
36712 2007-10-03  Bruno Haible  <bruno@clisp.org>
36713
36714         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36715         augmentation also for tests modules.
36716         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36717         * modules/atexit-tests (Makefile.am): Likewise.
36718         * modules/binary-io-tests (Makefile.am): Likewise.
36719         * modules/c-strcase-tests (Makefile.am): Likewise.
36720         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36721         * modules/canonicalize-tests (Makefile.am): Likewise.
36722         * modules/closein-tests (Makefile.am): Likewise.
36723         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36724         * modules/freadahead-tests (Makefile.am): Likewise.
36725         * modules/fseek-tests (Makefile.am): Likewise.
36726         * modules/fseeko-tests (Makefile.am): Likewise.
36727         * modules/ftell-tests (Makefile.am): Likewise.
36728         * modules/ftello-tests (Makefile.am): Likewise.
36729         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36730         * modules/isnanl-tests (Makefile.am): Likewise.
36731         * modules/lseek-tests (Makefile.am): Likewise.
36732         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36733         * modules/mbscasestr-tests (Makefile.am): Likewise.
36734         * modules/mbschr-tests (Makefile.am): Likewise.
36735         * modules/mbscspn-tests (Makefile.am): Likewise.
36736         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36737         * modules/mbspbrk-tests (Makefile.am): Likewise.
36738         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36739         * modules/mbsrchr-tests (Makefile.am): Likewise.
36740         * modules/mbsspn-tests (Makefile.am): Likewise.
36741         * modules/mbsstr-tests (Makefile.am): Likewise.
36742         * modules/printf-posix-tests (Makefile.am): Likewise.
36743         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36744         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36745         * modules/tsearch-tests (Makefile.am): Likewise.
36746         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36747         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36748         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36749         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36750         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36751         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36752         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36753         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36754         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36755         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36756         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36757         * modules/xstrtol-tests (Makefile.am): Likewise.
36758         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36759         * modules/yesno-tests (Makefile.am): Likewise.
36760
36761 2007-10-03  Bruno Haible  <bruno@clisp.org>
36762
36763         * modules/trunc-tests: New file.
36764         * tests/test-trunc.c: New file.
36765
36766         * modules/trunc: New file.
36767         * lib/trunc.c: New file.
36768         * m4/trunc.m4: New file.
36769         * lib/math.in.h (trunc): New declaration.
36770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36771         HAVE_DECL_TRUNC.
36772         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36773         HAVE_DECL_TRUNC.
36774         * doc/functions/trunc.texi: Mention the 'trunc' module.
36775
36776 2007-10-03  Bruno Haible  <bruno@clisp.org>
36777
36778         * tests/test-fpending.c: New file, mostly copied
36779         from coreutils/lib/t-fpending.c.
36780         * modules/fpending-tests: New file.
36781
36782 2007-10-03  Bruno Haible  <bruno@clisp.org>
36783
36784         Port the stdio extensions to QNX (untested).
36785         * lib/fseterr.c (fseterr): Add support for QNX.
36786         * lib/fbufmode.c (fbufmode): Likewise.
36787         * lib/freadable.c (freadable): Likewise.
36788         * lib/fwritable.c (fwritable): Likewise.
36789         * lib/freading.c (freading): Likewise.
36790         * lib/fwriting.c (fwriting): Likewise.
36791         * lib/freadahead.c (freadahed): Likewise.
36792         * lib/fpurge.c (fpurge): Likewise.
36793         * lib/fseeko.c (rpl_fseeko): Likewise.
36794
36795 2007-10-03  Bruno Haible  <bruno@clisp.org>
36796             Jim Meyering  <jim@meyering.net>
36797             Eric Blake  <ebb9@byu.net>
36798
36799         * doc/relocatable.texi: Use @command instead of @program.
36800
36801 2007-10-02  Jim Meyering  <jim@meyering.net>
36802
36803         Perform one more "_.h" -> ".in.h" substitution.
36804         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36805         instead of unistd_.h here, too.
36806
36807 2007-10-01  Bruno Haible  <bruno@clisp.org>
36808
36809         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36810         Needed for the alloca-opt module.
36811
36812 2007-09-30  Bruno Haible  <bruno@clisp.org>
36813
36814         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36815         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36816         alloca_.h.
36817         * lib/argz.in.h: Renamed from lib/argz_.h.
36818         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36819         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36820         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36821         byteswap_.h.
36822         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36823         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36824         dirent_.h.
36825         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36826         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36827         fcntl_.h.
36828         * lib/float.in.h: Renamed from lib/float_.h.
36829         * modules/float (Files, Makefile.am): Use float.in.h instead of
36830         float_.h.
36831         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36832         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36833         fnmatch_.h.
36834         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36835         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36836         getopt_.h.
36837         * lib/glob.in.h: Renamed from lib/glob_.h.
36838         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36839         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36840         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36841         iconv_.h.
36842         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36843         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36844         inttypes_.h.
36845         * lib/locale.in.h: Renamed from lib/locale_.h.
36846         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36847         locale_.h.
36848         * lib/math.in.h: Renamed from lib/math_.h.
36849         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36850         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36851         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36852         of netinet_in_.h. Add dependency.
36853         * lib/poll.in.h: Renamed from lib/poll_.h.
36854         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36855         * lib/search.in.h: Renamed from lib/search_.h.
36856         * modules/search (Files, Makefile.am): Use search.in.h instead of
36857         search_.h.
36858         * lib/signal.in.h: Renamed from lib/signal_.h.
36859         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36860         _signal.h.
36861         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36862         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36863         stdbool_.h.
36864         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36865         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36866         stdint_.h.
36867         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36868         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36869         stdio_.h.
36870         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36871         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36872         stdlib_.h.
36873         * lib/string.in.h: Renamed from lib/string_.h.
36874         * modules/string (Files, Makefile.am): Use string.in.h instead of
36875         string_.h.
36876         * doc/gnulib-tool.texi (Initial import): Update.
36877         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36878         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36879         of sys_select_.h. Add dependency.
36880         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36881         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36882         of sys_socket_.h.
36883         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36884         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36885         sys_stat_.h.
36886         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36887         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36888         sys_time_.h.
36889         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36890         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36891         sysexits_.h.
36892         * lib/time.in.h: Renamed from lib/time_.h.
36893         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36894         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36895         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36896         unistd_.h.
36897         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36898         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36899         wchar_.h.
36900         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36901         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36902         wctype_.h.
36903         * build-aux/bootstrap (slurp): Update.
36904         * lib/.cppi-disable: Update.
36905
36906 2007-09-30  Bruno Haible  <bruno@clisp.org>
36907
36908         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36909         Needed on BeOS.
36910
36911 2007-09-30  Bruno Haible  <bruno@clisp.org>
36912
36913         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36914
36915 2007-09-29  Bruno Haible  <bruno@clisp.org>
36916
36917         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36918
36919 2007-09-29  Bruno Haible  <bruno@clisp.org>
36920
36921         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36922         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36923         * build-aux/install-reloc: Compile also areadlink.c.
36924         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36925
36926 2007-09-29  Bruno Haible  <bruno@clisp.org>
36927
36928         * gnulib-tool (func_emit_initmacro_done): Indentation.
36929
36930 2007-09-29  Bruno Haible  <bruno@clisp.org>
36931
36932         * README: Add CVS checkout update instructions.
36933         Info from Bob Proulx <bob@proulx.com>.
36934
36935 2007-09-28  Eric Blake  <ebb9@byu.net>
36936
36937         Provide move-if-change.
36938         * build-aux/move-if-change: New file, based on best practice
36939         rather than any canonical upstream location.
36940
36941 2007-09-28  Jim Meyering  <jim@meyering.net>
36942
36943         Fix canonicalize loop-detection corner case.
36944         Do not attempt to stat the symlink values stored via seen_triple.
36945         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36946         on linux-2.6.18, (but not 2.6.22).
36947         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36948         triple_compare.  The former compares dev,ino,filename, while the latter
36949         would actually stat dirname(filename) when dev and ino were equal.
36950         * lib/hash-triple.c: Install <string.h>.
36951         (STREQ): Define.
36952         (triple_compare_ino_str): New function.
36953         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36954
36955 2007-09-28  Eric Blake  <ebb9@byu.net>
36956
36957         Enforce that AC_REPLACE_FUNCS files exist.
36958         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36959         override check for typos.
36960
36961         Fix test-closein on Solaris 10.
36962         * tests/test-closein.c (main): Don't assume stdin can be inherited
36963         closed on all systems.
36964         * tests/test-closein.sh: Likewise.
36965         Reported by Piotr Tarnowski.
36966
36967 2007-09-28  Jim Meyering  <jim@meyering.net>
36968
36969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36970
36971 2007-09-27  Jim Meyering  <jim@meyering.net>
36972
36973         canonicalize: Avoid a false-positive cycle failure.
36974         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36975         Sort.  Remove cycle-check.
36976         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36977         not cycle-check.h.
36978         (seen_triple): New function.
36979         (canonicalize_filename_mode): Use it instead of cycle-check.
36980         * tests/test-canonicalize.c: Add a test for this bug.
36981         * tests/test-canonicalize.sh: Set up and run the test.
36982
36983         New module, file-set, from coreutils.
36984         * modules/file-set: Define it.
36985         * lib/file-set.c, lib/file-set.h: Implement.
36986
36987         New module, hash-triple, from coreutils.
36988         * modules/hash-triple: Define it.
36989         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36990
36991 2007-09-25  Eric Blake  <ebb9@byu.net>
36992
36993         Fix strerror on Interix.
36994         * lib/string_.h (strerror): Declare replacement.
36995         * doc/functions/strerror.texi (strerror): Document the Interix
36996         shortcoming.
36997         * modules/string (Makefile.am): Support new hooks.
36998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36999         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37000         gl_FUNC_STRERROR_SEPARATE.
37001         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37002         * lib/strerror.c (rpl_strerror): Provide replacement.
37003         * modules/strerror (Depends-on): Add string.
37004         (configure.ac): Detect use of module.
37005         * tests/test-strerror.c: New file.
37006         * modules/strerror-tests: New test module.
37007         * modules/argp (Depends-on): Add strerror.
37008         * modules/error (Depends-on): Likewise.
37009         Reported by Martin Koeppe.
37010
37011 2007-09-24  Bruno Haible  <bruno@clisp.org>
37012
37013         * README: Update git instructions.
37014
37015 2007-09-24  Eric Blake  <ebb9@byu.net>
37016
37017         Revert fpending breakage from 2007-09-08.
37018         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37019         __fpending.c.
37020
37021 2007-09-24  Jim Meyering  <jim@meyering.net>
37022
37023         filenamecat.c: Add a test.
37024         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37025         showing how the function works when DIR is the empty string.
37026
37027 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37028
37029         * tests/test-canonicalize.sh: Turn on executable bit.
37030
37031 2007-09-19  Eric Blake  <ebb9@byu.net>
37032
37033         * README: Update CVS instructions.
37034
37035 2007-09-18  Bruno Haible  <bruno@clisp.org>
37036
37037         * modules/areadlink: New file.
37038         * lib/areadlink.h (areadlink): New declaration.
37039         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37040
37041 2007-09-17  Jim Meyering  <jim@meyering.net>
37042
37043         * lib/savewd.c (ESTALE) [!defined]: Define.
37044         Reported to be required on Interix by Martin Koeppe.
37045
37046 2007-09-17  Bruno Haible  <bruno@clisp.org>
37047
37048         * gnulib-tool (func_version): Use $version.
37049
37050 2007-09-16  Bruno Haible  <bruno@clisp.org>
37051
37052         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37053         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37054         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37055         Reported by Greg Schafer <gschafer@zip.com.au>.
37056
37057 2007-09-15  Bruno Haible  <bruno@clisp.org>
37058
37059         * gnulib-tool (sed): Try a little harder to make bash understand the
37060         alias.
37061         Reported by Bruce Korb <bruce.korb@gmail.com>.
37062
37063 2007-09-13  Eric Blake  <ebb9@byu.net>
37064
37065         * ChangeLog: Remove conflict markers.
37066
37067 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37068
37069         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37070         Reported by Bruno Haible <bruno@clisp.org>.
37071
37072 2007-09-12  Bruno Haible  <bruno@clisp.org>
37073
37074         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37075         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37076         is not defined.
37077
37078 2007-09-12  Eric Blake  <ebb9@byu.net>
37079
37080         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37081         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37082         Autoconf definition.
37083         * modules/euidaccess (Depends-on): Add extensions, for
37084         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37085         * modules/fnmatch (Depends-on): Likewise.
37086         * modules/getaddrinfo (Depends-on): Likewise.
37087         * modules/getdelim (Depends-on): Likewise.
37088         * modules/getline (Depends-on): Likewise.
37089         * modules/getsubopt (Depends-on): Likewise.
37090         * modules/gettext (Depends-on): Likewise.
37091         * modules/group-member (Depends-on): Likewise.
37092         * modules/mbchar (Depends-on): Likewise.
37093         * modules/memmem (Depends-on): Likewise.
37094         * modules/mempcpy (Depends-on): Likewise.
37095         * modules/memrchr (Depends-on): Likewise.
37096         * modules/pagealign_alloc (Depends-on): Likewise.
37097         * modules/readutmp (Depends-on): Likewise.
37098         * modules/stpcpy (Depends-on): Likewise.
37099         * modules/stpncpy (Depends-on): Likewise.
37100         * modules/strchrnul (Depends-on): Likewise.
37101         * modules/strndup (Depends-on): Likewise.
37102         * modules/strsep (Depends-on): Likewise.
37103         * modules/strverscmp (Depends-on): Likewise.
37104         * modules/vasprintf (Depends-on): Likewise.
37105         * modules/wcwidth (Depends-on): Likewise.
37106         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37107         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37108         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37111         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37112         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37113         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37114         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37115         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37119         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37120         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37121         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37123         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37125         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37126         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37128         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37129         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37130         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37132         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37133         so that lock.m4 can be used in gettext without extensions module.
37134
37135 2007-09-11  Bruno Haible  <bruno@clisp.org>
37136
37137         * m4/isc-posix.m4: Remove file.
37138         Suggested by Eric Blake.
37139
37140 2007-09-11  Eric Blake  <ebb9@byu.net>
37141
37142         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37143
37144 2007-09-10  Bruno Haible  <bruno@clisp.org>
37145
37146         * posix-modules: Fix typo in error message.
37147         Reported by Matt <mkraai@beckman.com>.
37148
37149 2007-09-09  Bruno Haible  <bruno@clisp.org>
37150
37151         * doc/functions/getdelim.texi: Update list of platforms lacking the
37152         function.
37153         * doc/functions/getline.texi: Likewise.
37154
37155 2007-09-09  Jim Meyering  <jim@meyering.net>
37156
37157         * lib/hash.c (hash_initialize): Detect calloc failure.
37158         Reported by Bruno Haible.
37159
37160 2007-09-09  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37163         malloc or realloc fails.
37164
37165 2007-09-09  Bruno Haible  <bruno@clisp.org>
37166
37167         * modules/getcwd (Depends-on): Add malloc-posix.
37168         * modules/glob (Depends-on): Likewise.
37169         * modules/putenv (Depends-on): Likewise.
37170         * modules/strdup (Depends-on): Likewise.
37171         * modules/getdelim (Depends-on): Add realloc-posix.
37172         * modules/read-file (Depends-on): Likewise.
37173
37174 2007-09-09  Bruno Haible  <bruno@clisp.org>
37175
37176         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37177         (gl_FUNC_MALLOC_POSIX): Require it.
37178         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37179         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37180         * modules/realloc (Files): Add m4/malloc.m4.
37181         * modules/calloc (Files): Likewise.
37182
37183 2007-09-09  Bruno Haible  <bruno@clisp.org>
37184
37185         * modules/malloc-posix: New file.
37186         * modules/malloc (Depends-on): Add malloc-posix.
37187         * lib/malloc.c: Include errno.h.
37188         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37189         and a POSIX-compatible malloc into a single function. Set ENOMEM
37190         when returning NULL.
37191         * m4/malloc.m4: New file.
37192         * doc/functions/malloc.texi: Mention the malloc-posix module.
37193         * lib/stdlib_.h (malloc): New declaration.
37194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37195         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37196         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37197         and HAVE_MALLOC_POSIX.
37198
37199 2007-09-09  Bruno Haible  <bruno@clisp.org>
37200
37201         * modules/realloc-posix: New file.
37202         * modules/realloc (Depends-on): Add realloc-posix.
37203         * lib/realloc.c: Include errno.h.
37204         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37205         and a POSIX-compatible realloc into a single function. Set ENOMEM
37206         when returning NULL.
37207         * m4/realloc.m4: New file.
37208         * doc/functions/realloc.texi: Mention the realloc-posix module.
37209         * lib/stdlib_.h (realloc): New declaration.
37210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37211         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37212         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37213         and HAVE_REALLOC_POSIX.
37214
37215 2007-09-09  Bruno Haible  <bruno@clisp.org>
37216
37217         * modules/calloc-posix: New file.
37218         * modules/calloc (Depends-on): Add calloc-posix.
37219         * lib/calloc.c: Include errno.h.
37220         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37221         and a POSIX-compatible calloc into a single function. Set ENOMEM
37222         when returning NULL.
37223         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37224         * doc/functions/calloc.texi: Mention the calloc-posix module.
37225         * lib/stdlib_.h (calloc): New declaration.
37226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37227         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37228         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37229         and HAVE_CALLOC_POSIX.
37230
37231 2007-09-09  Bruno Haible  <bruno@clisp.org>
37232
37233         Allow for modules to show an arbitrary notice.
37234         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37235         * gnulib-tool: New option --extract-notice.
37236         (func_usage): Document it.
37237         (sed_extract_prog): Update.
37238         (func_get_notice): New function.
37239         (func_modules_notice): New function.
37240         (func_import, func_create_testdir): Invoke it.
37241         Suggested by Jim Meyering.
37242
37243 2007-09-09  Bruno Haible  <bruno@clisp.org>
37244
37245         * gnulib-tool: New options --verbose, --quiet.
37246         (func_usage): Document them.
37247         (verbose): New variable.
37248         (func_execute_command): New function.
37249         (func_import): Don't show the module list and the file list if
37250         $verbose < 0.
37251         (func_create_testdir): Likewise. Use func_execute_command.
37252         (func_create_megatestdir): Use func_execute_command.
37253
37254 2007-09-08  Bruno Haible  <bruno@clisp.org>
37255
37256         * gnulib-tool (func_import): Prefer rsync over wget when available,
37257         for fetching the PO files.
37258
37259 2007-09-08  Bruno Haible  <bruno@clisp.org>
37260
37261         * posix-modules: New file. Portions copied from gnulib-tool.
37262         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37263
37264 2007-09-08  Jim Meyering  <jim@meyering.net>
37265
37266         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37267         * lib/fpending.h: Rename from __fpending.h.
37268         * lib/fpending.c: Rename from __fpending.c.
37269         Include "fpending.h", not "__fpending.h".
37270         * lib/__fpending.h, lib/__fpending.c: Remove files.
37271         * modules/fpending (Files): Reflect new file names.
37272         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37273
37274 2007-09-08  Bruno Haible  <bruno@clisp.org>
37275
37276         * m4/inttypes-h.m4: Remove stub file.
37277
37278 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37279
37280         * doc/headers/stdint.texi: Discuss #include_next issue.
37281
37282 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37283
37284         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37285
37286 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37287
37288         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37289         in variable name.
37290
37291 2007-09-03  Jim Meyering  <jim@meyering.net>
37292
37293         New module: git-version-gen.
37294         * modules/git-version-gen: New file.
37295
37296         Import changes from coreutils for bootstrap script.
37297
37298         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37299
37300         bootstrap: uses rsync to download the .po files
37301         * build-aux/bootstrap (po_download_command_format): New global.
37302         (download_po_files): Use rsync.
37303         (update_po_files): Don't remove .po files after download,
37304         so future rsync runs can take advantage of the copies.
37305
37306         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37307
37308         Solve the unnecessary-.po-file-regeneration problem once and for all.
37309         * build-aux/bootstrap (download_po_files): New function, renamed from
37310         get_translations.  Now, downloads, but doesn't update LINGUAS.
37311         (update_po_files): New function.
37312
37313         bootstrap: Ignore more.
37314         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37315         uniwidth to e.g., lib/.gitignore.
37316         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37317
37318         * build-aux/bootstrap: New setting: vc_ignore.
37319         (insert_sorted_if_absent): Create $file if absent.
37320         Adapt to new, possibly empty, list: $vc_ignore.
37321
37322         bootstrap: generate more ignorable names
37323         * build-aux/bootstrap (slurp): When generating ignorable names,
37324         also map .sin to .sed, .gperf to .c, and .y to .c.
37325
37326 2007-09-03  Jim Meyering  <jim@meyering.net>
37327
37328         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37329         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37330
37331 2007-09-02  Bruno Haible  <bruno@clisp.org>
37332
37333         Fix mis-recognition of 'mcs' on QNX 6.
37334         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37335         output contains the string "Mono".
37336         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37337         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37338
37339 2007-09-01  Bruno Haible  <bruno@clisp.org>
37340
37341         Fix collision between uniwidth/* and linebreak modules.
37342         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37343         u32_width): Remove declarations.
37344         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37345         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37346         streq3, streq2, streq1, streq0): Remove functions.
37347         (STREQ): Remove macro.
37348         (is_cjk_encoding): Remove function.
37349         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37350         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37351         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37352         * NEWS: Document the change.
37353
37354 2007-09-01  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/streq.h: Add double-inclusion guard.
37357
37358 2007-09-01  Karl Berry  <karl@gnu.org>
37359
37360         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37361
37362 2007-08-28  Jim Meyering  <jim@meyering.net>
37363
37364         Rename mreadlink_with_size to areadlink_with_size.
37365         * NEWS: Document the change.
37366         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37367         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37368         * lib/mreadlink.h: Rename this to...
37369         * lib/areadlink.h: ...this.
37370         * modules/mreadlink-with-size: Rename this to...
37371         * modules/areadlink-with-size: ...this.
37372         * lib/canonicalize.c: Reflect the renaming.
37373         * modules/canonicalize: Likewise.
37374
37375 2007-08-26  Bruno Haible  <bruno@clisp.org>
37376
37377         * gnulib-tool (func_import): When deciding which files to remove,
37378         consider also dangling symbolic links.
37379         Reported by Eric Blake.
37380
37381 2007-08-26  Bruno Haible  <bruno@clisp.org>
37382
37383         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37384
37385 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37386
37387         * lib/readline.c: Don't include getline.h, the prototype is now
37388         found in stdio.h.
37389
37390 2007-08-23  Jim Meyering  <jim@meyering.net>
37391
37392         Getdelim touchup.
37393         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37394         around the funlockfile call, since funlockfile never sets errno.
37395         Don't set errno upon failed realloc.
37396
37397 2007-08-22  Eric Blake  <ebb9@byu.net>
37398
37399         Getline touchups.
37400         * lib/getdelim.c (getdelim): Revert regression that required *n to
37401         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37402         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37403         getdelim, rather than whether implementation is missing.
37404         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37405         * lib/stdio_.h (getline): Also declare if replacement is
37406         required.
37407         * doc/functions/getdelim.texi: New file.
37408         * doc/functions/getline.texi: Likewise.
37409         * doc/gnulib.texi (Function Substitutes): Add new files.
37410         Reported by Bruno Haible.
37411
37412 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37413
37414         * users.txt: Add Guile.
37415
37416 2007-08-22  Eric Blake  <ebb9@byu.net>
37417
37418         * tests/test-getdelim.c (main): Use remove, not unlink.
37419         * tests/test-getline.c (main): Likewise.
37420
37421         Move getline and getdelim into stdio.h, per POSIX 200x.
37422         * modules/getline (Files): Remove getline.h.
37423         (Depends-on): Add stdio.
37424         (configure.ac): Add module indicator.
37425         * modules/getdelim (Files): Remove getdelim.h.
37426         (Depends-on): Add stdio.
37427         (configure.ac): Add module indicator.
37428         * modules/stdio (Makefile.am): Work with new indicators.
37429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37430         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37431         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37432         * lib/getdelim.h: Delete.
37433         * lib/getline.h: Delete.
37434         * lib/stdio_.h (getdelim, getline): Declare.
37435         * modules/getdelim-tests: New module.
37436         * modules/getline-tests: Likewise.
37437         * tests/test-getdelim.c: New file.
37438         * tests/test-getline.c: Likewise.
37439         * NEWS: Document the change.
37440         * lib/getline.c: Update choice of header.
37441         * lib/csharpcomp.c: Likewise.
37442         * lib/getpass.c: Likewise.
37443         * lib/javacomp.c: Likewise.
37444         * lib/javaversion.c: Likewise.
37445         * lib/yesno.c: Likewise.
37446         * lib/getdelim.c: Likewise.
37447         (getdelim): Set errno on failure, and avoid memory leak.
37448
37449 2007-08-19  Bruno Haible  <bruno@clisp.org>
37450
37451         * modules/closein (Depends-on): Add freadahead.
37452         * lib/closein.c: Include freadahead.h.
37453         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37454         is zero.
37455
37456 2007-08-19  Bruno Haible  <bruno@clisp.org>
37457
37458         * modules/freadahead-tests: New file.
37459         * tests/test-freadahead.sh: New file.
37460         * tests/test-freadahead.c: New file.
37461
37462         * modules/freadahead: New file.
37463         * lib/freadahead.h: New file.
37464         * lib/freadahead.c: New file.
37465         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37466         fbufmode, fpurge, freadable, fwritable.
37467
37468 2007-08-19  Eric Blake  <ebb9@byu.net>
37469
37470         Test yesno in combination with closein.
37471         * lib/yesno.c (yesno): Document use of stdin.
37472         * modules/yesno-tests (Files): New module.
37473         * tests/test-yesno.c (main): New file.
37474         * tests/test-yesno.sh: Likewise.
37475
37476 2007-08-19  Bruno Haible  <bruno@clisp.org>
37477
37478         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37479         * lib/fseeko.c (rpl_fseeko): Likewise.
37480         * lib/fseterr.c (fseterr): Likewise.
37481
37482 2007-08-19  Bruno Haible  <bruno@clisp.org>
37483
37484         * tests/test-lseek.c (main): Disable a test for BeOS.
37485         * doc/functions/lseek.texi: Document the BeOS bug.
37486
37487 2007-08-19  Bruno Haible  <bruno@clisp.org>
37488             Eric Blake  <ebb9@byu.net>
37489
37490         * lib/lseek.c: Include <sys/stat.h>.
37491         (rpl_lseek): Add workaround code also for Unix platforms.
37492         Needed for BeOS.
37493         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37494         * doc/functions/lseek.texi: Document BeOS definiency.
37495
37496 2007-08-18  Bruno Haible  <bruno@clisp.org>
37497
37498         * modules/fstrcmp-tests: New file.
37499         * tests/test-fstrcmp.c: New file.
37500
37501 2007-08-18  Bruno Haible  <bruno@clisp.org>
37502
37503         * modules/fstrcmp: New file, from GNU gettext with modifications.
37504         * lib/fstrcmp.h: New file, from GNU gettext.
37505         * lib/fstrcmp.c: New file, from GNU gettext.
37506         * MODULES.html.sh (String handling): Add fstrcmp.
37507
37508 2007-08-18  Bruno Haible  <bruno@clisp.org>
37509
37510         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37511         'bool'.
37512         (diag, compareseq): Remove const from the ctxt argument.
37513         (USE_HEURISTIC): Undefine at the end.
37514
37515 2007-08-18  Jim Meyering  <jim@meyering.net>
37516
37517         New file: lib/idcache.h
37518         * NEWS: Mention the addition.
37519         * modules/idcache (Files): Add lib/idcache.h
37520         * lib/idcache.c: Include "idcache.h".
37521         Don't include <sys/types.h>.
37522         Add a FIXME comment.
37523         Move file-scoped "static" declarations to the top.
37524         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37525
37526 2007-08-17  Bruno Haible  <bruno@clisp.org>
37527         and Paul Eggert  <eggert@cs.ucla.edu>
37528
37529         * MODULES.html.sh: Add diffseq.
37530         * modules/diffseq: New file.
37531         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37532         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37533
37534 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37535
37536         Import changes from coreutils for bootstrap script.
37537
37538         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37539
37540         * build-aux/bootstrap (slurp): Work even in environments where
37541         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37542         current code does not slurp files whose names start with ".", and
37543         this looks like it might be a troublesome area.
37544
37545         2007-07-11  Jim Meyering  <jim@meyering.net>
37546
37547         If there's a GPL vN copyright comment, require that N == 3.
37548
37549         2007-07-08  Jim Meyering  <jim@meyering.net>
37550
37551         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37552         * build-aux/bootstrap (mam_template): Move definition out of loop.
37553
37554         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37555
37556         * build-aux/bootstrap (symlink_to_dir): Rename function from
37557         symlink_to_gnulib.  Add a directory parameter.  Update all
37558         callers.
37559         (cp_mark_as_generated): Also check for -- and link to -- files in
37560         gl/.
37561
37562         2007-07-08  Jim Meyering  <jim@meyering.net>
37563
37564         Adapt to deeper hierarchy in gnulib.
37565         * build-aux/bootstrap (symlink_to_dir): If the destination
37566         directory doesn't exist, create it. This is required at least for
37567         "lib/uniwidth/cjk.h".
37568
37569         2007-05-15  Jim Meyering  <jim@meyering.net>
37570
37571         * build-aux/bootstrap: Now that generated Makefile.am files
37572         are no longer under version control, they must be created at
37573         bootstrap time.
37574
37575 2007-08-14  Ben Pfaff  <blp@gnu.org>
37576
37577         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37578
37579 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37580
37581         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37582         given the changes below.
37583         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37584         even on hosts that have padding bits beyond the supported 64.
37585
37586 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37587
37588         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37589         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37590         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37591         depends on it.
37592         (xstrtol_error): Remove.
37593         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37594         but with a different signature.
37595         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37596         * lib/xstrtol-error.c: Include exitfail.h.
37597         (xstrtol_fatal): New function, with a different signature from the
37598         old xstrtol_error, so that the caller need not worry about passing
37599         in an exit status, or about storage management of the option argument.
37600         (xstrtol_error): Now a static function.  Redo signature to
37601         implement xstrtol_fatal.  Output the correct number of hyphens in
37602         front of the option so that the caller need not worry about
37603         storage management.
37604         (N_): New macro.
37605         (_): Remove; not used now.
37606         * modules/xstrtol: Depend on getopt.
37607         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37608         of old STRTOL_FATAL_ERROR macro.
37609         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37610         of test program.
37611         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37612         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37613
37614 2007-08-08  Eric Blake  <ebb9@byu.net>
37615
37616         * lib/xstrtol-error.c: Add missing include.
37617
37618         Move xstrtol messages into gnulib domain, when --pobase is used.
37619         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37620         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37621         * modules/xstrtol (Files): Distribute new file.
37622         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37623         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37624         * tests/test-xstrtol.c: ...into new file.
37625         * tests/test-xstrtoul.c: Also test xstrtoul.
37626         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37627         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37628         * tests/test-xstrtol.sh: Drive the tests.
37629         * tests/test-xstrtoimax.sh: Likewise.
37630         * tests/test-xstrtoumax.sh: Likewise.
37631         * modules/xstrtol-tests: New module.
37632         * modules/xstrtoimax-tests: Likewise.
37633         * modules/xstrtoumax-tests: Likewise.
37634
37635 2007-08-08  Jim Meyering  <jim@meyering.net>
37636
37637         New function: mfile_name_concat.
37638         * lib/filenamecat.c (mfile_name_concat): New function, just like
37639         file_name_concat, but return NULL upon failure rather than exiting
37640         with a diagnostic.
37641         * lib/filenamecat.h: Declare it.
37642
37643 2007-08-07  Bruno Haible  <bruno@clisp.org>
37644
37645         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37646         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37647         warning from gcc.
37648         Reported by Eric Blake.
37649
37650 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37651
37652         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37653         * modules/crypto/arcfour (License): Likewise.
37654         * modules/crypto/des-tests (License): Likewise.
37655         * modules/crypto/gc-arctwo-tests (License): Likewise.
37656         * modules/crypto/gc-des-tests (License): Likewise.
37657         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37658         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37659         * modules/crypto/gc-md2-tests (License): Likewise.
37660         * modules/crypto/gc-md4-tests (License): Likewise.
37661         * modules/crypto/gc-md5-tests (License): Likewise.
37662         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37663         * modules/crypto/gc-rijndael-tests (License): Likewise.
37664         * modules/crypto/gc-sha1-tests (License): Likewise.
37665         * modules/crypto/gc-tests (License): Likewise.
37666         * modules/crypto/hmac-md5 (License): Likewise.
37667         * modules/crypto/hmac-sha1 (License): Likewise.
37668         * modules/crypto/md2-tests (License): Likewise.
37669         * modules/crypto/md4-tests (License): Likewise.
37670         * modules/crypto/md5 (License): Likewise.
37671         * modules/crypto/rijndael (License): Likewise.
37672         * modules/crypto/sha1 (License): Likewise.
37673         * modules/memxor (License): Likewise.
37674
37675 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37676         and Bruno Haible  <bruno@clisp.org>
37677
37678         * NEWS: Describe interface changes to human, xstrtol.
37679         * lib/human.h: Include <xstrtol.h>.
37680         (human_options): Return enum strtol_error, not int.  Remove
37681         bool arg; take int * instead.
37682         * lib/human.c: Don't include "gettext.h".
37683         (_): Remove; no longer used.
37684         Don't include <xstrtol.h>, since human.h does it.
37685         (human_options): Adjust to abovementioned interface changes.
37686         Do not report error to stderr; that's now the caller's
37687         responsibility.
37688         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37689         interface change.
37690         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37691         Str, Argument_type_string.  All uses changed.  Put " argument"
37692         in diagnostics to make them clearer.  Change wording of suffix
37693         message for clarity.
37694         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37695         Argument_type_string.
37696         (STRTOL_FATAL_WARN): Remove; no longer used.
37697         * modules/human (Depends-on): Remove gettext-h.
37698
37699 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37700
37701         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37702
37703 2007-07-31  Bruno Haible  <bruno@clisp.org>
37704
37705         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37706         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37707         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37708
37709 2007-07-31  Bruno Haible  <bruno@clisp.org>
37710
37711         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37712         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37713
37714 2007-07-30  Bruno Haible  <bruno@clisp.org>
37715
37716         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37717         * modules/c-ctype (License): Likewise.
37718         * modules/c-strcase (License): Likewise.
37719         * modules/check-version (License): Likewise.
37720         * modules/iconv (License): Likewise.
37721         * modules/iconv_open (License): Likewise.
37722         * modules/read-file (License): Likewise.
37723         * modules/striconv (License): Likewise.
37724         * modules/strverscmp (License): Likewise.
37725         * modules/vasprintf (License): Likewise.
37726         * modules/crypto/des (License): Likewise.
37727         * modules/crypto/gc (License): Likewise.
37728         * modules/crypto/gc-arcfour (License): Likewise.
37729         * modules/crypto/gc-arctwo (License): Likewise.
37730         * modules/crypto/gc-des (License): Likewise.
37731         * modules/crypto/gc-hmac-md5 (License): Likewise.
37732         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37733         * modules/crypto/gc-md2 (License): Likewise.
37734         * modules/crypto/gc-md4 (License): Likewise.
37735         * modules/crypto/gc-md5 (License): Likewise.
37736         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37737         * modules/crypto/gc-random (License): Likewise.
37738         * modules/crypto/gc-rijndael (License): Likewise.
37739         * modules/crypto/gc-sha1 (License): Likewise.
37740         * modules/crypto/md2 (License): Likewise.
37741         * modules/crypto/md4 (License): Likewise.
37742
37743 2007-07-30  Jim Meyering  <jim@meyering.net>
37744
37745         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37746         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37747         it has valid stat data.  This bug would cause du not to count the
37748         sizes of inaccessible directories.
37749         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37750         in <http://bugzilla.redhat.com/250077>.
37751
37752 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37753             Bruno Haible  <bruno@clisp.org>
37754
37755         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37756         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37757         #include_next, gives a diagnostic about it, but reports no error in
37758         the exit code.
37759         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37760
37761 2007-07-24  Ben Pfaff  <blp@gnu.org>
37762
37763         Improve name: "count-one-bits" is better than "popcount".
37764         * MODULES.html.sh: Update name.
37765         * lib/popcount.h: Renamed lib/count-one-bits.h.
37766         (popcount): Renamed count_one_bits.
37767         (popcountl): Renamed count_one_bits_l.
37768         (popcountll): Renamed count_one_bits_ll.
37769         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37770         * modules/popcount: Renamed module/count-one-bits.
37771         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37772         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37773
37774 2007-07-23  Ben Pfaff  <blp@gnu.org>
37775
37776         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37777         better code generation, and add U to large constants to avoid
37778         warnings, in non-GCC case.
37779         Suggested by Bruno Haible.
37780
37781 2007-07-23  Ben Pfaff  <blp@gnu.org>
37782
37783         * lib/popcount.h: Use verify_true instead of if...abort.
37784         * modules/popcount: Depend on verify module.
37785         Suggested by Jim Meyering.
37786
37787 2007-07-23  Bruno Haible  <bruno@clisp.org>
37788
37789         * gnulib-tool (func_import): Create a .cvsignore file also when the
37790         directory is not yet in CVS but the toplevel directory is. When
37791         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37792         Reported by Karl Berry.
37793
37794 2007-07-22  Ben Pfaff  <blp@gnu.org>
37795
37796         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37797         case.
37798         Suggested by Eric Blake.
37799
37800 2007-07-22  Ben Pfaff  <blp@gnu.org>
37801
37802         New module: popcount.
37803         * MODULES.html.sh: Add popcount.
37804         * modules/popcount: New file.
37805         * modules/popcount-tests: New file.
37806         * tests/test-popcount.c: New file.
37807         * lib/popcount.h: New file.
37808         * m4/popcount.m4: New file.
37809
37810 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37811
37812         * build-aux/announce-gen: Update to GPLv3.
37813
37814         * build-aux/config.guess: Update from config.
37815
37816 2007-07-21  Bruno Haible  <bruno@clisp.org>
37817
37818         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37819         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37820
37821 2007-07-20  Jim Meyering  <jim@meyering.net>
37822
37823         * check-module: Diagnose a self-dependency.
37824
37825 2007-07-19  Bruno Haible  <bruno@clisp.org>
37826
37827         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37828         empty.
37829         Reported by Eric Blake.
37830
37831 2007-07-18  Bruno Haible  <bruno@clisp.org>
37832
37833         * gnulib-tool: New options --po-base, --po-domain.
37834         (func_usage): Document them.
37835         (pobase, po_domain): New variables.
37836         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37837         DEFAULT_TEXT_DOMAIN.
37838         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37839         (func_import): Consider pobase and po_domain. Create a po/ directory.
37840         (func_create_testdir): Set pobase and po_domain to empty.
37841         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37842         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37843
37844 2007-07-18  Bruno Haible  <bruno@clisp.org>
37845
37846         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37847         EXTRA_DIST augmentation for files in build-aux/.
37848
37849 2007-07-16  Bruno Haible  <bruno@clisp.org>
37850
37851         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37852         * modules/getdelim (License): Likewise.
37853
37854 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37855
37856         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37857         * modules/d-type (License): Likewise.
37858         * modules/extensions (License): Likewise.
37859         * modules/fnmatch (License): Likewise.
37860         * modules/fseeko (License): Likewise.
37861         * modules/getaddrinfo (License): Likewise.
37862         * modules/getline (License): Likewise.
37863         * modules/getlogin_r (License): Likewise.
37864         * modules/getpass (License): Likewise.
37865         * modules/gettimeofday (License): Likewise.
37866         * modules/glob (License): Likewise.
37867         * modules/inet_ntop (License): Likewise.
37868         * modules/malloc (License): Likewise.
37869         * modules/malloca (License): Likewise.
37870         * modules/memmem (License): Likewise.
37871         * modules/mempcpy (License): Likewise.
37872         * modules/memset (License): Likewise.
37873         * modules/minmax (License): Likewise.
37874         * modules/mktime (License): Likewise.
37875         * modules/netinet_in (License): Likewise.
37876         * modules/pathmax (License): Likewise.
37877         * modules/poll (License): Likewise.
37878         * modules/regex (License): Likewise.
37879         * modules/snprintf (License): Likewise.
37880         * modules/stdbool (License): Likewise.
37881         * modules/stdint (License): Likewise.
37882         * modules/stdio (License): Likewise.
37883         * modules/strcase (License): Likewise.
37884         * modules/strcasestr (License): Likewise.
37885         * modules/strdup (License): Likewise.
37886         * modules/string (License): Likewise.
37887         * modules/strndup (License): Likewise.
37888         * modules/strnlen (License): Likewise.
37889         * modules/strpbrk (License): Likewise.
37890         * modules/strptime (License): Likewise.
37891         * modules/strsep (License): Likewise.
37892         * modules/sys_select (License): Likewise.
37893         * modules/sys_socket (License): Likewise.
37894         * modules/sys_stat (License): Likewise.
37895         * modules/sys_time (License): Likewise.
37896         * modules/time (License): Likewise.
37897         * modules/time_r (License): Likewise.
37898         * modules/timegm (License): Likewise.
37899         * modules/unistd (License): Likewise.
37900         * modules/vsnprintf (License): Likewise.
37901         * modules/wctype (License): Likewise.
37902
37903 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37904
37905         * modules/argz (License): LGPLv2+.
37906
37907 2007-07-15  Karl Berry  <karl@gnu.org>
37908
37909         * doc/gnulib.texi: revise node structure per new fdl.texi.
37910
37911 2007-07-14  Bruno Haible  <bruno@clisp.org>
37912
37913         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37914         the output file.
37915         * lib/uniname/uninames.h: Regenerated.
37916
37917 2007-07-14  Karl Berry  <karl@gnu.org>
37918
37919         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37920         omitting sectioning and index commands.
37921
37922 2007-07-13  Bruno Haible  <bruno@clisp.org>
37923
37924         New gnulib-tool option --more-symlinks.
37925         * gnulib-tool (func_usage): Document --more-symlinks.
37926         (do_copyrights): New variable.
37927         Recognize option --more-symlinks.
37928         (func_import): Don't add a copyright notice transform to
37929         sed_transform_lib_file if do_copyrights is empty.
37930
37931 2007-07-13  Bruno Haible  <bruno@clisp.org>
37932
37933         * lib/vasnprintf.c (decimal_point_char): Define also if
37934         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37935         && !NEED_PRINTF_DIRECTIVE_A.
37936         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37937         Gary V. Vaughan <gary@gnu.org>.
37938
37939 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37940
37941         * lib/inttypes_.h: Undo previous change, since it was fixed
37942         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37943
37944 2007-07-13  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37947         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37948
37949 2007-07-13  Jim Meyering  <jim@meyering.net>
37950
37951         df: Don't fail for Tru64's "file-on-file mount".
37952         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37953         so we fall through and use statfs instead.  Details here:
37954         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37955         Reported by Albert Chin.
37956
37957 2007-07-13  Bruno Haible  <bruno@clisp.org>
37958
37959         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37960         * modules/configmake (License): Likewise.
37961         * modules/gettext (License): Likewise.
37962         * modules/gettext-h (License): Likewise.
37963         * modules/include_next (License): Likewise.
37964         * modules/link-warning (License): Likewise.
37965         * modules/localcharset (License): Likewise.
37966         * modules/localename (License): Likewise.
37967         * modules/lock (License): Likewise.
37968         * modules/relocatable-lib-lgpl (License): Likewise.
37969         * modules/size_max (License): Likewise.
37970         * modules/vasnprintf (License): Likewise.
37971         * modules/wchar (License): Likewise.
37972         * modules/xsize (License): Likewise.
37973
37974 2007-07-13  Bruno Haible  <bruno@clisp.org>
37975
37976         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37977         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37978
37979 2007-07-12  Bruno Haible  <bruno@clisp.org>
37980
37981         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37982         in the modules files.
37983
37984 2007-07-11  Karl Berry  <karl@gnu.org>
37985
37986         * MODULES.html.sh (func_module): use
37987          sed -e '\|^'"${includefile}"'$|d'
37988          instead of /.../d, to avoid errors on $includefile's containing /.
37989
37990 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37991
37992         * gnulib-tool (func_import): Avoid duplication of --avoid
37993         statements
37994         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37995         names to `_' in variable names.
37996
37997 2007-07-10  Eric Blake  <ebb9@byu.net>
37998
37999         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38000         * NEWS: Document this change.
38001
38002 2007-07-08  Bruno Haible  <bruno@clisp.org>
38003
38004         Update to Unicode 5.0.
38005         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38006         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38007         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38008         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38009         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38010         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38011         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38012         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38013         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38014         U+10A3F, U+1D242..U+1D244.
38015         (nonspacing_table_ind): Update.
38016         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38017         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38018
38019 2007-07-08  Bruno Haible  <bruno@clisp.org>
38020
38021         Update to Unicode 5.0.
38022         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38023         code transform. Extend the name index field of unicode_name_to_code and
38024         unicode_code_to_name from 16 to 24 bits.
38025         * lib/uniname/uniname.c (unicode_character_name,
38026         unicode_name_character): Add the range 0x12xxx to the code transform.
38027         * lib/uniname/uninames.h: Regenerated.
38028         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38029
38030 2007-07-07  Bruno Haible  <bruno@clisp.org>
38031
38032         * modules/wcwidth-tests: New file.
38033         * tests/test-wcwidth.c: New file.
38034
38035         Work around MacOS X wcwidth() bug.
38036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38037         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38038         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38039         original wcwidth in non-UTF-8 locales.
38040         * modules/wcwidth (Depends-on): Add localcharset, streq,
38041         uniwidth/width.
38042         * doc/functions/wcwidth.texi: Update.
38043
38044 2007-07-07  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38047         (wcwidth): New declaration.
38048         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38049         macros.
38050         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38051         here. Prepare for creating <wchar.h> unconditionally.
38052         * modules/wchar (Depends-on): Add link-warning.
38053         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38054         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38055         * lib/wcwidth.h: Remove file.
38056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38057         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38058         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38059         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38060         (Include): Replace wcwidth.h with <wchar.h>.
38061         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38062         * lib/mbchar.h: Don't include wcwidth.h.
38063         * lib/mbswidth.c: Likewise.
38064         * NEWS: Mention the change.
38065
38066 2007-07-07  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38069         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38070         definition with an external declaration.
38071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38072         defined as a function. Remove AC_C_INLINE requirement.
38073         * modules/wcwidth (Files): Add lib/wcwidth.c.
38074         (Makefile.am): Remove redundant statement.
38075
38076 2007-07-07  Bruno Haible  <bruno@clisp.org>
38077
38078         * MODULES.html.sh (Unicode string functions): Add the new modules.
38079
38080         * tests/uniwidth/test-u32-strwidth.c: New file.
38081         * modules/uniwidth/u32-strwidth-tests: New file.
38082
38083         * lib/uniwidth/u32-strwidth.c: New file.
38084         * modules/uniwidth/u32-strwidth: New file.
38085
38086         * tests/uniwidth/test-u16-strwidth.c: New file.
38087         * modules/uniwidth/u16-strwidth-tests: New file.
38088
38089         * lib/uniwidth/u16-strwidth.c: New file.
38090         * modules/uniwidth/u16-strwidth: New file.
38091
38092         * tests/uniwidth/test-u8-strwidth.c: New file.
38093         * modules/uniwidth/u8-strwidth-tests: New file.
38094
38095         * lib/uniwidth/u8-strwidth.c: New file.
38096         * modules/uniwidth/u8-strwidth: New file.
38097
38098         * tests/uniwidth/test-u32-width.c: New file.
38099         * modules/uniwidth/u32-width-tests: New file.
38100
38101         * lib/uniwidth/u32-width.c: New file.
38102         * modules/uniwidth/u32-width: New file.
38103
38104         * tests/uniwidth/test-u16-width.c: New file.
38105         * modules/uniwidth/u16-width-tests: New file.
38106
38107         * lib/uniwidth/u16-width.c: New file.
38108         * modules/uniwidth/u16-width: New file.
38109
38110         * tests/uniwidth/test-u8-width.c: New file.
38111         * modules/uniwidth/u8-width-tests: New file.
38112
38113         * lib/uniwidth/u8-width.c: New file.
38114         * modules/uniwidth/u8-width: New file.
38115
38116         * tests/uniwidth/test-uc_width.c: New file.
38117         * modules/uniwidth/width-tests: New file.
38118
38119         * lib/uniwidth/width.c: New file, from GNU libiconv.
38120         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38121         * modules/uniwidth/width: New file.
38122
38123         * lib/uniwidth.h: New file, from GNU libiconv.
38124         * modules/uniwidth/base: New file.
38125
38126 2007-07-07  Bruno Haible  <bruno@clisp.org>
38127
38128         * lib/uniname.h: New file, from GNU gettext.
38129         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38130         * lib/uniname/uninames.h: New file, from GNU gettext.
38131         * lib/uniname/uniname.c: New file, from GNU gettext.
38132         * tests/uniname/test-uninames.sh: New file.
38133         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38134         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38135         * modules/uniname/base: New file.
38136         * modules/uniname/uniname: New file.
38137         * modules/uniname/uniname-tests: New file.
38138         * MODULES.html.sh (Unicode string functions): Add the new modules.
38139
38140 2007-07-06  Bruno Haible  <bruno@clisp.org>
38141
38142         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38143
38144 2007-07-06  Bruno Haible  <bruno@clisp.org>
38145
38146         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38147         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38148         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38149         include <sys/time.h>.
38150         Reported by Eric Blake.
38151
38152 2007-07-06  Eric Blake  <ebb9@byu.net>
38153
38154         Fix testing canonicalize on cygwin.
38155         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38156         Revert patch from 2007-06-19.
38157         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38158         canonicalize module is also in use.
38159         * tests/test-canonicalize.c: New file.
38160         * tests/test-canonicalize.sh: Likewise.
38161         * modules/canonicalize-tests: Likewise.
38162
38163 2007-07-06  Jim Meyering  <jim@meyering.net>
38164
38165         * lib/getugroups.c (getugroups): Detect getgrent failure.
38166         Adjust comment to reflect reality: this function may return -1.
38167
38168 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38169
38170         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38171         the new TP address.
38172         (usage): Fix typo
38173         (gnulib_mk): New variable.
38174
38175 2007-07-05  Jim Meyering  <jim@meyering.net>
38176
38177         Don't let endgrent clobber errno, no matter how improbable.
38178         * lib/getugroups.c (getugroups): Save and restore errno around
38179         endgrent call.
38180
38181         Close the group DB even when failing with 2^31 or more members.
38182         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38183
38184 2007-07-04  Jim Meyering  <jim@meyering.net>
38185
38186         * lib/getugroups.h: New file.
38187         * lib/getugroups.c: Include "getugroups.h".
38188         Remove uses of "register" keyword.
38189         Move local variable, "cp", down into scope where used.
38190         Give "username" parameter the "const" attribute.
38191         * modules/getugroups (Files): Add lib/getugroups.h
38192
38193 2007-07-04  Karl Berry  <karl@gnu.org>
38194
38195         * MODULES.html.sh (func_all_modules): Complete rename of
38196         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38197
38198 2007-07-02  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38201         mode, when inttypes.h comes from gnulib.
38202         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38203
38204 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38205
38206         * NEWS: Mention lgpl module name change.
38207
38208         * modules/lgpl-2.1: Renamed from lgpl.
38209
38210         * NEWS: Mention gpl module name change.
38211
38212         * modules/gpl-3.0: New file, based on gpl-2.0.
38213
38214         * modules/gpl-2.0: Renamed from gpl.
38215
38216         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38217         doc/gpl-2.0.texi.
38218
38219 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38220
38221         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38222         #define __STDC_LIMIT_MACROS temporarily while including
38223         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38224         Problem reported by Joel E. Denny in
38225         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38226
38227 2007-07-01  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/unistdio.h: New file.
38230         * lib/unistdio/u-asnprintf.h: New file.
38231         * lib/unistdio/u-asprintf.h: New file.
38232         * lib/unistdio/u-printf-args.c: New file.
38233         * lib/unistdio/u-printf-args.h: New file.
38234         * lib/unistdio/u-printf-parse.h: New file.
38235         * lib/unistdio/u-snprintf.h: New file.
38236         * lib/unistdio/u-sprintf.h: New file.
38237         * lib/unistdio/u-vasprintf.h: New file.
38238         * lib/unistdio/u-vsnprintf.h: New file.
38239         * lib/unistdio/u-vsprintf.h: New file.
38240         * lib/unistdio/ulc-asnprintf.c: New file.
38241         * lib/unistdio/ulc-asprintf.c: New file.
38242         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38243         * lib/unistdio/ulc-printf-parse.c: New file.
38244         * lib/unistdio/ulc-snprintf.c: New file.
38245         * lib/unistdio/ulc-sprintf.c: New file.
38246         * lib/unistdio/ulc-vasnprintf.c: New file.
38247         * lib/unistdio/ulc-vasprintf.c: New file.
38248         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38249         * lib/unistdio/ulc-vsnprintf.c: New file.
38250         * lib/unistdio/ulc-vsprintf.c: New file.
38251         * lib/unistdio/u8-asnprintf.c: New file.
38252         * lib/unistdio/u8-asprintf.c: New file.
38253         * lib/unistdio/u8-printf-parse.c: New file.
38254         * lib/unistdio/u8-snprintf.c: New file.
38255         * lib/unistdio/u8-sprintf.c: New file.
38256         * lib/unistdio/u8-vasnprintf.c: New file.
38257         * lib/unistdio/u8-vasprintf.c: New file.
38258         * lib/unistdio/u8-vsnprintf.c: New file.
38259         * lib/unistdio/u8-vsprintf.c: New file.
38260         * lib/unistdio/u8-u8-asnprintf.c: New file.
38261         * lib/unistdio/u8-u8-asprintf.c: New file.
38262         * lib/unistdio/u8-u8-snprintf.c: New file.
38263         * lib/unistdio/u8-u8-sprintf.c: New file.
38264         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38265         * lib/unistdio/u8-u8-vasprintf.c: New file.
38266         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38267         * lib/unistdio/u8-u8-vsprintf.c: New file.
38268         * lib/unistdio/u16-asnprintf.c: New file.
38269         * lib/unistdio/u16-asprintf.c: New file.
38270         * lib/unistdio/u16-printf-parse.c: New file.
38271         * lib/unistdio/u16-snprintf.c: New file.
38272         * lib/unistdio/u16-sprintf.c: New file.
38273         * lib/unistdio/u16-vasnprintf.c: New file.
38274         * lib/unistdio/u16-vasprintf.c: New file.
38275         * lib/unistdio/u16-vsnprintf.c: New file.
38276         * lib/unistdio/u16-vsprintf.c: New file.
38277         * lib/unistdio/u16-u16-asnprintf.c: New file.
38278         * lib/unistdio/u16-u16-asprintf.c: New file.
38279         * lib/unistdio/u16-u16-snprintf.c: New file.
38280         * lib/unistdio/u16-u16-sprintf.c: New file.
38281         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38282         * lib/unistdio/u16-u16-vasprintf.c: New file.
38283         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38284         * lib/unistdio/u16-u16-vsprintf.c: New file.
38285         * lib/unistdio/u32-asnprintf.c: New file.
38286         * lib/unistdio/u32-asprintf.c: New file.
38287         * lib/unistdio/u32-printf-parse.c: New file.
38288         * lib/unistdio/u32-snprintf.c: New file.
38289         * lib/unistdio/u32-sprintf.c: New file.
38290         * lib/unistdio/u32-vasnprintf.c: New file.
38291         * lib/unistdio/u32-vasprintf.c: New file.
38292         * lib/unistdio/u32-vsnprintf.c: New file.
38293         * lib/unistdio/u32-vsprintf.c: New file.
38294         * lib/unistdio/u32-u32-asnprintf.c: New file.
38295         * lib/unistdio/u32-u32-asprintf.c: New file.
38296         * lib/unistdio/u32-u32-snprintf.c: New file.
38297         * lib/unistdio/u32-u32-sprintf.c: New file.
38298         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38299         * lib/unistdio/u32-u32-vasprintf.c: New file.
38300         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38301         * lib/unistdio/u32-u32-vsprintf.c: New file.
38302         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38303         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38304         * tests/unistdio/test-ulc-printf1.h: New file.
38305         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38306         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38307         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38308         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38309         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38310         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38311         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38312         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38313         * tests/unistdio/test-u8-asnprintf1.c: New file.
38314         * tests/unistdio/test-u8-asnprintf1.h: New file.
38315         * tests/unistdio/test-u8-printf1.h: New file.
38316         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38317         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38318         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38319         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38320         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38321         * tests/unistdio/test-u8-vasprintf1.c: New file.
38322         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38323         * tests/unistdio/test-u8-vsprintf1.c: New file.
38324         * tests/unistdio/test-u16-asnprintf1.c: New file.
38325         * tests/unistdio/test-u16-asnprintf1.h: New file.
38326         * tests/unistdio/test-u16-printf1.h: New file.
38327         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38328         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38329         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38330         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38331         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38332         * tests/unistdio/test-u16-vasprintf1.c: New file.
38333         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38334         * tests/unistdio/test-u16-vsprintf1.c: New file.
38335         * tests/unistdio/test-u32-asnprintf1.c: New file.
38336         * tests/unistdio/test-u32-asnprintf1.h: New file.
38337         * tests/unistdio/test-u32-printf1.h: New file.
38338         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38339         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38340         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38341         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38342         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38343         * tests/unistdio/test-u32-vasprintf1.c: New file.
38344         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38345         * tests/unistdio/test-u32-vsprintf1.c: New file.
38346         * modules/unistdio/base: New file.
38347         * modules/unistdio/u-printf-args: New file.
38348         * modules/unistdio/ulc-asnprintf: New file.
38349         * modules/unistdio/ulc-asprintf: New file.
38350         * modules/unistdio/ulc-fprintf: New file.
38351         * modules/unistdio/ulc-printf-parse: New file.
38352         * modules/unistdio/ulc-snprintf: New file.
38353         * modules/unistdio/ulc-sprintf: New file.
38354         * modules/unistdio/ulc-vasnprintf: New file.
38355         * modules/unistdio/ulc-vasprintf: New file.
38356         * modules/unistdio/ulc-vfprintf: New file.
38357         * modules/unistdio/ulc-vsnprintf: New file.
38358         * modules/unistdio/ulc-vsprintf: New file.
38359         * modules/unistdio/u8-asnprintf: New file.
38360         * modules/unistdio/u8-asprintf: New file.
38361         * modules/unistdio/u8-printf-parse: New file.
38362         * modules/unistdio/u8-snprintf: New file.
38363         * modules/unistdio/u8-sprintf: New file.
38364         * modules/unistdio/u8-vasnprintf: New file.
38365         * modules/unistdio/u8-vasprintf: New file.
38366         * modules/unistdio/u8-vsnprintf: New file.
38367         * modules/unistdio/u8-vsprintf: New file.
38368         * modules/unistdio/u8-u8-asnprintf: New file.
38369         * modules/unistdio/u8-u8-asprintf: New file.
38370         * modules/unistdio/u8-u8-snprintf: New file.
38371         * modules/unistdio/u8-u8-sprintf: New file.
38372         * modules/unistdio/u8-u8-vasnprintf: New file.
38373         * modules/unistdio/u8-u8-vasprintf: New file.
38374         * modules/unistdio/u8-u8-vsnprintf: New file.
38375         * modules/unistdio/u8-u8-vsprintf: New file.
38376         * modules/unistdio/u16-asnprintf: New file.
38377         * modules/unistdio/u16-asprintf: New file.
38378         * modules/unistdio/u16-printf-parse: New file.
38379         * modules/unistdio/u16-snprintf: New file.
38380         * modules/unistdio/u16-sprintf: New file.
38381         * modules/unistdio/u16-vasnprintf: New file.
38382         * modules/unistdio/u16-vasprintf: New file.
38383         * modules/unistdio/u16-vsnprintf: New file.
38384         * modules/unistdio/u16-vsprintf: New file.
38385         * modules/unistdio/u16-u16-asnprintf: New file.
38386         * modules/unistdio/u16-u16-asprintf: New file.
38387         * modules/unistdio/u16-u16-snprintf: New file.
38388         * modules/unistdio/u16-u16-sprintf: New file.
38389         * modules/unistdio/u16-u16-vasnprintf: New file.
38390         * modules/unistdio/u16-u16-vasprintf: New file.
38391         * modules/unistdio/u16-u16-vsnprintf: New file.
38392         * modules/unistdio/u16-u16-vsprintf: New file.
38393         * modules/unistdio/u32-asnprintf: New file.
38394         * modules/unistdio/u32-asprintf: New file.
38395         * modules/unistdio/u32-printf-parse: New file.
38396         * modules/unistdio/u32-snprintf: New file.
38397         * modules/unistdio/u32-sprintf: New file.
38398         * modules/unistdio/u32-vasnprintf: New file.
38399         * modules/unistdio/u32-vasprintf: New file.
38400         * modules/unistdio/u32-vsnprintf: New file.
38401         * modules/unistdio/u32-vsprintf: New file.
38402         * modules/unistdio/u32-u32-asnprintf: New file.
38403         * modules/unistdio/u32-u32-asprintf: New file.
38404         * modules/unistdio/u32-u32-snprintf: New file.
38405         * modules/unistdio/u32-u32-sprintf: New file.
38406         * modules/unistdio/u32-u32-vasnprintf: New file.
38407         * modules/unistdio/u32-u32-vasprintf: New file.
38408         * modules/unistdio/u32-u32-vsnprintf: New file.
38409         * modules/unistdio/u32-u32-vsprintf: New file.
38410         * modules/unistdio/ulc-asnprintf-tests: New file.
38411         * modules/unistdio/ulc-vasnprintf-tests: New file.
38412         * modules/unistdio/ulc-vasprintf-tests: New file.
38413         * modules/unistdio/ulc-vsnprintf-tests: New file.
38414         * modules/unistdio/ulc-vsprintf-tests: New file.
38415         * modules/unistdio/u8-asnprintf-tests: New file.
38416         * modules/unistdio/u8-vasnprintf-tests: New file.
38417         * modules/unistdio/u8-vasprintf-tests: New file.
38418         * modules/unistdio/u8-vsnprintf-tests: New file.
38419         * modules/unistdio/u8-vsprintf-tests: New file.
38420         * modules/unistdio/u16-asnprintf-tests: New file.
38421         * modules/unistdio/u16-vasnprintf-tests: New file.
38422         * modules/unistdio/u16-vasprintf-tests: New file.
38423         * modules/unistdio/u16-vsnprintf-tests: New file.
38424         * modules/unistdio/u16-vsprintf-tests: New file.
38425         * modules/unistdio/u32-asnprintf-tests: New file.
38426         * modules/unistdio/u32-vasnprintf-tests: New file.
38427         * modules/unistdio/u32-vasprintf-tests: New file.
38428         * modules/unistdio/u32-vsnprintf-tests: New file.
38429         * modules/unistdio/u32-vsprintf-tests: New file.
38430         * MODULES.html.sh (Unicode string functions): Add the new modules.
38431
38432 2007-07-01  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/sprintf.c (sprintf): Limit the available length estimation,
38435         to avoid address wraparound.
38436         * lib/vsprintf.c (vsprintf): Likewise.
38437         * modules/sprintf-posix (Dependencies): Add stdint.
38438         * modules/vsprintf-posix (Dependencies): Likewise.
38439
38440 2007-07-01  Bruno Haible  <bruno@clisp.org>
38441
38442         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38443         Windows PATH as well. Conservative double-quoting. Comments.
38444
38445 2007-07-01  Bruno Haible  <bruno@clisp.org>
38446             Eric Blake  <ebb9@byu.net>
38447             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38448
38449         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38450         empty components in $PATH, denoting '.'.
38451
38452 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38453
38454         * gnulib-tool: Fix indentation.
38455         (func_create_megatestdir): Likewise.
38456         Report by Bruno Haible.
38457
38458 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38459
38460         Sync from Automake.
38461         * build-aux/gnupload: Fix shell portability issues with for loops.
38462         Report by Karl Berry.
38463
38464 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38465
38466         * build-aux/maint.mk (POURL): Use translationproject.org.
38467
38468 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38469             Bruno Haible  <bruno@clisp.org>
38470
38471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38472         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38473         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38474         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38475         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38476
38477 2007-06-27  Bruno Haible  <bruno@clisp.org>
38478
38479         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38480         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38481
38482 2007-06-26  Karl Berry  <karl@gnu.org>
38483
38484         * MODULES.html.sh: remove xreadlink-with-size.
38485
38486 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38487
38488         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38489         method that I hope also handles the double-include problem noted
38490         by Bruno Haible in
38491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38492
38493 2007-06-23  Bruno Haible  <bruno@clisp.org>
38494
38495         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38496         Don't let the 'mostlyclean' target fail if the last subdirectory could
38497         not be removed.
38498         Reported by Karl Berry.
38499
38500 2007-06-23  Bruno Haible  <bruno@clisp.org>
38501
38502         * gnulib-tool (echo): Add a speedier workaround for ksh.
38503         * tests/test-echo.sh: Likewise.
38504
38505 2007-06-23  Bruno Haible  <bruno@clisp.org>
38506
38507         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38508         * tests/test-echo.sh: Likewise.
38509
38510 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38511
38512         * gnulib-tool (IFS): Initialize early, so we don't set it to
38513         empty later.
38514         (self_abspathname): Rewrite algorithm to set it, reindent.
38515         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38516         (func_create_megatestdir): Merge some sed scripts.
38517
38518 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38519
38520         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38521         exposed by Sun Studio 11 cc on Solaris 8.
38522
38523 2007-06-22  Bruno Haible  <bruno@clisp.org>
38524
38525         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38526         backslashes.
38527         * tests/test-echo.sh: New file.
38528
38529 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38530
38531         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38532         simplify `sed_replace_build_aux' scripts, they are portable but
38533         echoing them with `echo' is not.
38534         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38535
38536 2007-06-21  Karl Berry  <karl@gnu.org>
38537
38538         * config/srclist.txt: guess we can't handle the licenses via
38539         srclist at the moment.
38540
38541 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38542
38543         * MODULES.html.sh: Add include_next.
38544         * modules/include_next: New file.
38545
38546 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38547
38548         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38549         INCLUDE_NEXT.
38550         (gl_CHECK_NEXT_HEADERS): New macro.
38551         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38552         the obsolescent gl_ABSOLUTE_HEADER.
38553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38554         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38555         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38556         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38557         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38558         * m4/math_h.m4 (gl_MATH_H): Likewise.
38559         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38560         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38561         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38562         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38563         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38564         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38565         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38570         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38571         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38572         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38573         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38574         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38575         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38576         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38577         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38578         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38579         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38580         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38581         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38582         * lib/float_.h: Likewise.
38583         * lib/inttypes_.h: Likewise.
38584         * lib/math_.h: Likewise.
38585         * lib/search_.h: Likewise.
38586         * lib/signal_.h: Likewise.
38587         * lib/stdint_.h: Likewise.
38588         * lib/stdio_.h: Likewise.
38589         * lib/stdlib_.h: Likewise.
38590         * lib/string_.h: Likewise.
38591         * lib/sys_stat_.h: Likewise.
38592         * lib/sys_time_.h: Likewise.
38593         * lib/time_.h: Likewise.
38594         * lib/unistd_.h: Likewise.
38595         * lib/wchar_.h: Likewise.
38596         * lib/wctype_.h: Likewise.
38597         * lib/dirent_.h: Likewise.
38598         * lib/iconv_.h: Likewise.
38599         * lib/locale_.h: Likewise.
38600         * lib/netinet_in_.h: Likewise.
38601         * lib/sys_select_.h: Likewise.
38602         * lib/sys_socket_.h: Likewise.
38603         * lib/sysexits_.h: Likewise.
38604         * modules/fcntl (Depends-on): Depend on include_next, not
38605         absolute_header.
38606         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38607         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38608         * modules/fchdir: Likewise.
38609         * modules/float: Likewise.
38610         * modules/iconv_open: Likewise.
38611         * modules/inttypes: Likewise.
38612         * modules/locale: Likewise.
38613         * modules/math: Likewise.
38614         * modules/netinet_in: Likewise.
38615         * modules/search: Likewise.
38616         * modules/signal: Likewise.
38617         * modules/stdint: Likewise.
38618         * modules/stdio: Likewise.
38619         * modules/stdlib: Likewise.
38620         * modules/string: Likewise.
38621         * modules/sys_select: Likewise.
38622         * modules/sys_socket: Likewise.
38623         * modules/sys_stat: Likewise.
38624         * modules/sys_time: Likewise.
38625         * modules/sysexits: Likewise.
38626         * modules/time: Likewise.
38627         * modules/unistd: Likewise.
38628         * modules/wchar: Likewise.
38629         * modules/wctype: Likewise.
38630         * modules/sys_stat: Change maintainer to "all".
38631         * modules/unistd: Likewise.
38632
38633 2007-06-20  Karl Berry  <karl@gnu.org>
38634
38635         * config/srclist.txt: track www changes in license files.
38636
38637 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38638
38639         * build-aux/bootstrap: Remove stray dot.
38640         Make sure build_aux settings are honored when linking
38641         gnulib_extra_files.
38642
38643 2007-06-19  Eric Blake  <ebb9@byu.net>
38644
38645         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38646         Allow compilation on cygwin.
38647
38648 2007-06-19  Jim Meyering  <jim@meyering.net>
38649
38650         xreadlink-with-size: Remove module.  No longer used.
38651         Ex-callers now use xreadlink or mreadlink-with-size.
38652         * modules/xreadlink-with-size: Remove module.
38653         * lib/xreadlink-with-size.c: Remove file.
38654         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38655         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38656         just before the function definition *is* accurate.
38657
38658         Eliminate one way canonicalize_filename_mode could exit.
38659         * lib/canonicalize.c (canonicalize_filename_mode):
38660         Use mreadlink_with_size, not xreadlink_with_size.
38661
38662 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38663
38664         Detect porting problems to FreeBSD/arm, which has time_t wider than
38665         long int.  Original problem reported for GNU diff by Xin Li in
38666         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38667         * modules/getdate (Depends-on): Add intprops, verify.
38668         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38669         is an integer type no wider than long int.
38670
38671 2007-06-18  Jim Meyering  <jim@meyering.net>
38672
38673         New module: mreadlink-with-size.
38674         * MODULES.html.sh: Add mreadlink-with-size.
38675         * modules/mreadlink-with-size: New module
38676         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38677         not xreadlink-with-size.
38678         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38679
38680 2007-06-16  Bruno Haible  <bruno@clisp.org>
38681
38682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38683         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38684         Reported by Gary V. Vaughan <gary@gnu.org>.
38685
38686 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38687
38688         Revamp lchown so that it lives in unistd.h where it belongs.
38689         * lib/lchown.h: Remove.
38690         * lib/dirchownmod.c: Don't include lib/lchown.h.
38691         * lib/fchownat.c: Likewise.
38692         * lib/openat.c: Likewise.
38693         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38694         does not follow symlinks.
38695         (EOPNOTSUPP): Define if not defined.
38696         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38697         is defined to 0.
38698         (lchown): New decl.
38699         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38700         Do not check for lchown decl.
38701         Set REPLACE_LCHOWN.
38702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38703         REPLACE_LCHOWN.
38704         * modules/chown: Make it clear it follows symlinks.
38705         * modules/lchown: Make it clear it doesn't follow symlinks.
38706         (Files): Remove lib/lchown.h
38707         (Depends-on): Add unistd.
38708         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38709         (Include): Include <unistd.h>, not "lchown.h".
38710         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38711         REPLACE_LCHOWN.
38712
38713 2007-06-15  Jim Meyering  <jim@meyering.net>
38714
38715         Change license (GPL to LGPL) of fsusage and dependents.
38716         * modules/fsusage (License): Change to LGPL.
38717         * modules/full-read (License): Likewise.
38718         * modules/full-write (License): Likewise.
38719         * modules/safe-read (License): Likewise.
38720         * modules/safe-write (License): Likewise.
38721
38722 2007-06-14  Ben Pfaff  <blp@gnu.org>
38723
38724         Missing part of allocsa -> malloca transition.
38725         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38726         gl_MALLOCA.
38727
38728 2007-06-12  Bruno Haible  <bruno@clisp.org>
38729
38730         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38731         to ia64, x86_64, i386.
38732         Reported by Eric Blake.
38733
38734 2007-06-12  Bruno Haible  <bruno@clisp.org>
38735
38736         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38737         cross-compiling to x86_64.
38738
38739 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38740
38741         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38742         glitch reported by Ralf Wildenhues in
38743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38744
38745         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38746         Vin Shelton.
38747
38748 2007-06-11  Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38751         replacement string.
38752         Reported by Eric Blake.
38753
38754 2007-06-10  Bruno Haible  <bruno@clisp.org>
38755
38756         Prepare vasnprintf code for use with Unicode strings.
38757         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38758         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38759         TYPE_U32_STRING.
38760         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38761         a_u32_string variants.
38762         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38763         * lib/printf-args.c: Don't include config.h and the specification
38764         header if PRINTF_FETCHARGS is already defined.
38765         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38766         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38767         TYPE_U16_STRING, TYPE_U32_STRING.
38768         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38769         u16_directive, u16_directives, u32_directive, u32_directives): New
38770         types.
38771         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38772         New declarations.
38773         * lib/printf-parse.c: Don't include config.h and the specification
38774         header if PRINTF_PARSE is already defined. Eliminate the set of
38775         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38776         them now. Include c-ctype.h.
38777         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38778         directive and CHAR_T_ONLY_ASCII.
38779         * lib/vasnprintf.c: Don't include config.h and the specification header
38780         if VASNPRINTF is already defined.
38781         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38782         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38783         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38784         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38785         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38786         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38787         code accordingly.
38788         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38789         pad_ourselves also in this case, with the 'c' and 's' directives, and
38790         with a different notion of "width".
38791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38792
38793 2007-06-10  Bruno Haible  <bruno@clisp.org>
38794
38795         * modules/unistr/u32-mbsnlen: New file.
38796         * lib/unistr/u32-mbsnlen.c: New file.
38797
38798         * modules/unistr/u16-mbsnlen: New file.
38799         * lib/unistr/u16-mbsnlen.c: New file.
38800
38801         * modules/unistr/u8-mbsnlen: New file.
38802         * lib/unistr/u8-mbsnlen.c: New file.
38803
38804         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38805         declarations.
38806
38807 2007-06-10  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/string_.h (mbsnlen): New declaration.
38810         * lib/mbsnlen.c: New file.
38811         * m4/mbsnlen.m4: New file.
38812         * modules/mbsnlen: New file.
38813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38814         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38815         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38816
38817 2007-06-10  Bruno Haible  <bruno@clisp.org>
38818
38819         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38820
38821 2007-06-10  Bruno Haible  <bruno@clisp.org>
38822
38823         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38824         * lib/mbuiter.h: Likewise.
38825
38826 2007-06-10  Bruno Haible  <bruno@clisp.org>
38827
38828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38829         declaration.
38830
38831 2007-06-10  Karl Berry  <karl@gnu.org>
38832
38833         * config/srclist.txt: remove gettext entries, Bruno prefers
38834         to update individually.
38835
38836 2007-06-10  Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38839         'maxlen'. Ensure only length + width bytes are allocated, not
38840         length + 1 + width.
38841
38842 2007-06-09  Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38845         (CHAR_T): Remove macro.
38846         (VASNPRINTF): Update.
38847
38848 2007-06-09  Bruno Haible  <bruno@clisp.org>
38849
38850         * MODULES.html.sh (Unicode string functions): Add the new modules.
38851
38852         * modules/uniconv/u32-conv-to-enc: New file.
38853         * lib/uniconv/u32-conv-to-enc.c: New file.
38854         * modules/uniconv/u32-conv-to-enc-tests: New file.
38855         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38856
38857         * modules/uniconv/u16-conv-to-enc: New file.
38858         * lib/uniconv/u16-conv-to-enc.c: New file.
38859         * lib/uniconv/u-conv-to-enc.h: New file.
38860         * modules/uniconv/u16-conv-to-enc-tests: New file.
38861         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38862
38863         * modules/uniconv/u8-conv-to-enc: New file.
38864         * lib/uniconv/u8-conv-to-enc.c: New file.
38865         * modules/uniconv/u8-conv-to-enc-tests: New file.
38866         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38867
38868         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38869         u32_conv_to_encoding): New declarations.
38870
38871 2007-06-09  Bruno Haible  <bruno@clisp.org>
38872
38873         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38874
38875 2007-06-09  Bruno Haible  <bruno@clisp.org>
38876
38877         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38878         * modules/malloca: Renamed from modules/allocsa, updated.
38879         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38880         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38881         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38882         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38883         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38884         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38885         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38886         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38887         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38888         * modules/c-strcasestr (Depends-on): Update.
38889         * lib/c-strcasestr.c: Update.
38890         * modules/c-strstr (Depends-on): Update.
38891         * lib/c-strstr.c: Update.
38892         * modules/canonicalize-lgpl (Depends-on): Update.
38893         * lib/canonicalize-lgpl.c: Update.
38894         * modules/clean-temp (Depends-on): Update.
38895         * lib/clean-temp.c: Update.
38896         * modules/csharpcomp (Depends-on): Update.
38897         * lib/csharpcomp.c: Update.
38898         * modules/csharpexec (Depends-on): Update.
38899         * lib/csharpexec.c: Update.
38900         * modules/javacomp (Depends-on): Update.
38901         * lib/javacomp.c: Update.
38902         * modules/javaexec (Depends-on): Update.
38903         * lib/javaexec.c: Update.
38904         * modules/mbscasestr (Depends-on): Update.
38905         * lib/mbscasestr.c: Update.
38906         * modules/mbsstr (Depends-on): Update.
38907         * lib/mbsstr.c: Update.
38908         * modules/setenv (Depends-on): Update.
38909         * lib/setenv.c: Update.
38910         * modules/strcasestr (Depends-on): Update.
38911         * lib/strcasestr.c: Update.
38912         * modules/striconveha (Depends-on): Update.
38913         * lib/striconveha.c: Update.
38914         * modules/relocatable-prog-wrapper (Files): Update.
38915         * lib/relocwrapper.c: Update.
38916         * build-aux/install-reloc: Update.
38917         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38918
38919 2007-06-08  Bruno Haible  <bruno@clisp.org>
38920
38921         Port to uClibc.
38922         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38923         * lib/fpurge.c (fpurge): Likewise.
38924         * lib/freading.c (freading): Likewise.
38925         * lib/fseeko.c (rpl_fseeko): Likewise.
38926         * lib/fseterr.c (fseterr): Likewise.
38927         * lib/fwriting.c (fwriting): Likewise.
38928         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38929
38930 2007-06-08  Bruno Haible  <bruno@clisp.org>
38931
38932         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38933         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38934         * modules/gettext (Files): Add m4/intlmacosx.m4.
38935
38936 2007-06-07  Bruno Haible  <bruno@clisp.org>
38937
38938         * modules/localename-tests: New file.
38939         * tests/test-localename.c: New file.
38940
38941         New module 'localename'.
38942         * lib/localename.h: New file.
38943         * lib/localename.c: New file, from GNU gettext.
38944         * m4/localename.m4: New file.
38945         * modules/localename: New file.
38946
38947 2007-06-07  Bruno Haible  <bruno@clisp.org>
38948
38949         Work around the lack of <wchar.h> on some builds of uClibc.
38950         * doc/headers/wchar.texi: Update.
38951         * lib/wchar_.h: Include <wchar.h> only if it exists.
38952         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38953         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38954         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38955         doesn't exist.
38956         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38957         * modules/mbfile (Depends-on): Add wchar.
38958         * modules/mbiter (Depends-on): Likewise.
38959         * modules/mbuiter (Depends-on): Likewise.
38960         Reported by Simon Josefsson.
38961
38962 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38963
38964         Work around problem reported by Steven M. Schweda in
38965         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38966         Tru64 5.1B with the Compaq compiler environment installed declares
38967         an 'isblank' function but does not define it in the C library.
38968         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38969         * lib/regex_internal.h (isblank): Likewise.
38970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38971         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38972
38973 2007-06-05  Bruno Haible  <bruno@clisp.org>
38974
38975         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38976         ia64.
38977         * modules/printf-safe: New file.
38978         * modules/fprintf-posix (Depends-on): Add printf-safe.
38979         * modules/printf-posix (Depends-on): Likewise.
38980         * modules/snprintf-posix (Depends-on): Likewise.
38981         * modules/sprintf-posix (Depends-on): Likewise.
38982         * modules/vasnprintf-posix (Depends-on): Likewise.
38983         * modules/vasprintf-posix (Depends-on): Likewise.
38984         * modules/vfprintf-posix (Depends-on): Likewise.
38985         * modules/vprintf-posix (Depends-on): Likewise.
38986         * modules/vsnprintf-posix (Depends-on): Likewise.
38987         * modules/vsprintf-posix (Depends-on): Likewise.
38988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38989         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38990         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38991         "no" on i386, x86_64, ia64.
38992         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38993         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38994         on i386, x86_64, ia64.
38995         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38996         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38997         on i386, x86_64, ia64.
38998         * tests/test-vasnprintf-posix.c: Include float.h.
38999         (LDBL80_WORDS): New macro.
39000         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39001         on i386, x86_64, ia64.
39002         * tests/test-vasprintf-posix.c: Include float.h.
39003         (LDBL80_WORDS): New macro.
39004         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39005         on i386, x86_64, ia64.
39006         * tests/test-snprintf-posix.c: Include float.h.
39007         * tests/test-sprintf-posix.c: Likewise.
39008         * tests/test-vsnprintf-posix.c: Likewise.
39009         * tests/test-vsprintf-posix.c: Likewise.
39010
39011 2007-06-05  Bruno Haible  <bruno@clisp.org>
39012
39013         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39014         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39015         non-IEEE numbers on i386, x86_64, ia64.
39016         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39017         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39018         * tests/test-isnanl.h: Include float.h.
39019         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39020
39021 2007-06-05  Bruno Haible  <bruno@clisp.org>
39022
39023         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39024         also the %a / %A. Handle the %a / %A code before this extra handling.
39025
39026 2007-06-05  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39029         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39030
39031 2007-06-05  Bruno Haible  <bruno@clisp.org>
39032
39033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39034         typo in variable name.
39035
39036 2007-06-05  Eric Blake  <ebb9@byu.net>
39037
39038         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39039         Reported by Simon Josefsson.
39040
39041 2007-06-04  Bruno Haible  <bruno@clisp.org>
39042
39043         Avoid test failures on some PowerPC platforms.
39044         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39045         Define differently for PowerPC.
39046         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39047         Reported by Gary V. Vaughan <gary@gnu.org>.
39048
39049 2007-06-02  Bruno Haible  <bruno@clisp.org>
39050
39051         Fix test-stdint failure on FreeBSD/ia64.
39052         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39053         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39054         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39055         * doc/headers/stdint.texi: Update.
39056
39057 2007-06-01  Bruno Haible  <bruno@clisp.org>
39058
39059         * tests/test-binary-io.c (main): Pass a third argument to open().
39060         Reported by Gary V. Vaughan <gary@gnu.org>.
39061
39062 2007-06-01  Bruno Haible  <bruno@clisp.org>
39063
39064         * doc/functions/frexpl.texi: Update for mingw.
39065
39066 2007-06-01  Bruno Haible  <bruno@clisp.org>
39067
39068         * tests/test-lseek.c (main): Disable test of errno for invalid third
39069         argument.
39070         * doc/functions/lseek.texi: Update.
39071         Reported by Gary V. Vaughan <gary@gnu.org>.
39072
39073 2007-05-28  Bruno Haible  <bruno@clisp.org>
39074
39075         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39076
39077 2007-05-31  Eric Blake  <ebb9@byu.net>
39078
39079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39080         cross compiling.
39081
39082 2007-05-30  Eric Blake  <ebb9@byu.net>
39083         and Bruno Haible  <bruno@clisp.org>
39084
39085         Work around mingw test failures exposed by m4-1.4.9b.
39086         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39087         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39088         moment.
39089
39090 2007-05-30  Bruno Haible  <bruno@clisp.org>
39091
39092         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39093         assuming that they are closed. Needed on HP-UX 11.
39094
39095 2007-05-29  Bruno Haible  <bruno@clisp.org>
39096
39097         Fix a problem with #include_next.
39098         * lib/dirent_.h: Split the double-inclusion guard.
39099         * lib/fcntl_.h: Likewise.
39100         * lib/float_.h: Likewise.
39101         * lib/iconv_.h: Likewise.
39102         * lib/inttypes_.h: Likewise.
39103         * lib/locale_.h: Likewise.
39104         * lib/math_.h: Likewise.
39105         * lib/netinet_in_.h: Likewise.
39106         * lib/search_.h: Likewise.
39107         * lib/signal_.h: Likewise.
39108         * lib/stdint_.h: Likewise.
39109         * lib/stdio_.h: Likewise.
39110         * lib/stdlib_.h: Likewise.
39111         * lib/string_.h: Likewise.
39112         * lib/sys_select_.h: Likewise.
39113         * lib/sys_socket_.h: Likewise.
39114         * lib/sys_stat_.h: Likewise.
39115         * lib/sys_time_.h: Likewise.
39116         * lib/sysexits_.h: Likewise.
39117         * lib/time_.h: Likewise.
39118         * lib/unistd_.h: Likewise.
39119         * lib/wchar_.h: Likewise.
39120         * lib/wctype_.h: Likewise.
39121
39122 2007-05-29  Bruno Haible  <bruno@clisp.org>
39123
39124         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39125         for the moment.
39126
39127 2007-05-29  Bruno Haible  <bruno@clisp.org>
39128
39129         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39130         invocation.
39131         Reported by Eric Blake.
39132
39133 2007-05-29  Bruno Haible  <bruno@clisp.org>
39134
39135         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39136         compiling case.
39137
39138 2007-05-29  Eric Blake  <ebb9@byu.net>
39139             Bruno Haible  <bruno@clisp.org>
39140
39141         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39142         cross compiles.
39143
39144 2007-05-28  Eric Blake  <ebb9@byu.net>
39145
39146         * modules/closein-tests (test_closein_LDADD): Support test on
39147         cygwin with libtool.
39148
39149 2007-05-28  Bruno Haible  <bruno@clisp.org>
39150
39151         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39152         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39153         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39154         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39155         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39156         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39157         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39158         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39159         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39160
39161 2007-05-28  Eric Blake  <ebb9@byu.net>
39162
39163         Unconditionally include <config.h> in unit tests.
39164         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39165         * tests/test-allocsa.c, tests/test-arcfour.c,
39166         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39167         tests/test-array_list.c, tests/test-array_oset.c,
39168         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39169         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39170         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39171         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39172         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39173         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39174         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39175         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39176         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39177         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39178         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39179         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39180         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39181         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39182         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39183         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39184         test-md5.c, test-memmem.c, test-printf-posix.c,
39185         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39186         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39187         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39188         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39189         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39190         test-vasnprintf-posix2.c, test-vasnprintf.c,
39191         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39192         test-vfprintf-posix.c, test-vprintf-posix.c,
39193         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39194         test-xvasprintf.c: Likewise.
39195
39196 2007-05-28  Bruno Haible  <bruno@clisp.org>
39197
39198         * gnulib-tool (func_import): Remember the --with-tests command-line
39199         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39200         Reported by Eric Blake.
39201
39202 2007-05-28  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/ftell-tests: New file.
39205         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39206         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39207
39208         * lib/ftell.c: New file.
39209         * modules/ftell: New file.
39210         * m4/ftell.m4: New file.
39211         * doc/functions/ftell.texi: Update.
39212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39213         REPLACE_FTELL.
39214         * lib/stdio_.h (rpl_ftell): New declaration.
39215         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39216         REPLACE_FTELL.
39217
39218 2007-05-28  Eric Blake  <ebb9@byu.net>
39219
39220         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39221
39222 2007-05-28  Bruno Haible  <bruno@clisp.org>
39223
39224         * modules/fseek-tests: New file.
39225         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39226         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39227
39228         * lib/fseek.c: New file.
39229         * modules/fseek: New file.
39230         * m4/fseek.m4: New file.
39231         * doc/functions/fseek.texi: Update.
39232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39233         REPLACE_FSEEK.
39234         * lib/stdio_.h (rpl_fseek): New declaration.
39235         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39236         REPLACE_FSEEK.
39237
39238 2007-05-28  Bruno Haible  <bruno@clisp.org>
39239
39240         * lib/stdio_.h (fflush): More comments.
39241
39242 2007-05-28  Bruno Haible  <bruno@clisp.org>
39243
39244         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39245         runtime test.
39246
39247 2007-05-28  Eric Blake  <ebb9@byu.net>
39248
39249         Improve lseek module.
39250         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39251         * lib/unistd_.h (lseek): Scale back link warning message.
39252         * tests/test-lseek.c: Beef up test.
39253         * tests/test-lseek.sh: Exercise more facets of lseek.
39254         Reported by Bruno Haible.
39255
39256 2007-05-28  Bruno Haible  <bruno@clisp.org>
39257
39258         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39259         to define.
39260
39261 2007-05-27  Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39264
39265 2007-05-27  Bruno Haible  <bruno@clisp.org>
39266
39267         * modules/openmp: New file.
39268         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39269         Noah Misch.
39270
39271 2007-05-26  Bruno Haible  <bruno@clisp.org>
39272
39273         * modules/chdir-long (Depends-on): Add fchdir.
39274         * modules/chdir-safer (Depends-on): Likewise.
39275         * modules/fts (Depends-on): Likewise.
39276         * modules/fts-lgpl (Depends-on): Likewise.
39277         * modules/openat (Depends-on): Likewise.
39278         * modules/savewd (Depends-on): Likewise.
39279
39280 2007-05-24  Eric Blake  <ebb9@byu.net>
39281
39282         Fix lseek on mingw.
39283         * modules/lseek: New module.
39284         * m4/lseek.m4: New file.
39285         * lib/lseek.c: New file.
39286         * modules/lseek-tests: New file.
39287         * tests/test-lseek.c: New file.
39288         * tests/test-lseek.sh: New file.
39289         * MODULES.html.sh: Document lseek module.
39290         * modules/fflush (Depends-on): Add lseek, fseeko.
39291         * modules/fseeko (Depends-on): Likewise.
39292         * modules/ftello (Depends-on): Likewise.
39293         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39294         broken.
39295         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39296         broken.
39297         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39298         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39299         * lib/ftello.c (rpl_ftello): Likewise.
39300         * tests/test-fseeko.c (main): Test this.
39301         * tests/test-fseeko.sh: Likewise.
39302         * tests/test-ftello.c (main): Likewise.
39303         * tests/test-ftello.sh: Likewise.
39304         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39305         implies replacing fseek.
39306         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39307         HAVE_FTELLO.
39308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39309         * modules/unistd (Makefile.am): Likewise.
39310         * lib/unistd_.h (lseek): Declare a replacement.
39311         * doc/functions/lseek.texi (lseek): Document this fix.
39312         * doc/functions/fseek.texi (fseek): Likewise.
39313         * doc/functions/ftell.texi (ftell): Likewise.
39314
39315 2007-05-24  Bruno Haible  <bruno@clisp.org>
39316
39317         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39318         in the printed representation of a NaN.
39319         * tests/test-vasprintf-posix.c (test_function): Likewise.
39320         * tests/test-snprintf-posix.h (test_function): Likewise.
39321         * tests/test-sprintf-posix.h (test_function): Likewise.
39322         Reported by Eric Blake.
39323
39324 2007-05-23  Eric Blake  <ebb9@byu.net>
39325
39326         Fix fseeko/ftello on cygwin 1.5.24.
39327         * doc/functions/fseeko.texi (fseeko): Document the fix.
39328         * doc/functions/ftello.texi (ftello): Document the fix.
39329         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39330         * doc/functions/stdout.text (stdout): New file.
39331         * doc/functions/stderr.text (stderr): New file.
39332         * doc/gnulib.texi (Function Substitutes): Use new files.
39333         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39334         prior to 1.7.0.
39335         * tests/test-ftello.c (main): Likewise for ftello.
39336         * tests/test-fseeko.sh: New file.
39337         * tests/test-ftello.sh: New file.
39338         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39339         with seekable stdin.
39340         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39342         (gl_REPLACE_FSEEKO): New macro.
39343         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39344         * modules/fseeko (Files): Distribute fseeko.c.
39345         * modules/ftello (Files): Distribute ftello.c.
39346         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39347         mode.
39348         * lib/ftello.c (rpl_ftello): New file.
39349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39350         fseeko, ftello.
39351         (gl_STDIN_LARGE_OFFSET): New macro.
39352         * modules/stdio (Makefile.am): Perform the replacement.
39353         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39354
39355 2007-05-23  Bruno Haible  <bruno@clisp.org>
39356
39357         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39358         GNULIB_POSIXCHECK is defined.
39359
39360 2007-05-21  Bruno Haible  <bruno@clisp.org>
39361
39362         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39363         Check also the output for NaN arguments. When cross-compiling, guess
39364         no on IRIX.
39365         * lib/vasnprintf.c: Update comments.
39366         * tests/test-vasnprintf-posix.c (strisnan): New function.
39367         (test_function): Use it.
39368         * tests/test-vasprintf-posix.c (strisnan): New function.
39369         (test_function): Use it.
39370         * tests/test-snprintf-posix.h (strisnan): New function.
39371         (test_function): Use it.
39372         * tests/test-sprintf-posix.h (strisnan): New function.
39373         (test_function): Use it.
39374         Reported by Eric Blake.
39375
39376 2007-05-20  Bruno Haible  <bruno@clisp.org>
39377
39378         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39379         numbers that fails on BeOS.
39380         * doc/functions/frexpl.texi: Update.
39381
39382 2007-05-20  Jim Meyering  <jim@meyering.net>
39383
39384         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39385         forced upon us by glibc-2.6.
39386
39387 2007-05-20  Bruno Haible  <bruno@clisp.org>
39388
39389         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39390         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39391         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39392         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39393         NEED_PRINTF_INFINITE.
39394         (is_infinitel): New function.
39395         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39397         gl_PREREQ_VASNPRINTF_INFINITE.
39398         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39400         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39401         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39402         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39403         gl_PREREQ_VASNPRINTF_INFINITE.
39404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39406         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39408         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39409         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39410         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39411         * doc/functions/fprintf.texi: Update.
39412         * doc/functions/printf.texi: Update.
39413         * doc/functions/snprintf.texi: Update.
39414         * doc/functions/sprintf.texi: Update.
39415         * doc/functions/vfprintf.texi: Update.
39416         * doc/functions/vprintf.texi: Update.
39417         * doc/functions/vsnprintf.texi: Update.
39418         * doc/functions/vsprintf.texi: Update.
39419
39420 2007-05-20  Bruno Haible  <bruno@clisp.org>
39421
39422         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39423         was not found in libc.
39424         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39425
39426 2007-05-20  Bruno Haible  <bruno@clisp.org>
39427
39428         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39429         printed as "-nan" instead of "nan".
39430         * tests/test-vasprintf-posix.c (test_function): Likewise.
39431         * tests/test-snprintf-posix.h (test_function): Likewise.
39432         * tests/test-sprintf-posix.h (test_function): Likewise.
39433         Needed for HP-UX 11.
39434
39435 2007-05-20  Jim Meyering  <jim@meyering.net>
39436
39437         Fix buggy test for the fchownat-deref bug.
39438         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39439         symlink required for the run-test.  Without it, this test would
39440         always declare that fchownat doesn't work, and client code would
39441         unnecessarily use the replacement function with fixed libc.
39442         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39443         Reported by Greg Schafer.
39444
39445 2007-05-19  Bruno Haible  <bruno@clisp.org>
39446
39447         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39448         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39449         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39450         Needed for IRIX 6.5 and Solaris 2.5.1.
39451
39452 2007-05-19  Bruno Haible  <bruno@clisp.org>
39453
39454         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39455         (test_function): Skip tests involving -0.0 on platforms where
39456         -0.0 = 0.0.
39457         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39458         (test_function): Skip tests involving -0.0 on platforms where
39459         -0.0 = 0.0.
39460         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39461         (test_function): Skip tests involving -0.0 on platforms where
39462         -0.0 = 0.0.
39463         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39464         (test_function): Skip tests involving -0.0 on platforms where
39465         -0.0 = 0.0.
39466         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39467         tests.
39468         * tests/test-printf-posix.h (test_function): Likewise.
39469         * tests/test-printf-posix.output: Remove all -0.0 related results.
39470         Needed for IRIX 6.5.
39471
39472 2007-05-19  Bruno Haible  <bruno@clisp.org>
39473
39474         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39475         printed as "nan0x7fffffff" instead of "nan".
39476         * tests/test-vasprintf-posix.c (test_function): Likewise.
39477         * tests/test-snprintf-posix.h (test_function): Likewise.
39478         * tests/test-sprintf-posix.h (test_function): Likewise.
39479         * tests/test-fprintf-posix.h (NaN): Remove macro.
39480         (test_function): Remove all NaN related tests.
39481         * tests/test-printf-posix.h (NaN): Remove macro.
39482         (test_function): Remove all NaN related tests.
39483         * tests/test-printf-posix.output: Remove all NaN related results.
39484         Needed for IRIX 6.5.
39485
39486 2007-05-19  Bruno Haible  <bruno@clisp.org>
39487
39488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39490
39491 2007-05-19  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/float_.h: New file.
39494         * m4/float_h.m4: New file.
39495         * modules/float: New file.
39496         * modules/isnanl (Dependencies): Add float.
39497         * modules/isnanl-nolibm (Dependencies): Likewise.
39498         * modules/mathl (Dependencies): Likewise.
39499         * modules/printf-frexpl (Dependencies): Likewise.
39500         * modules/signbit (Dependencies): Likewise.
39501         * modules/vasnprintf (Dependencies): Likewise.
39502         * doc/headers/float.texi: Update.
39503
39504 2007-05-19  Jim Meyering  <jim@meyering.net>
39505
39506         * lib/utimens.c (gl_futimens): Rename from futimens,
39507         now that glibc-2.6 declares futimens.
39508         * lib/utimens.h: Likewise.
39509
39510 2007-05-19  Bruno Haible  <bruno@clisp.org>
39511
39512         Avoid test failures on mingw.
39513         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39514         * tests/test-printf-posix.sh: Likewise.
39515         * tests/test-vfprintf-posix.sh: Likewise.
39516         * tests/test-vprintf-posix.sh: Likewise.
39517
39518 2007-05-19  Bruno Haible  <bruno@clisp.org>
39519
39520         Fix *printf result for NaN, Inf, -0.0 on mingw.
39521         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39522         * lib/vasnprintf.c: Include math.h and isnan.h.
39523         (is_infinite_or_zero): New function.
39524         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39525         values in the %f, %F, %e, %E, %g, %G directives.
39526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39528         gl_PRINTF_INFINITE and test its result. Invoke
39529         gl_PREREQ_VASNPRINTF_INFINITE.
39530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39537         * doc/functions/fprintf.texi: Update.
39538         * doc/functions/printf.texi: Update.
39539         * doc/functions/snprintf.texi: Update.
39540         * doc/functions/sprintf.texi: Update.
39541         * doc/functions/vfprintf.texi: Update.
39542         * doc/functions/vprintf.texi: Update.
39543         * doc/functions/vsnprintf.texi: Update.
39544         * doc/functions/vsprintf.texi: Update.
39545
39546 2007-05-19  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39549         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39550         Instead of multiplying with 10^k, set extra_zeroes to k.
39551         (scale10_round_long_double): Remove function.
39552
39553 2007-05-18  Bruno Haible  <bruno@clisp.org>
39554
39555         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39556         introduced on 2007-05-06.
39557
39558 2007-05-18  Bruno Haible  <bruno@clisp.org>
39559
39560         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39561         %g directives.
39562         * tests/test-vasprintf-posix.c (test_function): Likewise.
39563         * tests/test-snprintf-posix.h (test_function): Likewise.
39564         * tests/test-sprintf-posix.h (test_function): Likewise.
39565
39566 2007-05-18  Bruno Haible  <bruno@clisp.org>
39567
39568         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39569         (strmatch): New function.
39570         (test_function): Test the %f directive on numbers of various exponents.
39571         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39572         (strmatch): New function.
39573         (test_function): Test the %f directive on numbers of various exponents.
39574         * tests/test-snprintf-posix.h (strmatch): New function.
39575         (test_function): Test the %f directive on numbers of various exponents.
39576         * tests/test-sprintf-posix.h (strmatch): New function.
39577         (test_function): Test the %f directive on numbers of various exponents.
39578         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39579         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39580         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39581         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39582
39583 2007-05-18  Bruno Haible  <bruno@clisp.org>
39584
39585         Add support for 'long double' number output.
39586         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39587         * lib/vasnprintf.c: Include math.h and float+.h.
39588         (mp_limb_t): New type.
39589         (GMP_LIMB_BITS): New macro.
39590         (mp_twolimb_t): New type.
39591         (GMP_TWOLIMB_BITS): New macro.
39592         (mpn_t): New type.
39593         (multiply, divide, convert_to_decimal, decode_long_double,
39594         scale10_round_long_double, scale10_round_decimal_long_double,
39595         floorlog10l): New functions.
39596         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39597         for the %f, %F, %e, %E, %g, %G directives.
39598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39600         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39601         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39604         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39605         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39606         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39607         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39608         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39609         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39610         * modules/snprintf-posix (Depends-on): Likewise.
39611         * modules/sprintf-posix (Depends-on): Likewise.
39612         * modules/vasnprintf-posix (Depends-on): Likewise.
39613         * modules/vasprintf-posix (Depends-on): Likewise.
39614         * modules/vfprintf-posix (Depends-on): Likewise.
39615         * modules/vsnprintf-posix (Depends-on): Likewise.
39616         * modules/vsprintf-posix (Depends-on): Likewise.
39617         * modules/vasnprintf (Files): Add lib/float+.h.
39618         * doc/functions/fprintf.texi: Update.
39619         * doc/functions/printf.texi: Update.
39620         * doc/functions/snprintf.texi: Update.
39621         * doc/functions/sprintf.texi: Update.
39622         * doc/functions/vfprintf.texi: Update.
39623         * doc/functions/vprintf.texi: Update.
39624         * doc/functions/vsnprintf.texi: Update.
39625         * doc/functions/vsprintf.texi: Update.
39626
39627 2007-05-18  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39630
39631 2007-05-18  Bruno Haible  <bruno@clisp.org>
39632
39633         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39634         for printing 64-bit integers. Needed for mingw.
39635
39636 2007-05-18  Bruno Haible  <bruno@clisp.org>
39637
39638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39639         gl_FUNC_FREXPL_WORKS.
39640         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39641
39642 2007-05-18  Bruno Haible  <bruno@clisp.org>
39643
39644         * modules/frexpl-nolibm-tests: New file.
39645
39646         * modules/frexpl-nolibm: New file.
39647         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39648
39649 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39650
39651         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39652         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39653         GCC 4.2, which otherwise issues a lot of warnings.
39654         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39655         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39656         Likewise.
39657         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39658         * modules/iconv_open (iconv.h): Likewise.
39659         * modules/locale (locale.h): Likewise.
39660         * modules/netinet_in (netinet/in.h): Likewise.
39661         * modules/sys_select (sys_select.h): Likewise.
39662         * modules/sys_socket (sys/socket.h): Likewise.
39663         * modules/sys_stat (sys/stat.h): Likewise.
39664         * modules/sysexits (sysexits.h): Likewise.
39665         * modules/unistd (unistd.h): Likewise.
39666
39667 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39668
39669         * modules/closein-tests (Makefile.am): Distribute
39670         `test-closein.sh'.
39671
39672 2007-05-17  Bruno Haible  <bruno@clisp.org>
39673
39674         * tests/test-printf-posix.output: Renamed from
39675         tests/test-fprintf-posix.out.
39676         * modules/fprintf-posix-tests: Update.
39677         * modules/printf-posix-tests: Update.
39678         * modules/vfprintf-posix-tests: Update.
39679         * modules/vprintf-posix-tests: Update.
39680         * tests/test-fprintf-posix.sh: Update.
39681         * tests/test-printf-posix.sh: Update.
39682         * tests/test-vfprintf-posix.sh: Update.
39683         * tests/test-vprintf-posix.sh: Update.
39684         Reported by Ralf Wildenhues.
39685
39686 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39687
39688         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39689         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39690         GCC 4.2, which otherwise issues a lot of warnings.
39691         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39692         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39693         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39694         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39695         it should no longer be needed.
39696         * lib/string_.h: Likewise.
39697         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39698         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39699         * modules/inttypes (inttypes.h): Likewise.
39700         * modules/math (math.h): Likewise.
39701         * modules/search (search.h): Likewise.
39702         * modules/signal (signal.h): Likewise.
39703         * modules/stdint (stdint.h): Likewise.
39704         * modules/stdio (stdio.h): Likewise.
39705         * modules/stdlib (stdlib.h): Likewise.
39706         * modules/string (string.h): Likewise.
39707         * modules/sys_time (sys/time.h): Likewise.
39708         * modules/time (time.h): Likewise.
39709         * modules/wchar (wchar.h): Likewise.
39710         * modules/wctype (wtype.h): Likewise.
39711
39712 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39713
39714         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39715
39716 2007-05-13  Bruno Haible  <bruno@clisp.org>
39717
39718         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39719         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39720         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39721         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39722         (gl_PREREQ_STRTOK_R): Don't require it here.
39723
39724 2007-05-13  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39727         when used in C++ mode.
39728
39729 2007-05-12  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/linebuffer.h: Tweak doc.
39732         * lib/linebuffer.c: Likewise.
39733
39734 2007-05-12  James Youngman  <jay@gnu.org>
39735
39736         * lib/linebuffer.c (readlinebuffer_delim): New function,
39737         like readlinebuffer, but use a caller-specified delimiter.
39738         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39739         as the delimiter.
39740         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39741
39742 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39743
39744         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39745         * modules/openat (Files): Remove openat-die.c.
39746         (Depends-on): Add openat-die.
39747         * modules/openat-die: New module.
39748
39749 2007-05-06  Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39752         Update with info about Cygwin.
39753         * doc/functions/fprintf.texi: Update.
39754         * doc/functions/printf.texi: Update.
39755         * doc/functions/snprintf.texi: Update.
39756         * doc/functions/sprintf.texi: Update.
39757         * doc/functions/vfprintf.texi: Update.
39758         * doc/functions/vprintf.texi: Update.
39759         * doc/functions/vsnprintf.texi: Update.
39760         * doc/functions/vsprintf.texi: Update.
39761         Reported by Eric Blake.
39762
39763 2007-05-06  Bruno Haible  <bruno@clisp.org>
39764
39765         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39766         padding ourselves for the floating-point directives.
39767         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39770         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39771         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39779         * tests/test-snprintf-posix.h (test_function): Also check the width
39780         and some flags in the %f directive.
39781         * tests/test-sprintf-posix.h (test_function): Likewise.
39782         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39783         * tests/test-vasprintf-posix.c (test_function): Likewise.
39784         * doc/functions/fprintf.texi: Update.
39785         * doc/functions/printf.texi: Update.
39786         * doc/functions/snprintf.texi: Update.
39787         * doc/functions/sprintf.texi: Update.
39788         * doc/functions/vfprintf.texi: Update.
39789         * doc/functions/vprintf.texi: Update.
39790         * doc/functions/vsnprintf.texi: Update.
39791         * doc/functions/vsprintf.texi: Update.
39792
39793 2007-05-06  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39796         pass the ' flag character to sprintf or snprintf.
39797         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39800         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39801         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39809         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39810         flag.
39811         * tests/test-sprintf-posix.h (test_function): Likewise.
39812         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39813         * tests/test-vasprintf-posix.c (test_function): Likewise.
39814         * doc/functions/fprintf.texi: Update.
39815         * doc/functions/printf.texi: Update.
39816         * doc/functions/snprintf.texi: Update.
39817         * doc/functions/sprintf.texi: Update.
39818         * doc/functions/vfprintf.texi: Update.
39819         * doc/functions/vprintf.texi: Update.
39820         * doc/functions/vsnprintf.texi: Update.
39821         * doc/functions/vsprintf.texi: Update.
39822
39823 2007-05-01  Bruno Haible  <bruno@clisp.org>
39824
39825         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39826
39827 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39830         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39831
39832 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39833
39834         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39835         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39836         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39837
39838 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39839
39840         * lib/argp-help.c (struct hol_entry): New member `ord'.
39841         (HOL_ENTRY_PTRCMP): Use ord for comparison
39842         (hol_sort): Initialize ord.
39843
39844 2007-05-01  Bruno Haible  <bruno@clisp.org>
39845
39846         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39847         Reported by Eric Blake.
39848         * doc/gnulib.texi (Function Substitutes): Update.
39849
39850 2007-05-01  Bruno Haible  <bruno@clisp.org>
39851
39852         * doc/functions.texi: Remove file, now redundant through
39853         doc/functions/*.texi.
39854
39855 2007-05-01  Bruno Haible  <bruno@clisp.org>
39856
39857         * modules/argp (Depends-on): Add sleep.
39858
39859 2007-05-01  Bruno Haible  <bruno@clisp.org>
39860
39861         * modules/sleep-tests: New file.
39862         * tests/test-sleep.c: New file.
39863
39864         * modules/sleep: New file.
39865         * lib/sleep.c: New file.
39866         * m4/sleep.m4: New file.
39867         * lib/unistd_.h (sleep): New declaration.
39868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39869         HAVE_SLEEP.
39870         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39871         * doc/functions/sleep.texi: Document the sleep module.
39872
39873 2007-05-01  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/sigprocmask.h: Remove file.
39876         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39877         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39878         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39879         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39880         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39881         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39882         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39883         HAVE_SIGSET_T as a shell variable.
39884         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39885         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39886         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39887         (Depends-on): Add signal. Remove verify.
39888         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39889         (Include): Mention <signal.h> instead of sigprocmask.h.
39890         * NEWS: Mention the change.
39891         * lib/fatal-signal.c: Don't include sigprocmask.h.
39892
39893 2007-05-01  Bruno Haible  <bruno@clisp.org>
39894
39895         * modules/signal: New file.
39896         * lib/signal_.h: New file.
39897         * m4/signal_h.m4: New file.
39898
39899 2007-05-01  Bruno Haible  <bruno@clisp.org>
39900
39901         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39902         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39903         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39904         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39905
39906 2007-05-01  Bruno Haible  <bruno@clisp.org>
39907
39908         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39909         configure time.
39910         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39911         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39912         * modules/sys_stat (Makefile.am): Substitute their values into
39913         sys/stat.h.
39914
39915 2007-05-01  Bruno Haible  <bruno@clisp.org>
39916
39917         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39918         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39919         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39920
39921 2007-05-01  Bruno Haible  <bruno@clisp.org>
39922
39923         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39924         'assert' module here.
39925
39926 2007-05-01  Bruno Haible  <bruno@clisp.org>
39927
39928         * doc/functions/*.texi: New files.
39929         * doc/functions/google-ranking.txt: New file.
39930         * doc/gnulib.texi (Function Substitutes): New chapter.
39931         (ctime, inet_ntoa): Remove sections.
39932         * doc/ctime.texi: Remove file.
39933         * doc/inet_ntoa.texi: Remove file.
39934         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39935         dependencies.
39936         (%.info): New rule, specifying a --reference-limit.
39937
39938 2007-05-01  Bruno Haible  <bruno@clisp.org>
39939
39940         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39941
39942 2007-05-01  Bruno Haible  <bruno@clisp.org>
39943
39944         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39945         the portability of 'mkdir' to mingw systems.
39946
39947 2007-05-01  Bruno Haible  <bruno@clisp.org>
39948
39949         * doc/headers/google-ranking.txt: New file.
39950
39951 2007-04-30  Eric Blake  <ebb9@byu.net>
39952
39953         Prefer fseeko to fseek.
39954         * modules/getpass (Depends-on): Add fseeko.
39955         * lib/getpass.c (getpass): Use fseeko, not fseek.
39956
39957 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39958
39959         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39960         assumes the sorting is stable, while most qsort implementations
39961         are not.  Use argument addresses to ensure they never compare as
39962         equal.
39963
39964         * tests/test-argp-2.sh (usage-indent test): Fix output
39965         (func_compare): Restore diff options
39966         * tests/test-argp.c: Restore #include "progname.h"
39967
39968 2007-04-29  Bruno Haible  <bruno@clisp.org>
39969
39970         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39972         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39974         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39975         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39976         (TESTS, check_PROGRAMS): Add test-snprintf.
39977         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39978         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39979         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39980         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39981         assertions that fail on HP-UX, OSF/1, or IRIX.
39982         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39983
39984 2007-04-29  Bruno Haible  <bruno@clisp.org>
39985
39986         * MODULES.html.sh (posix_functions): Remove 'contents'.
39987
39988 2007-04-29  Karl Berry  <karl@gnu.org>
39989
39990         * config/srclist.txt (gendocs_template_min): new entry.
39991
39992 2007-04-29  Bruno Haible  <bruno@clisp.org>
39993
39994         Work around fpurge bug on BSD systems.
39995         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39996         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39997         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39998         fpurge to rpl_fpurge if the system already has this function.
39999         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40000         the case where the system already has this function. Correct invariants
40001         on BSD systems.
40002         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40003         BSD systems.
40004
40005 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40006
40007         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40008         proposed by Sven Verdoolaege.
40009
40010         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40011         options.
40012         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40013         (usage and help tests): Update
40014
40015 2007-04-29  Bruno Haible  <bruno@clisp.org>
40016
40017         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40018         Print more information in case of failure. Disable a test on BeOS.
40019
40020 2007-04-29  Bruno Haible  <bruno@clisp.org>
40021
40022         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40023         This helps debugging on systems on which no gdb is available.
40024
40025 2007-04-29  Bruno Haible  <bruno@clisp.org>
40026
40027         * lib/freading.h: Improve comments.
40028         * lib/fwriting.h: Likewise.
40029         * tests/test-freading.c (main): Don't check freading immediately after
40030         repositioning. Needed for glibc.
40031
40032 2007-04-29  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/freading.c (freading): Trivial simplification.
40035
40036 2007-04-28  Bruno Haible  <bruno@clisp.org>
40037
40038         * tests/test-fwriting.c (main): Also test the interaction between
40039         fflush and fwriting.
40040         * modules/fwriting-tests (Depends-on): Add fflush.
40041
40042         * tests/test-freading.c (main): Also test the interaction between
40043         fflush and freading.
40044         * modules/freading-tests (Depends-on): Add fflush.
40045
40046 2007-04-28  Bruno Haible  <bruno@clisp.org>
40047
40048         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40049         fseeko and ftello.
40050         Suggested by Eric Blake.
40051
40052 2007-04-28  Jim Meyering  <jim@meyering.net>
40053
40054         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40055         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40056         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40057
40058 2007-04-27  Eric Blake  <ebb9@byu.net>
40059
40060         * doc/headers/assert.texi (assert.h): Document assert module use.
40061
40062 2007-04-27  Bruno Haible  <bruno@clisp.org>
40063
40064         * doc/headers/*.texi: New files.
40065         * doc/gnulib.texi (Header File Substitutes): New chapter.
40066         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40067         dependencies.
40068         (standards.info ,standards.html, standards.dvi): Update dependencies.
40069         (mostlyclean, clean): New targets.
40070
40071 2007-04-27  Bruno Haible  <bruno@clisp.org>
40072
40073         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40074         * modules/sysexits (Files, Makefile.am): Update.
40075
40076         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40077         * modules/sys_socket (Files, Makefile.am): Update.
40078
40079         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40080         * modules/sys_stat (Files, Makefile.am): Update.
40081
40082 2007-04-27  Eric Blake  <ebb9@byu.net>
40083
40084         * lib/freading.h: Improve comments.
40085         * lib/fwriting.h: Likewise.
40086         * lib/fflush.c: Likewise.
40087
40088         Fix closein for mingw.
40089         * modules/closein-tests: Add tests for closein.
40090         * tests/test-closein.c: New file.
40091         * tests/test-closein.sh: Likewise.
40092         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40093         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40094
40095 2007-04-27  Bruno Haible  <bruno@clisp.org>
40096
40097         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40098         version is < 6.
40099         * lib/math_.h [__DECC]: Likewise.
40100         * lib/stdio_.h [__DECC]: Likewise.
40101         * lib/stdlib_.h [__DECC]: Likewise.
40102         * lib/string_.h [__DECC]: Likewise.
40103         * lib/time_.h [__DECC]: Likewise.
40104         * lib/wchar_.h [__DECC]: Likewise.
40105         * lib/wctype_.h [__DECC]: Likewise.
40106
40107 2007-04-27  Bruno Haible  <bruno@clisp.org>
40108
40109         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40110
40111 2007-04-27  Bruno Haible  <bruno@clisp.org>
40112
40113         * lib/fflush.c: Add comments.
40114         * modules/fpurge-tests (Depends-on): Add fflush.
40115         * modules/freadable-tests (Depends-on): Likewise.
40116         * modules/fwritable-tests (Depends-on): Likewise.
40117
40118 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40119
40120         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40121         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40122         Report by Bruno Haible <bruno@clisp.org>.
40123
40124 2007-04-26  Eric Blake  <ebb9@byu.net>
40125
40126         Fix fflush on mingw.
40127         * modules/fflush (Depends-on): Add freading.
40128         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40129         but unread data.
40130
40131 2007-04-26  Eric Blake  <ebb9@byu.net>
40132         and Bruno Haible  <bruno@clisp.org>
40133
40134         Implement freading and fwriting.
40135         * lib/freading.c: New file.
40136         * lib/freading.h: Likewise.
40137         * m4/freading.m4: Likewise.
40138         * modules/freading: Likewise.
40139         * modules/freading-tests: Likewise.
40140         * tests/test-freading.c: Likewise.
40141         * lib/fwriting.c: New file.
40142         * lib/fwriting.h: Likewise.
40143         * m4/fwriting.m4: Likewise.
40144         * modules/fwriting: Likewise.
40145         * modules/fwriting-tests: Likewise.
40146         * tests/test-fwriting.c: Likewise.
40147         * MODULES.html.sh (File stream based Input/Output): Mention them.
40148
40149 2007-04-26  Bruno Haible  <bruno@clisp.org>
40150
40151         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40152         'long' when we assume it.
40153         Suggested by Eric Blake.
40154
40155 2007-04-26  Bruno Haible  <bruno@clisp.org>
40156
40157         Ensure fseeko, ftello are declared on glibc systems.
40158         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40159         * modules/fseeko (configure.ac-early): Likewise.
40160         * modules/ftello (configure.ac-early): Likewise.
40161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40162         AC_FUNC_FSEEKO for this.
40163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40164         (gl_CHECK_FSEEKO): Remove macro.
40165
40166 2007-04-26  Bruno Haible  <bruno@clisp.org>
40167
40168         * tests/test-fflush.c (main): Also check the ftell result after
40169         fflush and fseek/fseeko.
40170         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40171         file descriptor position cache in the stream.
40172         * lib/fseeko.c (rpl_fseeko): Likewise.
40173
40174 2007-04-26  Bruno Haible  <bruno@clisp.org>
40175
40176         * modules/fflush-tests (Depends-on): Add fseeko.
40177
40178 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40179             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40180
40181         * lib/argz_.h: ensure error_t definition is obtained in same
40182         mechanism system argz.h would have.
40183         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40184         argz facilities are known bad.  Err on the side of caution if
40185         cross-compiling.
40186
40187 2007-04-25  Eric Blake  <ebb9@byu.net>
40188
40189         * lib/fpurge.c (includes): Use stdlib.h for free.
40190         * tests/test-fflush.c (main): Also test fflush-fseeko.
40191
40192 2007-04-25  Bruno Haible  <bruno@clisp.org>
40193
40194         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40195         * lib/fseeko.c: New file.
40196         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40197         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40198         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40199         gl_FUNC_FSEEKO.
40200         (gl_FUNC_FSEEKO): Invoke it.
40201         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40202         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40203         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40204
40205 2007-04-25  Bruno Haible  <bruno@clisp.org>
40206
40207         * modules/fflush (Depends-on): Add ftello.
40208
40209 2007-04-25  Bruno Haible  <bruno@clisp.org>
40210
40211         * modules/ftello-tests: New file.
40212         * tests/test-ftello.c: New file.
40213
40214         * modules/ftello: New file.
40215         * m4/ftello.m4: New file.
40216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40217         HAVE_FTELLO.
40218         * lib/stdio_.h (ftello): New declaration.
40219         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40220         HAVE_FTELLO.
40221
40222 2007-04-25  Bruno Haible  <bruno@clisp.org>
40223
40224         * modules/fseeko-tests: New file.
40225         * tests/test-fseeko.c: New file.
40226
40227         * modules/fseeko: New file.
40228         * m4/fseeko.m4: New file.
40229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40230         HAVE_FSEEKO.
40231         * lib/stdio_.h (fseeko): New declaration.
40232         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40233         HAVE_FSEEKO.
40234
40235 2007-04-25  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40238
40239 2007-04-25  Bruno Haible  <bruno@clisp.org>
40240
40241         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40242         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40243         * tests/test-unistd.c: Likewise.
40244         * tests/test-fcntl.c: Likewise.
40245
40246 2007-04-23  Eric Blake  <ebb9@byu.net>
40247
40248         * lib/fflush.c: Fix missing include.
40249         Reported by Bruno Haible.
40250
40251 2007-04-23  Bruno Haible  <bruno@clisp.org>
40252
40253         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40254         Reported by Eric Blake.
40255
40256 2007-04-23  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40259
40260 2007-04-23  Bruno Haible  <bruno@clisp.org>
40261
40262         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40263
40264 2007-04-23  Bruno Haible  <bruno@clisp.org>
40265
40266         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40267         Needed on HP-UX 11.
40268
40269 2007-04-16  Eric Blake  <ebb9@byu.net>
40270
40271         Make fflush rely on fpurge.
40272         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40273         open coding all variants.
40274         * modules/fflush (Depends-on): Add fpurge and unistd.
40275         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40276         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40277
40278         Fix --with-tests compilation on cygwin.
40279         * modules/argmatch-tests (Makefile.am): List gnulib library first
40280         in LDADD.
40281         * modules/argp-tests (Makefile.am): Likewise.
40282         * modules/array-list-tests (Makefile.am): Likewise.
40283         * modules/array-oset-tests (Makefile.am): Likewise.
40284         * modules/avltree-list-tests (Makefile.am): Likewise.
40285         * modules/avltree-oset-tests (Makefile.am): Likewise.
40286         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40287         * modules/carray-list-tests (Makefile.am): Likewise.
40288         * modules/dirname-tests (Makefile.am): Likewise.
40289         * modules/frexp-tests (Makefile.am): Likewise.
40290         * modules/isnanl-tests (Makefile.am): Likewise.
40291         * modules/linked-list-tests (Makefile.am): Likewise.
40292         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40293         * modules/lock-tests (Makefile.am): Likewise.
40294         * modules/rbtree-list-tests (Makefile.am): Likewise.
40295         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40296         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40297         * modules/tls-tests (Makefile.am): Likewise.
40298         * modules/tsearch-tests (Makefile.am): Likewise.
40299         * modules/xvasprintf-tests (Makefile.am): Likewise.
40300
40301         Fix fpurge for cygwin.
40302         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40303         value.
40304         * modules/fpurge-tests (Depends-on): Clean up trash.
40305
40306 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40307
40308         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40309
40310         * m4/autobuild.m4: Re-indent.
40311
40312 2007-04-13  Bruno Haible  <bruno@clisp.org>
40313
40314         * modules/fpurge-tests: New file.
40315         * tests/test-fpurge.c: New file.
40316
40317         * modules/fpurge: New file.
40318         * lib/fpurge.h: New file.
40319         * lib/fpurge.c: New file.
40320         * m4/fpurge.m4: New file.
40321
40322 2007-04-13  Bruno Haible  <bruno@clisp.org>
40323
40324         * modules/fbufmode-tests: New file.
40325         * tests/test-fbufmode.c: New file.
40326
40327         * modules/fbufmode: New file.
40328         * lib/fbufmode.h: New file.
40329         * lib/fbufmode.c: New file.
40330         * m4/fbufmode.m4: New file.
40331
40332 2007-04-13  Bruno Haible  <bruno@clisp.org>
40333
40334         * modules/fwritable-tests: New file.
40335         * tests/test-fwritable.c: New file.
40336
40337         * modules/fwritable: New file.
40338         * lib/fwritable.h: New file.
40339         * lib/fwritable.c: New file.
40340         * m4/fwritable.m4: New file.
40341
40342 2007-04-13  Bruno Haible  <bruno@clisp.org>
40343
40344         * modules/freadable-tests: New file.
40345         * tests/test-freadable.c: New file.
40346
40347         * modules/freadable: New file.
40348         * lib/freadable.h: New file.
40349         * lib/freadable.c: New file.
40350         * m4/freadable.m4: New file.
40351
40352 2007-04-13  Bruno Haible  <bruno@clisp.org>
40353
40354         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40355         MOSTLYCLEANFILES.
40356
40357 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40358
40359         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40360         gzip bootstrap.conf to avoid dragging in i18n machinery.
40361         (gnulib_tool_option): Use it.
40362
40363 2007-04-13  Bruno Haible  <bruno@clisp.org>
40364
40365         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40366         %F directives.
40367         * tests/test-vasprintf-posix.c (test_function): Likewise.
40368         * tests/test-snprintf-posix.h (test_function): Likewise.
40369         * tests/test-sprintf-posix.h (test_function): Likewise.
40370         * tests/test-fprintf-posix.h (test_function): Likewise.
40371         * tests/test-printf-posix.h (test_function): Likewise.
40372         * tests/test-fprintf-posix.out: Likewise.
40373
40374 2007-04-13  Bruno Haible  <bruno@clisp.org>
40375
40376         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40377         * modules/tls-tests (configure.ac): Likewise.
40378         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40379
40380 2007-04-13  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/tls.c (glthread_tls_get): Fix return type.
40383         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40384
40385 2007-04-12  Eric Blake  <ebb9@byu.net>
40386
40387         * modules/gettime (Depends-on): Remove gettime.
40388         Reported by Dmitry V. Levin.
40389
40390 2007-04-12  Bruno Haible  <bruno@clisp.org>
40391
40392         * modules/fflush (Include): Mention <stdio.h>.
40393         * modules/strtoimax (Include): Mention <inttypes.h>.
40394         * modules/strtoumax (Include): Likewise.
40395
40396 2007-04-12  Eric Blake  <ebb9@byu.net>
40397
40398         * .cvsignore: New file.
40399         * .gitignore: Likewise.
40400
40401 2007-04-12  Bruno Haible  <bruno@clisp.org>
40402
40403         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40404         not before, since $(LDADD) often contains libgnu.a.
40405         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40406         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40407         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40408         Needed on Cygwin.
40409
40410 2007-04-12  Eric Blake  <ebb9@byu.net>
40411
40412         Work around glibc's failure to flush stdin on fclose.
40413         * lib/closein.c (close_stdin): Flush stdin before closing.
40414
40415         Work around glibc's failure to reset seekable stdin on exit.
40416         * modules/closein: New module.
40417         * lib/closein.c: New file.
40418         * lib/closein.h: Likewise.
40419         * m4/closein.m4: Likewise.
40420         * MODULES.html.sh (File stream based Input/Output): Document it.
40421
40422 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40423
40424         * gnulib-tool: Rename generated 'autobuild' script to
40425         'do-autobuild' in --create-megatestdir output.
40426
40427         * doc/gnulib.texi (Build robot for gnulib): Fix.
40428
40429 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40430
40431         * modules/sysexits (Depends-on): Add absolute-header.
40432
40433 2007-04-12  Eric Blake  <ebb9@byu.net>
40434
40435         No need to preserve errno on success.
40436         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40437         Reported by Bruno Haible.
40438
40439 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40440
40441         * MODULES.html.sh (Support for maintaining and releasing
40442         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40443
40444 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40445
40446         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40447
40448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40449
40450         * modules/autobuild: New module.
40451
40452         * m4/autobuild.m4: New file.
40453
40454 2007-04-11  Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40457         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40458         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40460         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40461         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40462         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40464         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40465         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40466         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40467         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40468         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40470         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40471         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40473         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40474         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40476         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40477         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40479         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40480         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40482         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40483         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40484         Reported by Eric Blake.
40485
40486 2007-04-11  Bruno Haible  <bruno@clisp.org>
40487
40488         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40489
40490 2007-04-10  Bruno Haible  <bruno@clisp.org>
40491
40492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40493         for NaN and Infinity. Needed on FreeBSD 6.1.
40494         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40495         regarding results for "%010a" of Infinity and NaN.
40496         * tests/test-vasprintf-posix.c (test_function): Likewise.
40497         * tests/test-snprintf-posix.h (test_function): Likewise.
40498         * tests/test-sprintf-posix.h (test_function): Likewise.
40499         * tests/test-fprintf-posix.h (test_function): Likewise.
40500         * tests/test-printf-posix.h (test_function): Likewise.
40501         * tests/test-fprintf-posix.out: Likewise.
40502
40503 2007-04-10  Bruno Haible  <bruno@clisp.org>
40504
40505         * modules/locale-tests: New file.
40506         * tests/test-locale.c: New file.
40507
40508         * modules/locale: New file.
40509         * lib/locale_.h: New file.
40510         * m4/locale_h.m4: New file.
40511
40512 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40513             Bruno Haible  <bruno@clisp.org>
40514
40515         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40516         be determined, test for availability of the copysignf, copysign,
40517         copysignl functions.
40518         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40519         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40520         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40521
40522 2007-04-09  Eric Blake  <ebb9@byu.net>
40523
40524         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40525         * modules/stdio (Makefile.am): Support fflush.
40526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40527         * modules/fflush: New file.
40528         * lib/fflush.c: Likewise.
40529         * m4/fflush.m4: Likewise.
40530         * modules/fflush-tests: New test.
40531         * tests/test-fflush.c: Likewise.
40532         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40533
40534 2007-04-06  Bruno Haible  <bruno@clisp.org>
40535
40536         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40537         (VASNPRINTF): Use signbit for faster determination whether to print a
40538         minus sign.
40539         * modules/vasnprintf (Files): Remove lib/float+.h.
40540         * modules/fprintf-posix (Depends-on): Add signbit.
40541         * modules/snprintf-posix (Depends-on): Likewise.
40542         * modules/sprintf-posix (Depends-on): Likewise.
40543         * modules/vasnprintf-posix (Depends-on): Likewise.
40544         * modules/vasprintf-posix (Depends-on): Likewise.
40545         * modules/vfprintf-posix (Depends-on): Likewise.
40546         * modules/vsnprintf-posix (Depends-on): Likewise.
40547         * modules/vsprintf-posix (Depends-on): Likewise.
40548
40549 2007-04-06  Bruno Haible  <bruno@clisp.org>
40550
40551         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40552         * tests/test-frexpl.c (main): Likewise.
40553         * tests/test-ldexpl.c (main): Likewise.
40554         * modules/frexp-tests (Depends-on): Add signbit.
40555         * modules/frexpl-tests (Depdends-on): Likewise.
40556         * modules/ldexpl-tests (Depdends-on): Likewise.
40557
40558 2007-04-06  Bruno Haible  <bruno@clisp.org>
40559
40560         * modules/signbit-tests: New file.
40561         * tests/test-signbit.c: New file.
40562
40563         * modules/signbit: New file.
40564         * lib/signbitf.c: New file.
40565         * lib/signbitd.c: New file.
40566         * lib/signbitl.c: New file.
40567         * m4/signbit.m4: New file.
40568         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40569         (signbit): New macro.
40570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40571         REPLACE_SIGNBIT.
40572         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40573         REPLACE_FREXPL into math.h.
40574
40575 2007-04-06  Bruno Haible  <bruno@clisp.org>
40576
40577         * modules/isnanf-nolibm-tests: New file.
40578         * tests/test-isnanf.c: New file.
40579
40580         * modules/isnanf-nolibm: New file.
40581         * lib/isnanf.h: New file.
40582         * lib/isnanf.c: New file.
40583         * lib/isnan.c: Consider the USE_FLOAT macro.
40584         * m4/isnanf.m4: New file.
40585
40586 2007-04-06  Bruno Haible  <bruno@clisp.org>
40587
40588         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40589         (Link): New section.
40590
40591         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40592
40593 2007-04-06  Bruno Haible  <bruno@clisp.org>
40594
40595         Assume the 'long double' type.
40596         * m4/longdouble.m4: Remove file.
40597         * config/srclist.txt: Don't mention longdouble.m4.
40598         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40599         * lib/float+.h: Likewise.
40600         * lib/frexp.c: Likewise.
40601         * lib/printf-args.h: Likewise.
40602         * lib/printf-args.c: Likewise.
40603         * lib/printf-frexp.c: Likewise.
40604         * lib/printf-parse.c: Likewise.
40605         * lib/vasnprintf.c: Likewise.
40606         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40607         * m4/intl.m4: Likewise.
40608         * m4/isnanl.m4: Likewise.
40609         * m4/printf.m4: Likewise.
40610         * m4/printf-frexpl.m4: Likewise.
40611         * m4/vasnprintf.m4: Likewise.
40612         * modules/allocsa (Files): Remove m4/longdouble.m4.
40613         * modules/gettext (Files): Likewise.
40614         * modules/relocatable-prog-wrapper (Files): Likewise.
40615         * modules/vasnprintf (Files): Likewise.
40616         * modules/isnanl (Files): Likewise.
40617         (Include): Simplify.
40618         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40619         (Include): Simplify.
40620         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40621         (Include): Simplify.
40622         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40623         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40624         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40625         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40626         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40628         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40630         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40632         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40633         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40634         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40635         * tests/test-isnanl.c: Likewise.
40636         * tests/test-snprintf-posix.h: Likewise.
40637         * tests/test-sprintf-posix.h: Likewise.
40638         * tests/test-vasnprintf-posix.c: Likewise.
40639         * tests/test-vasnprintf-posix2.c: Likewise.
40640         * tests/test-vasprintf-posix.c: Likewise.
40641
40642 2007-04-06  Bruno Haible  <bruno@clisp.org>
40643
40644         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40645         * lib/math_.h [__DECC]: Include the overridden include file through
40646         #include_next, outside the double-inclusion guard.
40647         * lib/stdio_.h [__DECC]: Likewise.
40648         * lib/stdlib_.h [__DECC]: Likewise.
40649         * lib/string_.h [__DECC]: Likewise.
40650         * lib/time_.h [__DECC]: Likewise.
40651         * lib/wchar_.h [__DECC]: Likewise.
40652         * lib/wctype_.h [__DECC]: Likewise.
40653         * lib/inttypes_.h [__DECC]: Likewise.
40654         Reported by Albert Chin <china@thewrittenword.com> in
40655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40656
40657 2007-04-04  Eric Blake  <ebb9@byu.net>
40658
40659         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40660         1.5.x.
40661
40662 2007-04-04  Bruno Haible  <bruno@clisp.org>
40663
40664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40665         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40666
40667 2007-04-04  Bruno Haible  <bruno@clisp.org>
40668
40669         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40670         results for "%010a" of Infinity and NaN.
40671         * tests/test-vasprintf-posix.c (test_function): Likewise.
40672         * tests/test-snprintf-posix.h (test_function): Likewise.
40673         * tests/test-sprintf-posix.h (test_function): Likewise.
40674         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40675         * tests/test-printf-posix.h (test_function): Likewise.
40676         * tests/test-fprintf-posix.out: Update.
40677         Needed for FreeBSD 6.1.
40678
40679 2007-04-04  Bruno Haible  <bruno@clisp.org>
40680
40681         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40682         directly used by the gnulib modules nor by gnulib-tool.
40683
40684 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40685
40686         * DEPENDENCIES: Give overall description of version dependency
40687         desirability.  Use more-typical names for apps.
40688         Add shell, coreutils, diffutils, grep, tar, gzip.
40689
40690 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40691
40692         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40693
40694 2007-04-04  Karl Berry  <karl@gnu.org>
40695
40696         * MODULES.html.sh (func_module): missing '.
40697
40698 2007-04-03  Bruno Haible  <bruno@clisp.org>
40699
40700         * modules/argmatch-tests (Makefile.am): New variable
40701         test_argmatch_LDADD.
40702         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40703         * modules/array-list-tests (Makefile.am): New variable
40704         test_array_list_LDADD.
40705         * modules/array-oset-tests (Makefile.am): New variable
40706         test_array_oset_LDADD.
40707         * modules/avltree-list-tests (Makefile.am): New variable
40708         test_avltree_list_LDADD.
40709         * modules/avltree-oset-tests (Makefile.am): New variable
40710         test_avltree_oset_LDADD.
40711         * modules/avltreehash-list-tests (Makefile.am): New variable
40712         test_avltreehash_list_LDADD.
40713         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40714         test_canonicalize_lgpl_LDADD.
40715         * modules/carray-list-tests (Makefile.am): New variable
40716         test_carray_list_LDADD.
40717         * modules/dirname-tests (Makefile.am): New variable
40718         test_dirname_LDADD.
40719         * modules/linked-list-tests (Makefile.am): New variable
40720         test_linked_list_LDADD.
40721         * modules/linkedhash-list-tests (Makefile.am): New variable
40722         test_linkedhash_list_LDADD.
40723         * modules/rbtree-list-tests (Makefile.am): New variable
40724         test_rbtree_list_LDADD.
40725         * modules/rbtree-oset-tests (Makefile.am): New variable
40726         test_rbtree_oset_LDADD.
40727         * modules/rbtreehash-list-tests (Makefile.am): New variable
40728         test_rbtreehash_list_LDADD.
40729         * modules/xvasprintf-tests (Makefile.am): New variable
40730         test_xvasprintf_LDADD.
40731         Reported by Eric Blake.
40732
40733 2007-04-03  Eric Blake  <ebb9@byu.net>
40734
40735         * DEPENDENCIES: Weaken m4 requirements.
40736
40737 2007-04-03  Bruno Haible  <bruno@clisp.org>
40738
40739         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40740         * modules/isnanl-tests (configure.ac): Likewise.
40741
40742 2007-04-03  Ben Pfaff  <blp@gnu.org>
40743
40744         * modules/iconv_open: Add $(srcdir)/ to source directory
40745         references in Makefile fragments that call gperf, to fix VPATH
40746         builds.
40747
40748 2007-04-03  Bruno Haible  <bruno@clisp.org>
40749
40750         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40751         * lib/ldexpl.c: Undo last change.
40752
40753 2007-04-03  Bruno Haible  <bruno@clisp.org>
40754
40755         * modules/printf-frexpl (Depends-on): Undo last change.
40756         (Files): Add m4/ldexpl.m4.
40757
40758 2007-04-03  Bruno Haible  <bruno@clisp.org>
40759
40760         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40761         * modules/isnanl (Link): New section.
40762
40763         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40764         * modules/frexp (Link): New section.
40765
40766         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40767         * modules/frexpl (Link): New section.
40768
40769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40770         * modules/ldexpl (Link): New section.
40771
40772 2007-04-03  Bruno Haible  <bruno@clisp.org>
40773
40774         * modules/TEMPLATE-EXTENDED: New file.
40775         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40776
40777 2007-04-03  Bruno Haible  <bruno@clisp.org>
40778
40779         * DEPENDENCIES: New file.
40780         Suggested by Simon Josefsson.
40781
40782 2007-04-03  Bruno Haible  <bruno@clisp.org>
40783
40784         * doc/gnulib.texi: Escape @.
40785
40786 2007-04-03  James Youngman  <jay@gnu.org>
40787         and Paul Eggert  <eggert@cs.ucla.edu>
40788
40789         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40790         birthtime on all systems that have birthtime, not just those which
40791         use st_birthtimensec rather than st_birthtim.  Putting zero in
40792         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40793         that the birth time is not available for files on an NFS mount.
40794
40795 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40796
40797         * modules/memxor: Move back from crypto/, suggested by Bruno.
40798         * modules/crypto/hmac-sha1: Fix memxor dependency.
40799
40800         * modules/crypto/gc: Moved from ../.
40801
40802 2007-04-02  Eric Blake  <ebb9@byu.net>
40803
40804         * lib/ldexpl.c (includes): Avoid libm.
40805
40806         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40807
40808 2007-04-02  Bruno Haible  <bruno@clisp.org>
40809
40810         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40811         on IRIX.
40812
40813 2007-04-02  Bruno Haible  <bruno@clisp.org>
40814
40815         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40816         x86 or x86_64 platforms running MacOS X.
40817         Reported by Ryan Schmidt <@ryandesign.com>.
40818
40819 2007-04-02  Bruno Haible  <bruno@clisp.org>
40820
40821         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40822         i386.
40823
40824 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40825
40826         * modules/crypto/arcfour: Moved from ../.
40827         * modules/crypto/arcfour-tests: Moved from ../.
40828         * modules/crypto/arctwo: Moved from ../.
40829         * modules/crypto/arctwo-tests: Moved from ../.
40830         * modules/crypto/des: Moved from ../.
40831         * modules/crypto/des-tests: Moved from ../.
40832         * modules/crypto/gc-arcfour: Moved from ../.
40833         * modules/crypto/gc-arcfour-tests: Moved from ../.
40834         * modules/crypto/gc-arctwo: Moved from ../.
40835         * modules/crypto/gc-arctwo-tests: Moved from ../.
40836         * modules/crypto/gc-des: Moved from ../.
40837         * modules/crypto/gc-des-tests: Moved from ../.
40838         * modules/crypto/gc-hmac-md5: Moved from ../.
40839         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40840         * modules/crypto/gc-hmac-sha1: Moved from ../.
40841         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40842         * modules/crypto/gc-md2: Moved from ../.
40843         * modules/crypto/gc-md2-tests: Moved from ../.
40844         * modules/crypto/gc-md4: Moved from ../.
40845         * modules/crypto/gc-md4-tests: Moved from ../.
40846         * modules/crypto/gc-md5: Moved from ../.
40847         * modules/crypto/gc-md5-tests: Moved from ../.
40848         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40849         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40850         * modules/crypto/gc-random: Moved from ../.
40851         * modules/crypto/gc-rijndael: Moved from ../.
40852         * modules/crypto/gc-rijndael-tests: Moved from ../.
40853         * modules/crypto/gc-sha1: Moved from ../.
40854         * modules/crypto/gc-sha1-tests: Moved from ../.
40855         * modules/crypto/gc-tests: Moved from ../.
40856         * modules/crypto/hmac-md5: Moved from ../.
40857         * modules/crypto/hmac-md5-tests: Moved from ../.
40858         * modules/crypto/hmac-sha1: Moved from ../.
40859         * modules/crypto/hmac-sha1-tests: Moved from ../.
40860         * modules/crypto/md2: Moved from ../.
40861         * modules/crypto/md2-tests: Moved from ../.
40862         * modules/crypto/md4: Moved from ../.
40863         * modules/crypto/md4-tests: Moved from ../.
40864         * modules/crypto/md5: Moved from ../.
40865         * modules/crypto/md5-tests: Moved from ../.
40866         * modules/crypto/memxor: Moved from ../.
40867         * modules/crypto/rijndael: Moved from ../.
40868         * modules/crypto/rijndael-tests: Moved from ../.
40869         * modules/crypto/sha1: Moved from ../.
40870
40871 2007-03-30  James Youngman  <jay@gnu.org>
40872
40873         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40874         rename() to change the ctime of a file (because ctime is unaffected
40875         by rename on jfs2 on AIX 5.1).
40876         (main): Start by doing cleanup, in case a previous run failed leaving
40877         test files behind.
40878
40879 2007-03-31  Bruno Haible  <bruno@clisp.org>
40880
40881         Support old proprietary implementations of iconv.
40882         * modules/iconv_open: New file.
40883         * lib/iconv_.h: New file.
40884         * m4/iconv_h.m4: New file.
40885         * lib/iconv_open.c: New file.
40886         * lib/iconv_open-aix.gperf: New file.
40887         * lib/iconv_open-hpux.gperf: New file.
40888         * lib/iconv_open-irix.gperf: New file.
40889         * lib/iconv_open-osf.gperf: New file.
40890         * m4/iconv_open.m4: New file.
40891         * modules/linebreak (Depends-on): Add iconv_open.
40892         * modules/striconv (Depends-on): Likewise.
40893         * modules/striconveh (Depends-on): Likewise.
40894         * modules/unicodeio (Depends-on): Likewise.
40895         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40896         (iconv_t)(-1).
40897         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40898         conversion if cd is (iconv_t)(-1).
40899         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40900         is not possible.
40901
40902 2007-03-31  Bruno Haible  <bruno@clisp.org>
40903
40904         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40905         work on Solaris either. Protect also second use of "autodetect_jp".
40906
40907 2007-03-31  Bruno Haible  <bruno@clisp.org>
40908
40909         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40910         the function is not present.
40911
40912 2007-03-31  Bruno Haible  <bruno@clisp.org>
40913
40914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40915         the function is not present.
40916
40917 2007-03-31  Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40920         a bug in HP-UX iconv_open().
40921
40922 2007-03-31  Bruno Haible  <bruno@clisp.org>
40923
40924         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40925         (Mathematics <math.h>): New section, add fpieee.
40926         (Input/output <stdio.h>): Add fseterr.
40927         (Mathematics <math.h>): New section, add printf-frexp.
40928         (Container data structures): Add sublist.
40929         (Core language properties): Add fpucw, inline.
40930         (Functions for greatest-width integer types <inttypes.h>): Add
40931         imaxabs, imaxdiv, inttypes.
40932         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40933         isnanl-nolibm, ldexp.
40934         (Mathematics <math.h>): New section, add printf-frexpl.
40935         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40936         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40937         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40938         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40939         (Unicode string functions): Add unistr/u*-mbtoucr.
40940         (Java): Add javacomp-script, javaexec-script.
40941         (C#): Add csharpcomp-script, csharpexec-script.
40942         (Support for building libraries and executables): Add havelib,
40943         relocatable-*.
40944         (Support for maintaining and releasing projects): Renamed from
40945         'Support for maintaining and release projects'. Add announce-gen.
40946
40947 2007-03-31  Bruno Haible  <bruno@clisp.org>
40948
40949         * README: Talk primarily about git.
40950         (git and CVS): Renamed from CVS.
40951         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40952         gnulib is available through git.
40953         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40954
40955 2007-03-30  Bruno Haible  <bruno@clisp.org>
40956
40957         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40958         * lib/poll_.h: Likewise.
40959         * lib/stat_.h: Likewise.
40960         * lib/sys_time_.h: Likewise.
40961         * lib/sysexit_.h: Likewise.
40962         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40963         * lib/stdbool_.h: Likewise.
40964         * lib/byteswap_.h: Add double-inclusion guard.
40965
40966 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40967
40968         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40969
40970 2007-03-30  Karl Berry  <karl@gnu.org>
40971
40972         * config/srclist-update: double space after USA in the license
40973         substitution, since that's how it's usually (?) written.
40974
40975 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40976
40977         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40978         reported by Bruno Haible.
40979
40980 2007-03-29  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40983         a bug in AIX iconv().
40984
40985 2007-03-29  Bruno Haible  <bruno@clisp.org>
40986
40987         * modules/ldexpl-tests: New file.
40988         * tests/test-ldexpl.c: New file.
40989
40990 2007-03-29  Bruno Haible  <bruno@clisp.org>
40991
40992         * lib/ldexpl.c: Include fpucw.h.
40993         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40994         multiplication.
40995         * modules/ldexpl (Depends-on): Add fpucw.
40996
40997 2007-03-29  Bruno Haible  <bruno@clisp.org>
40998
40999         * modules/ldexpl: New file.
41000         * m4/ldexpl.m4: New file.
41001         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41002         set.
41003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41004         REPLACE_LDEXPL.
41005         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41006         REPLACE_LDEXPL.
41007         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41008         gl_FUNC_LDEXPL_WORKS.
41009         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41010         * modules/mathl (Files): Remove lib/ldexpl.c.
41011         (Depends-on): Add ldexpl.
41012
41013 2007-03-29  Bruno Haible  <bruno@clisp.org>
41014
41015         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41016
41017 2007-03-29  Bruno Haible  <bruno@clisp.org>
41018
41019         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41020         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41021         and possibly also HP-UX.
41022         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41023         work on AIX, IRIX, HP-UX, OSF/1.
41024         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41025         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41026         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41027         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41028         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41029         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41030
41031 2007-03-29  Bruno Haible  <bruno@clisp.org>
41032
41033         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41034
41035 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41036
41037         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41038         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41039
41040 2007-03-29  Eric Blake  <ebb9@byu.net>
41041
41042         * lib/acl-internal.h: Remove redundant include.
41043         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41044         Cygwin when a file is locked.
41045
41046 2007-03-29  Bruno Haible  <bruno@clisp.org>
41047
41048         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41049         file.
41050         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41051
41052 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41053
41054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41055         try to remove a parent directory if the child couldn't be removed
41056         (except for the first rmdir, which could fail because the child
41057         doesn't exist).  Problem reported by Jeff Blaine in
41058         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41059
41060 2007-03-28  Bruno Haible  <bruno@clisp.org>
41061
41062         * lib/striconveh.c (utf8conv_carefully): New function.
41063         (mem_cd_iconveh_internal): Invoke it.
41064
41065 2007-03-28  Bruno Haible  <bruno@clisp.org>
41066
41067         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41068         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41069         input.
41070         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41071         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41072         unistr/u8-uctomb.
41073
41074 2007-03-28  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/unistr/u8-mbtoucr: New file.
41077         * lib/unistr/u8-mbtoucr.c: New file.
41078         * modules/unistr/u16-mbtoucr: New file.
41079         * lib/unistr/u16-mbtoucr.c: New file.
41080         * modules/unistr/u16-mbtoucr: New file.
41081         * lib/unistr/u16-mbtoucr.c: New file.
41082         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41083
41084 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41085             Bruno Haible  <bruno@clisp.org>
41086
41087         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41088         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41089         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41090
41091         * m4/stdio_h.m4: Add stubs for vasprintf too.
41092
41093         * modules/stdio: Support vasprintf in sed command.
41094
41095         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41096         vasprintf.h.  Add stdio module indicator.
41097
41098         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41099         vasprintf.h.
41100
41101         * lib/vasprintf.h: File removed.
41102
41103         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41104         * lib/vasprintf.c: Ditto.
41105         * lib/xvasprintf.c: Ditto.
41106         * tests/test-vasprintf-posix.c: Ditto.
41107         * tests/test-vasprintf.c: Ditto.
41108
41109 2007-03-27  Bruno Haible  <bruno@clisp.org>
41110
41111         Make vasnprintf multithread-safe.
41112         * lib/vasnprintf.c (decimal_point_char): New function.
41113         (VASNPRINTF): Use it.
41114         Suggested by Simon Josefsson.
41115
41116 2007-03-27  Eric Blake  <ebb9@byu.net>
41117
41118         Support sub-second birthtime on cygwin.
41119         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41120         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41121         (get_stat_birthtime): Also work with st_birthtim.
41122
41123 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41124
41125         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41126         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41127         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41128         (get_stat_birthtime_ns): Simplify compile-time tests.
41129         (get_stat_birthtime): Change the API to look like
41130         get_stat_mtime etc., except return a negative tv_nsec on error.
41131         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41132         Don't check for "spare" fields.
41133         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41134         or for struct stat.st_birthtime, as these tests aren't used.
41135         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41136
41137 2007-03-27  Bruno Haible  <bruno@clisp.org>
41138
41139         * lib/stat-time.h: Include <sys/stat.h>.
41140
41141 2007-03-27  James Youngman  <jay@gnu.org>
41142
41143         * lib/stat-time.h (get_stat_birthtime): New function for
41144           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41145         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41146           and its variants.
41147         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41148         * modules/stat-time-test: New file.
41149         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41150
41151 2007-03-26  Bruno Haible  <bruno@clisp.org>
41152
41153         Better support of signalling NaNs.
41154         * lib/atanl.c: Include isnanl.h.
41155         (atanl): Perform test for NaN at the beginning of the function and
41156         through a call to isnanl.
41157         * lib/cosl.c: Include isnanl.h.
41158         (cosl): Perform test for NaN at the beginning of the function and
41159         through a call to isnanl.
41160         * lib/ldexpl.c: Include isnanl.h.
41161         (ldexpl): Perform test for NaN through a call to isnanl.
41162         * lib/logl.c: Include isnanl.h.
41163         (logl): Perform test for NaN at the beginning of the function and
41164         through a call to isnanl.
41165         * lib/sinl.c: Include isnanl.h.
41166         (sinl): Perform test for NaN at the beginning of the function and
41167         through a call to isnanl.
41168         * lib/sqrtl.c: Include isnanl.h.
41169         (sqrtl): Perform test for NaN at the beginning of the function and
41170         through a call to isnanl.
41171         * lib/tanl.c: Include isnanl.h.
41172         (tanl): Perform test for NaN at the beginning of the function and
41173         through a call to isnanl.
41174         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41175         * modules/mathl (Depends-on): Add isnanl.
41176
41177 2007-03-26  Eric Blake  <ebb9@byu.net>
41178
41179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41180         regression in logic sense of previous patch.
41181
41182 2007-03-26  Bruno Haible  <bruno@clisp.org>
41183
41184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41185         unportable shell command "if ! ...".
41186         Reported by Ralf Wildenhues.
41187
41188 2007-03-25  Bruno Haible  <bruno@clisp.org>
41189
41190         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41191         <sysexits.h> file, and only add EX_CONFIG.
41192         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41193         absolute file name and whether it is sufficient. Substitute also
41194         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41195         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41196         ABSOLUTE_SYSEXITS_H into sysexits.h.
41197
41198 2007-03-25  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41201         hints is NULL.
41202
41203 2007-03-25  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41206         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41207
41208 2007-03-25  Bruno Haible  <bruno@clisp.org>
41209
41210         * lib/vasnprintf.c: Include langinfo.h.
41211         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41212         multithread-safe.
41213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41222         Reported by Simon Josefsson.
41223
41224 2007-03-25  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41227         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41228         * modules/vasnprintf (Depends-on): Add stdint.
41229
41230 2007-03-25  Bruno Haible  <bruno@clisp.org>
41231
41232         * modules/fpieee: New file.
41233         * m4/fpieee.m4: New file.
41234         * modules/isnan-nolibm (Depends-on): Add fpieee.
41235         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41236         * modules/isnanl (Depends-on): Add fpieee.
41237
41238 2007-03-25  Bruno Haible  <bruno@clisp.org>
41239
41240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41241
41242 2007-03-25  Bruno Haible  <bruno@clisp.org>
41243
41244         Avoid test failures on IRIX 6.5.
41245         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41246         (main): Use it.
41247         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41248         macros.
41249         (main): Use them.
41250
41251 2007-03-25  Bruno Haible  <bruno@clisp.org>
41252
41253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41254         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41255         exists but doesn't work.
41256         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41257         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41259         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41260
41261 2007-03-25  Bruno Haible  <bruno@clisp.org>
41262
41263         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41264         returns inf. Needed on IRIX 6.5.
41265
41266 2007-03-25  Bruno Haible  <bruno@clisp.org>
41267
41268         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41269         (main): Use isnanl instead of x != x idiom.
41270         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41271
41272         * tests/test-frexp.c: Include isnan.h.
41273         (main): Use isnan instead of x != x idiom.
41274         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41275
41276 2007-03-25  Bruno Haible  <bruno@clisp.org>
41277
41278         * tests/test-frexp.c (NaN): New function/macro.
41279         (main): Use it instead of 0.0 / 0.0.
41280         * tests/test-isnan.c (NaN): New function/macro.
41281         (main): Use it instead of 0.0 / 0.0.
41282         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41283         (test_function): Use it instead of 0.0 / 0.0.
41284         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41285         (test_function): Use it instead of 0.0 / 0.0.
41286         * tests/test-snprintf-posix.h (NaN): New function/macro.
41287         (test_function): Use it instead of 0.0 / 0.0.
41288         * tests/test-sprintf-posix.h (NaN): New function/macro.
41289         (test_function): Use it instead of 0.0 / 0.0.
41290         * tests/test-fprintf-posix.h (NaN): New function/macro.
41291         (test_function): Use it instead of 0.0 / 0.0.
41292         * tests/test-printf-posix.h (NaN): New function/macro.
41293         (test_function): Use it instead of 0.0 / 0.0.
41294
41295         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41296
41297 2007-03-25  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41300
41301 2007-03-25  Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/regexec.c (merge_state_with_log): Make static.
41304
41305 2007-03-25  Bruno Haible  <bruno@clisp.org>
41306
41307         * lib/trigl.c (kernel_rem_pio2): Make static.
41308
41309 2007-03-25  Bruno Haible  <bruno@clisp.org>
41310
41311         * lib/sincosl.c (sincosl_table): Make static.
41312
41313 2007-03-25  Bruno Haible  <bruno@clisp.org>
41314
41315         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41316         if the compiler does not support C99.
41317
41318 2007-03-25  Bruno Haible  <bruno@clisp.org>
41319
41320         * modules/time (Makefile.am): Ensure all rule action lines start with a
41321         tab.
41322
41323 2007-03-24  Bruno Haible  <bruno@clisp.org>
41324
41325         * modules/tsearch-tests: New file.
41326         * tests/test-tsearch.sh: New file.
41327         * tests/test-tsearch.c: New file, mostly copied from glibc.
41328
41329         * modules/search-tests: New file.
41330         * tests/test-search.c: New file.
41331
41332         * modules/search: New file.
41333         * lib/search_.h: New file, incorporating lib/tsearch.h.
41334         * m4/search_h.m4: New file.
41335         * lib/tsearch.h: Remove file.
41336         * lib/tsearch.c: Include search.h instead of tsearch.h.
41337         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41338         HAVE_TSEARCH.
41339         * modules/tsearch (Files): Remove lib/tsearch.h.
41340         (Depends-on): Add search.
41341         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41342         (Include): Change tsearch.h into search.h.
41343
41344 2007-03-24  Bruno Haible  <bruno@clisp.org>
41345
41346         * modules/fpucw: New file.
41347         * lib/fpucw.h: New file.
41348         * lib/frexp.c: Include fpucw.h.
41349         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41350         (FUNC): Use them.
41351         * lib/printf-frexp.c: Include fpucw.h.
41352         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41353         (FUNC): Use them.
41354         * lib/vasnprintf.c: Include fpucw.h.
41355         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41356         'long double' calculations.
41357         * tests/test-frexpl.c: Include fpucw.h.
41358         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41359         * tests/test-printf-frexpl.c: Include fpucw.h.
41360         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41361         * modules/frexpl (Depends-on): Add fpucw.
41362         * modules/printf-frexpl (Depends-on): Likewise.
41363         * modules/fprintf-posix (Depends-on): Likewise.
41364         * modules/snprintf-posix (Depends-on): Likewise.
41365         * modules/sprintf-posix (Depends-on): Likewise.
41366         * modules/vasnprintf-posix (Depends-on): Likewise.
41367         * modules/vasprintf-posix (Depends-on): Likewise.
41368         * modules/vfprintf-posix (Depends-on): Likewise.
41369         * modules/vsnprintf-posix (Depends-on): Likewise.
41370         * modules/vsprintf-posix (Depends-on): Likewise.
41371         * modules/frexpl-tests (Depends-on): Likewise.
41372         * modules/printf-frexpl-tests (Depends-on): Likewise.
41373
41374 2007-03-24  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/float+.h: New file.
41377         * lib/isnan.c: Include float+.h.
41378         (SIZE): New macro.
41379         (FUNC): Compare only SIZE bytes of the value.
41380         * lib/vasnprintf.c: Include float+.h.
41381         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41382         SIZEOF_LDBL or SIZEOF_DBL bytes.
41383         * modules/isnan-nolibm (Files): Add lib/float+.h.
41384         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41385         * modules/isnanl (Files): Add lib/float+.h.
41386         * modules/vasnprintf (Files): Add lib/float+.h.
41387
41388 2007-03-24  Bruno Haible  <bruno@clisp.org>
41389
41390         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41391         include isnanl-nolibm.h.
41392
41393 2007-03-24  Bruno Haible  <bruno@clisp.org>
41394
41395         * tests/test-read-file.c (main): Don't produce spurious output for
41396         expected situations. Make the test fail if it encountered unexpected
41397         results.
41398
41399 2007-03-24  Bruno Haible  <bruno@clisp.org>
41400
41401         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41402         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41403
41404 2007-03-24  Bruno Haible  <bruno@clisp.org>
41405
41406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41407
41408 2007-03-24  Bruno Haible  <bruno@clisp.org>
41409
41410         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41411         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41412
41413         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41414         * modules/utf8-ucs4: Turn into a symbolic link to module
41415         unistr/u8-mbtouc.
41416
41417         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41418         utf8-ucs4-unsafe.
41419         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41420         unistr/u8-mbtouc-unsafe.
41421
41422         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41423         * modules/utf16-ucs4: Turn into a symbolic link to module
41424         unistr/u16-mbtouc.
41425
41426         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41427         utf16-ucs4-unsafe.
41428         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41429         unistr/u16-mbtouc-unsafe.
41430
41431         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41432         * modules/ucs4-utf8: Turn into a symbolic link to module
41433         unistr/u8-ubtomb.
41434
41435         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41436         * modules/ucs4-utf16: Turn into a symbolic link to module
41437         unistr/u16-ubtomb.
41438
41439 2007-03-24  Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41442         Enable the function only if HAVE_INLINE.
41443         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41444         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41445         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41446         Enable the function only if HAVE_INLINE.
41447         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41448         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41449         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41450         Enable the function only if HAVE_INLINE.
41451         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41452         Enable the function only if HAVE_INLINE.
41453         * modules/utf8-ucs4: Update.
41454         * modules/utf8-ucs4-unsafe: Update.
41455         * modules/utf16-ucs4: Update.
41456         * modules/utf16-ucs4-unsafe: Update.
41457         * modules/ucs4-utf8: Update.
41458         * modules/ucs4-utf16: Update.
41459
41460 2007-03-24  Bruno Haible  <bruno@clisp.org>
41461
41462         * lib/utf8-ucs4.h: Remove file.
41463         * lib/utf8-ucs4-unsafe.h: Remove file.
41464         * lib/utf16-ucs4.h: Remove file.
41465         * lib/utf16-ucs4-unsafe.h: Remove file.
41466         * lib/ucs4-utf8.h: Remove file.
41467         * lib/ucs4-utf16.h: Remove file.
41468         * lib/unistr.h: Include their previous contents.
41469         * m4/utf-ucs4.m4: Remove file.
41470         * m4/ucs4-utf.m4: Remove file.
41471         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41472         (Depends-on): Add unistr/base.
41473         (configure.ac): Remove gl_UTF_UCS4.
41474         (Makefile.am): Update.
41475         (Include): Change to unistr.h.
41476         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41477         (Depends-on): Add unistr/base.
41478         (configure.ac): Remove gl_UTF_UCS4.
41479         (Makefile.am): Update.
41480         (Include): Change to unistr.h.
41481         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41482         (Depends-on): Add unistr/base.
41483         (configure.ac): Remove gl_UTF_UCS4.
41484         (Makefile.am): Update.
41485         (Include): Change to unistr.h.
41486         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41487         (Depends-on): Add unistr/base.
41488         (configure.ac): Remove gl_UTF_UCS4.
41489         (Makefile.am): Update.
41490         (Include): Change to unistr.h.
41491         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41492         (Depends-on): Add unistr/base.
41493         (configure.ac): Remove gl_UCS4_UTF.
41494         (Makefile.am): Update.
41495         (Include): Change to unistr.h.
41496         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41497         (Depends-on): Add unistr/base.
41498         (configure.ac): Remove gl_UCS4_UTF.
41499         (Makefile.am): Update.
41500         (Include): Change to unistr.h.
41501         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41502         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41503         utf8-ucs4-unsafe.h.
41504         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41505         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41506         utf16-ucs4-unsafe.h.
41507         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41508         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41509         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41510         * lib/unistr/u8-strchr.c: Likewise.
41511         * lib/unistr/u8-strrchr.c: Likewise.
41512         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41513         * lib/unistr/u16-strchr.c: Likewise.
41514         * lib/unistr/u16-strrchr.c: Likewise.
41515         * lib/striconveh.c: Update.
41516         * lib/linebreak.c: Update.
41517
41518 2007-03-24  Bruno Haible  <bruno@clisp.org>
41519
41520         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41521         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41522
41523 2007-03-22  Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41526
41527 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41528
41529         * MODULES.html.sh (File system functions): New module write-any-file.
41530         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41531         * m4/write-any-file.m4: New files.
41532
41533 2007-03-23  Eric Blake  <ebb9@byu.net>
41534
41535         * gnulib-tool: Rearrange space-tab sequences, since some editors
41536         like to eat them.
41537
41538 2007-03-23  Eric Blake  <ebb9@byu.net>
41539
41540         * lib/version-etc.c (version_etc_va): Update license wording to
41541         be more concise.  Recommended by Richard Stallman.
41542
41543 2007-03-22  Bruno Haible  <bruno@clisp.org>
41544
41545         * lib/poll.c (MSG_PEEK): New fallback definition.
41546
41547 2007-03-22  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41550         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41551         (main): Update.
41552         Fixes a compilation error on BeOS.
41553
41554 2007-03-22  Bruno Haible  <bruno@clisp.org>
41555
41556         * modules/frexpl-tests: New file.
41557         * tests/test-frexpl.c: New file.
41558
41559         * modules/frexpl: New file.
41560         * m4/frexpl.m4: New file.
41561         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41562         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41564         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41565         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41566         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41567
41568 2007-03-22  Bruno Haible  <bruno@clisp.org>
41569
41570         * lib/frexpl.c: Share code with lib/frexp.c.
41571         * modules/mathl (Files): Add lib/frexp.c.
41572         (Depends-on): Add isnanl-nolibm.
41573
41574 2007-03-22  Bruno Haible  <bruno@clisp.org>
41575
41576         * modules/printf-frexp (Files): Add m4/frexp.m4.
41577         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41578         only if the found frexp function actually works.
41579
41580 2007-03-22  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/frexp.c: Remove older implementation that uses divisions.
41583
41584 2007-03-21  Bruno Haible  <bruno@clisp.org>
41585
41586         * modules/frexp-tests: New file.
41587         * tests/test-frexp.c: New file.
41588
41589         * modules/frexp: New file.
41590         * lib/frexp.c: New file.
41591         * m4/frexp.m4: New file.
41592         * lib/math_.h (frexp): New declaration.
41593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41594         REPLACE_FREXP.
41595         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41596
41597 2007-03-21  Bruno Haible  <bruno@clisp.org>
41598
41599         * modules/isnanl-tests: New file.
41600         * tests/test-isnanl.c: New file.
41601
41602         * modules/isnanl: New file.
41603         * lib/isnanl.h: New file.
41604         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41605         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41606         gl_FUNC_ISNANL_WORKS.
41607         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41608         New macros.
41609
41610 2007-03-21  Bruno Haible  <bruno@clisp.org>
41611
41612         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41613         lib/isnanl.h.
41614         (Include): Update.
41615         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41616         * lib/vasnprintf.c: Update.
41617         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41618         tests/test-isnanl.h, remove tests/test-isnanl.c.
41619         (Makefile.am): Update.
41620         * tests/test-isnanl-nolibm.c: New file.
41621         * tests/test-isnanl.h: New file.
41622         * tests/test-isnanl.c: Remove file.
41623
41624 2007-03-21  Jim Meyering  <jim@meyering.net>
41625
41626         When trying to open ".", treat ESTALE like EACCES.
41627         * lib/savewd.c (savewd_save): Resort to forking not just upon
41628         failure with EACCES, but also when errno is ESTALE.
41629
41630 2007-03-20  Bruno Haible  <bruno@clisp.org>
41631
41632         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41633         Needed on AIX 5.1. Reported by Matthew Woehlke.
41634
41635 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41636
41637         Suggestions by Bruno Haible:
41638         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41639         our own.
41640         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41641         * modules/acl (Depends-on): Add gettext.
41642
41643 2007-03-19  Bruno Haible  <bruno@clisp.org>
41644
41645         * modules/iconvme: Remove file.
41646         * lib/iconvme.h: Remove file.
41647         * lib/iconvme.c: Remove file.
41648         * m4/iconvme.m4: Remove file.
41649
41650 2007-03-19  Bruno Haible  <bruno@clisp.org>
41651
41652         * doc/relocatable-maint.texi: Break long shell script line.
41653         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41654
41655 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41656
41657         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41658         handle file_has_acl.
41659         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41660         * lib/acl.c: Move header inclusions and related macro defns into
41661         lib/acl-internal.h.
41662         (S_ISLNK): Remove defn, since that's now done for us.
41663         (file_has_acl): Move to lib/file-has-acl.c.
41664         Call acl_trivial if available.  This is the crucial part of the fix.
41665         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41666         shared within the library.  Rewrite a bit, partly to make it compatible
41667         with the GNU coding style.
41668         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41669         Remove unnecessary double-quotes.
41670         Don't test for acl_to_text; the build will catch that.
41671         Replace acl_entries if it doesn't exist and it is needed.
41672         Check for -lsec and acl_trivial (as used on Solaris 10).
41673         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41674         lib/file-has-acl.c.
41675         (Depends-on): Add sys_stat, for S_ISLNK.
41676
41677 2007-03-19  Ben Pfaff  <blp@gnu.org>
41678
41679         * doc/gnulib.texi: Fix typos.
41680         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41681
41682 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41683
41684         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41685         If size is zero here, buf must be zero.
41686
41687 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41688
41689         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41690         <bruno@clisp.org>.
41691
41692 2007-03-18  Bruno Haible  <bruno@clisp.org>
41693
41694         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41695         Suggested by Eric Blake.
41696
41697 2007-03-18  Ben Pfaff  <blp@gnu.org>
41698
41699         * doc/relocatable.texi: Recommend using as prefix a directory
41700         that does not exist and will never be created.  Based on
41701         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41702         and others.
41703
41704 2007-03-17  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/fchownat.c: Include lchown.h.
41707
41708 2007-03-17  Bruno Haible  <bruno@clisp.org>
41709
41710         Fix endless loop when the given allocated size was > INT_MAX.
41711         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41712         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41713         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41714         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41715         * lib/sprintf.c (sprintf): Likewise.
41716
41717 2007-03-17  Bruno Haible  <bruno@clisp.org>
41718
41719         * tests/test-argp-2.sh (func_compare): Output a context diff.
41720
41721 2007-03-17  Bruno Haible  <bruno@clisp.org>
41722
41723         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41724         locale's decimal-point character.
41725
41726 2007-03-17  Bruno Haible  <bruno@clisp.org>
41727
41728         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41729         before comparing it. Needed because on some platforms (e.g. x86) a
41730         'long double' occupies less bytes than sizeof (long double).
41731
41732 2007-03-17  Bruno Haible  <bruno@clisp.org>
41733
41734         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41735         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41736         * tests/test-getaddrinfo.c (simple): Likewise.
41737         * tests/test-read-file.c (main): Likewise.
41738
41739 2007-03-17  Bruno Haible  <bruno@clisp.org>
41740
41741         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41742
41743 2007-03-17  Bruno Haible  <bruno@clisp.org>
41744
41745         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41746         unused variable.
41747
41748 2007-03-17  Bruno Haible  <bruno@clisp.org>
41749
41750         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41751         * tests/test-c-strncasecmp.c: Likewise.
41752
41753 2007-03-17  Bruno Haible  <bruno@clisp.org>
41754
41755         * modules/stdlib (Depends-on): Add unistd.
41756         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41757         Needed for MacOS X 10.3.
41758
41759 2007-03-17  Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41762
41763 2007-03-17  Bruno Haible  <bruno@clisp.org>
41764
41765         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41766
41767 2007-03-17  Bruno Haible  <bruno@clisp.org>
41768
41769         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41770         to reflect files copied from gnulib (with or without modifications).
41771         Suggested by Jim Meyering.
41772
41773 2007-03-17  Eric Blake  <ebb9@byu.net>
41774
41775         * NEWS: Document stdlib change from 2007-02-18.
41776
41777 2007-03-17  Jim Meyering  <jim@meyering.net>
41778
41779         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41780         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41781         someone uses a name containing shell meta-characters.
41782         Reported by Alfred M. Szmidt.
41783
41784         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41785
41786 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41787
41788         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41789         and copy gettext configuration files only if configure.ac contains
41790         a use of AM_GNU_GETTEXT_VERSION.
41791
41792 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41793
41794         * build-aux/bootstrap (gnulib_name): New variable.
41795         (gnulib_tool_options): Use it.
41796
41797 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41798
41799         * tests/test-des.c: Use new namespace.
41800
41801 2007-03-15  Bruno Haible  <bruno@clisp.org>
41802
41803         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41804         Reported by James Youngman <jay@gnu.org>.
41805
41806 2007-03-15  Bruno Haible  <bruno@clisp.org>
41807
41808         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41809         declared prototype. Needed with cc on OSF/1 5.1.
41810
41811 2007-03-15  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41814         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41815         (struct gl_list_implementation): Add dispose_fn argument to the
41816         'create_empty', 'create' methods.
41817         (struct gl_list_impl_base): Add field 'dispose_fn'.
41818         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41819         argument.
41820         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41821         dispose_fn argument.
41822         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41823         dispose_fn on the dropped values.
41824         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41825         dispose_fn argument.
41826         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41827         dropped values.
41828         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41829         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41830         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41831         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41832         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41833         argument.
41834         (gl_tree_list_free): Call dispose_fn on the dropped values.
41835         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41836         the dropped values.
41837         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41838         Add dispose_fn argument.
41839         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41840         Call dispose_fn on the dropped values.
41841         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41842         Add dispose_fn argument.
41843         (gl_sublist_create): Initialize the 'dispose_fn' field.
41844         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41845         * tests/test-array_list.c (main): Update.
41846         * tests/test-carray_list.c (main): Update.
41847         * tests/test-avltree_list.c (main): Update.
41848         * tests/test-rbtree_list.c (main): Update.
41849         * tests/test-avltreehash_list.c (main): Update.
41850         * tests/test-rbtreehash_list.c (main): Update.
41851         * tests/test-linked_list.c (main): Update.
41852         * tests/test-linkedhash_list.c (main): Update.
41853         * tests/test-array_oset.c (main): Update.
41854
41855 2007-03-15  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41858         (gl_oset_create_empty): Add dispose_fn argument.
41859         (struct gl_oset_implementation): Add dispose_fn argument to
41860         'create_empty' method.
41861         (struct gl_oset_impl_base): Add dispose_fn field.
41862         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41863         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41864         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41865         values.
41866         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41867         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41868         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41869         dropped value.
41870         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41871         dropped value.
41872         * tests/test-array_oset.c (main): Update.
41873         * tests/test-avltree_oset.c (main): Update.
41874         * tests/test-rbtree_oset.c (main): Update.
41875         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41876
41877 2007-03-13  Bruno Haible  <bruno@clisp.org>
41878
41879         * tests/test-stdbool.c (i): Update after last patch.
41880
41881 2007-03-12  Bruno Haible  <bruno@clisp.org>
41882
41883         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41884         the iswprint macro. Needed on Solaris 2.5.1.
41885
41886 2007-03-12  Bruno Haible  <bruno@clisp.org>
41887
41888         * tests/test-printf-frexp.c (main): Declare x as volatile.
41889
41890 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41891
41892         * doc/gnulib.texi (Build robot for gnulib): New section.
41893
41894 2007-03-12  Jim Meyering  <jim@meyering.net>
41895
41896         * build-aux/bootstrap: New file.
41897         * build-aux/bootstrap.conf: New file, from coreutils.
41898
41899 2007-03-11  Bruno Haible  <bruno@clisp.org>
41900
41901         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41902
41903 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41904
41905         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41906         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41907         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41908
41909 2007-03-11  Bruno Haible  <bruno@clisp.org>
41910
41911         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41912         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41913
41914 2007-03-11  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41917         formula. Needed for SunPRO C 5.0.
41918
41919 2007-03-11  Bruno Haible  <bruno@clisp.org>
41920
41921         * modules/long-options (Depends-on): Add getopt.
41922
41923 2007-03-11  Bruno Haible  <bruno@clisp.org>
41924
41925         * modules/modechange (Depends-on): Add stdbool.
41926
41927 2007-03-11  Bruno Haible  <bruno@clisp.org>
41928
41929         * modules/i-ring (Depends-on): Add stdbool.
41930
41931 2007-03-11  Bruno Haible  <bruno@clisp.org>
41932
41933         * modules/gc-des (Depends-on): Add stdbool.
41934
41935 2007-03-11  Bruno Haible  <bruno@clisp.org>
41936
41937         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41938
41939 2007-03-11  Bruno Haible  <bruno@clisp.org>
41940
41941         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41942
41943 2007-03-11  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41946
41947 2007-03-11  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/vasnprintf.c (sprintf): Undefine.
41950
41951 2007-03-11  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41954         initializers in SunPRO C and Compaq C compilers.
41955
41956 2007-03-11  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41959         decrementing code ANSI C compliant.
41960
41961 2007-03-11  Bruno Haible  <bruno@clisp.org>
41962
41963         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41964         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41965
41966 2007-03-11  Bruno Haible  <bruno@clisp.org>
41967
41968         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41969         <stdbool.h> substitute doesn't pass.
41970
41971 2007-03-11  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41974
41975 2007-03-11  Bruno Haible  <bruno@clisp.org>
41976
41977         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41978         script, for submission to autobuild.josefsson.org.
41979
41980 2007-03-10  Bruno Haible  <bruno@clisp.org>
41981
41982         * modules/canonicalize-lgpl-tests: New file.
41983         * tests/test-canonicalize-lgpl.sh: New file.
41984         * tests/test-canonicalize-lgpl.c: New file.
41985
41986         * modules/c-strcase-tests: New file.
41987         * tests/test-c-strcase.sh: New file.
41988         * tests/test-c-strcasecmp.c: New file.
41989         * tests/test-c-strncasecmp.c: New file.
41990
41991         * modules/atexit-tests: New file.
41992         * tests/test-atexit.sh: New file.
41993         * tests/test-atexit.c: New file.
41994
41995 2007-03-10  Bruno Haible  <bruno@clisp.org>
41996
41997         * tests/test-binary-io.sh: Use temporary filenames that are not so
41998         likely to clash with those of other tests (in a parallel make).
41999         * tests/test-binary-io.c: Likewise.
42000
42001 2007-03-10  Bruno Haible  <bruno@clisp.org>
42002
42003         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42004         fallback; use #error instead.
42005         Suggested by Simon Josefsson.
42006
42007 2007-03-10  Bruno Haible  <bruno@clisp.org>
42008
42009         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42010         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42011         first and the last.
42012
42013 2007-03-10  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42016
42017 2007-03-10  Bruno Haible  <bruno@clisp.org>
42018
42019         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42020         "make distcheck".
42021         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42022         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42023         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42024
42025 2007-03-10  Bruno Haible  <bruno@clisp.org>
42026
42027         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42028         variable.
42029         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42030         variable.
42031
42032 2007-03-09  Eric Blake  <ebb9@byu.net>
42033         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42034
42035         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42036         types are not being provided by gnulib.
42037         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42038         types are supported.
42039
42040 2007-03-10  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/stdio_.h (__attribute__): New macro.
42043         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42044         vsprintf): Specify __attribute__ __format__ for GCC.
42045         Suggested by Eric Blake.
42046
42047 2007-03-09  Bruno Haible  <bruno@clisp.org>
42048
42049         * modules/printf-posix-tests: New file.
42050         * tests/test-printf-posix.sh: New file.
42051         * tests/test-printf-posix.c: New file.
42052
42053         * modules/printf-posix: New file.
42054         * lib/printf.c: New file.
42055         * m4/printf-posix-rpl.m4: New file.
42056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42057         REPLACE_PRINTF.
42058         * lib/stdio_.h (printf): New declaration.
42059         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42060         ____strfmon____): New macros.
42061         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42062         REPLACE_PRINTF.
42063
42064 2007-03-09  Bruno Haible  <bruno@clisp.org>
42065
42066         * tests/test-vasnprintf-posix2.sh: New file.
42067         * tests/test-vasnprintf-posix2.c: New file.
42068         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42069         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42070         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42071
42072         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42073         a locale dependent decimal point, rather than always '.'.
42074
42075 2007-03-09  Eric Blake  <ebb9@byu.net>
42076
42077         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42078         spite of platforms like Tandem/NSK that define it to -1.
42079
42080 2007-03-08  Bruno Haible  <bruno@clisp.org>
42081
42082         * modules/vprintf-posix-tests: New file.
42083         * tests/test-vprintf-posix.sh: New file.
42084         * tests/test-vprintf-posix.c: New file.
42085         * tests/test-printf-posix.h: New file.
42086
42087         * modules/vprintf-posix: New file.
42088         * lib/vprintf.c: New file.
42089         * m4/vprintf-posix.m4: New file.
42090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42091         REPLACE_VPRINTF.
42092         * lib/stdio_.h (vprintf): New declaration.
42093         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42094         REPLACE_VPRINTF.
42095
42096 2007-03-08  Bruno Haible  <bruno@clisp.org>
42097
42098         * modules/fprintf-posix-tests: New file.
42099         * tests/test-fprintf-posix.sh: New file.
42100         * tests/test-fprintf-posix.c: New file.
42101
42102         * modules/fprintf-posix: New file.
42103         * lib/fprintf.c: New file.
42104         * m4/fprintf-posix.m4: New file.
42105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42106         REPLACE_FPRINTF.
42107         * lib/stdio_.h (fprintf): New declaration.
42108         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42109         REPLACE_FPRINTF.
42110
42111 2007-03-08  Bruno Haible  <bruno@clisp.org>
42112
42113         * modules/vfprintf-posix-tests: New file.
42114         * tests/test-vfprintf-posix.sh: New file.
42115         * tests/test-vfprintf-posix.c: New file.
42116         * tests/test-fprintf-posix.h: New file.
42117         * tests/test-fprintf-posix.out: New file.
42118
42119         * modules/vfprintf-posix: New file.
42120         * lib/vfprintf.c: New file.
42121         * m4/vfprintf-posix.m4: New file.
42122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42123         REPLACE_VFPRINTF.
42124         * lib/stdio_.h (vfprintf): New declaration.
42125         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42126         REPLACE_VFPRINTF.
42127
42128 2007-03-08  Bruno Haible  <bruno@clisp.org>
42129
42130         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42131
42132 2007-03-08  Bruno Haible  <bruno@clisp.org>
42133
42134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42135         instead of 'expr' invocations.
42136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42141         Suggested by Paul Eggert.
42142
42143 2007-03-08  Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/fseterr-tests: New file.
42146         * tests/test-fseterr.c: New file.
42147
42148         * modules/fseterr: New file.
42149         * lib/fseterr.h: New file.
42150         * lib/fseterr.c: New file.
42151
42152 2007-03-08  Bruno Haible  <bruno@clisp.org>
42153
42154         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42155         * lib/getopt_.h: Likewise.
42156         * lib/mbswidth.h: Likewise.
42157         * lib/setenv.h: Likewise.
42158         * lib/vasnprintf.h: Likewise.
42159         * lib/vasprintf.h: Likewise.
42160         * lib/verror.h: Likewise.
42161         * lib/xsetenv.h: Likewise.
42162         * lib/xvasprintf.h: Likewise.
42163
42164 2007-03-08  Jim Meyering  <jim@meyering.net>
42165
42166         * users.txt: Add parted.
42167
42168         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42169
42170 2007-03-07  Bruno Haible  <bruno@clisp.org>
42171
42172         * m4/printf.m4: Make the shell script snippets copy&pastable.
42173
42174 2007-03-02  Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/netinet_in_.h: New file.
42177         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42178         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42179         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42180         (Depends-on): Add absolute-header.
42181         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42182         into netinet/in.h.
42183
42184 2007-03-03  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/sys_select_.h: New file.
42187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42188         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42189         * modules/sys_select (Files): Add lib/sys_select_.h.
42190         (Depends-on): Add absolute-header.
42191         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42192         into sys/select.h.
42193
42194 2007-03-02  Bruno Haible  <bruno@clisp.org>
42195
42196         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42197         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42198         values.
42199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42200         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42201         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42202         * modules/sys_socket (Depends-on): Add absolute-header.
42203         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42204         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42205         (Include): Remove requirement of inclusion of <sys/types.h>.
42206
42207 2007-03-02  Bruno Haible  <bruno@clisp.org>
42208
42209         * lib/byteswap_.h (bswap_32): Fix formula.
42210
42211 2007-03-06  Bruno Haible  <bruno@clisp.org>
42212
42213         * modules/sprintf-posix-tests: New file.
42214         * tests/test-sprintf-posix.c: New file.
42215
42216         * modules/sprintf-posix: New file.
42217         * lib/sprintf.c: New file.
42218         * m4/sprintf-posix.m4: New file.
42219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42220         REPLACE_SPRINTF.
42221         * lib/stdio_.h (sprintf): New declaration.
42222         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42223         REPLACE_SPRINTF.
42224
42225 2007-03-06  Bruno Haible  <bruno@clisp.org>
42226
42227         * modules/vsprintf-posix-tests: New file.
42228         * tests/test-vsprintf-posix.c: New file.
42229         * tests/test-sprintf-posix.h: New file.
42230
42231         * modules/vsprintf-posix: New file.
42232         * lib/vsprintf.c: New file.
42233         * m4/vsprintf-posix.m4: New file.
42234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42235         REPLACE_VSPRINTF.
42236         * lib/stdio_.h (vsprintf): New declaration.
42237         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42238         REPLACE_VSPRINTF.
42239
42240 2007-03-06  Bruno Haible  <bruno@clisp.org>
42241
42242         * modules/vsnprintf (Depend-on): Remove minmax.
42243
42244 2007-03-06  Bruno Haible  <bruno@clisp.org>
42245
42246         * modules/snprintf-posix-tests: New file.
42247         * tests/test-snprintf-posix.c: New file.
42248
42249         * modules/snprintf-posix: New file.
42250         * m4/snprintf-posix.m4: New file.
42251         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42252         gl_FUNC_SNPRINTF.
42253         (gl_FUNC_SNPRINTF): Invoke it.
42254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42255         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42256         is set.
42257         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42258
42259 2007-03-06  Bruno Haible  <bruno@clisp.org>
42260
42261         * modules/vsnprintf-posix-tests: New file.
42262         * tests/test-vsnprintf-posix.c: New file.
42263         * tests/test-snprintf-posix.h: New file.
42264
42265         * modules/vsnprintf-posix: New file.
42266         * m4/vsnprintf-posix.m4: New file.
42267         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42268         gl_FUNC_VSNPRINTF.
42269         (gl_FUNC_VSNPRINTF): Invoke it.
42270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42271         * lib/stdio_.h (vsnprintf): Define as a replacement if
42272         REPLACE_VSNPRINTF is set.
42273         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42274
42275 2007-03-06  Bruno Haible  <bruno@clisp.org>
42276
42277         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42279
42280 2007-03-06  Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42283         (asinl): Declare also if HAVE_DECL_ASINL is set.
42284         (atanl): Declare also if HAVE_DECL_ATANL is set.
42285         (ceill): Declare also if HAVE_DECL_CEILL is set.
42286         (cosl): Declare also if HAVE_DECL_COSL is set.
42287         (expl): Declare also if HAVE_DECL_EXPL is set.
42288         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42289         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42290         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42291         (logl): Declare also if HAVE_DECL_LOGL is set.
42292         (sinl): Declare also if HAVE_DECL_SINL is set.
42293         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42294         (tanl): Declare also if HAVE_DECL_TANL is set.
42295         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42298         declaration of frexpl, ldexpl.
42299         * modules/printf-frexpl (Depends-on): Add math.
42300         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42301
42302 2007-03-05  Bruno Haible  <bruno@clisp.org>
42303
42304         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42305         frexpl and ldexpl are declared.
42306         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42307
42308 2007-03-05  Bruno Haible  <bruno@clisp.org>
42309
42310         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42311         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42312
42313 2007-03-05  Bruno Haible  <bruno@clisp.org>
42314
42315         * lib/stdio_.h: Include <stddef.h>.
42316
42317 2007-03-05  Bruno Haible  <bruno@clisp.org>
42318
42319         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42320
42321 2007-03-05  Bruno Haible  <bruno@clisp.org>
42322
42323         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42324         NetBSD 4, from Ralf Wildenhues.
42325
42326 2007-03-04  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/vasprintf.h: Update #if logic for the case when the functions
42329         exist but are overridden.
42330
42331 2007-03-04  Bruno Haible  <bruno@clisp.org>
42332
42333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42334         implementations: glibc-2.4 and MacOS X 10.3.
42335         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42336         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42337         * tests/test-vasprintf-posix.c (test_function): Likewise.
42338
42339 2007-03-04  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/vasprintf-posix-tests: New file.
42342         * tests/test-vasprintf-posix.c: New file.
42343
42344         * modules/vasprintf-posix: New file.
42345         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42346         defined.
42347         * m4/vasprintf-posix.m4: New file.
42348         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42349         gl_FUNC_VASPRINTF.
42350         (gl_FUNC_VASPRINTF): Invoke it.
42351         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42352         here.
42353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42354
42355 2007-03-04  Bruno Haible  <bruno@clisp.org>
42356
42357         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42358         REPLACE_GETTIMEOFDAY.
42359         * modules/sys_time (Makefile.am): Likewise.
42360         * m4/sys_time_h.m4: Likewise.
42361         * m4/gettimeofday.m4: Likewise.
42362
42363 2007-03-04  Bruno Haible  <bruno@clisp.org>
42364
42365         * modules/vasnprintf-posix-tests: New file.
42366         * tests/test-vasnprintf-posix.c: New file.
42367
42368         * modules/vasnprintf-posix: New file.
42369         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42370         printf-frexpl.h.
42371         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42372         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42373         REPLACE_VASNPRINTF is defined.
42374         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42375         gl_FUNC_VASNPRINTF.
42376         (gl_FUNC_VASNPRINTF): Invoke it.
42377         * m4/vasnprintf-posix.m4: New file.
42378         * m4/printf.m4: New file.
42379
42380 2007-03-04  Bruno Haible  <bruno@clisp.org>
42381
42382         Compile progreloc.c only if --enable-relocatable is specified.
42383         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42384         if --enable-relocatable was specified.
42385         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42386         lib_SOURCES.
42387
42388 2007-03-04  Jim Meyering  <jim@meyering.net>
42389
42390         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42391         Use it consistently, rather than enumerating errno constants.
42392
42393 2007-03-04  Bruno Haible  <bruno@clisp.org>
42394
42395         * modules/xvasprintf-tests: New file.
42396         * tests/test-xvasprintf.c: New file.
42397
42398         * modules/vasprintf-tests: New file.
42399         * tests/test-vasprintf.c: New file.
42400
42401         * modules/vasnprintf-tests: New file.
42402         * tests/test-vasnprintf.c: New file.
42403
42404         * modules/vsnprintf-tests: New file.
42405         * tests/test-vsnprintf.c: New file.
42406
42407         * modules/snprintf-tests: New file.
42408         * tests/test-snprintf.c: New file.
42409
42410 2007-03-04  Bruno Haible  <bruno@clisp.org>
42411
42412         Compile relocatable.c only if --enable-relocatable is specified.
42413         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42414         gl_RELOCATABLE_LIBRARY.
42415         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42416         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42417         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42418         gl_RELOCATABLE_LIBRARY.
42419         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42420         (Makefile.am): Remove lib_SOURCES.
42421         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42422         gl_RELOCATABLE_LIBRARY.
42423         (Makefile.am): Remove lib_SOURCES.
42424         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42425         always.
42426         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42427         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42428
42429 2007-03-04  Bruno Haible  <bruno@clisp.org>
42430
42431         * modules/argmatch-tests: New file.
42432         * tests/test-argmatch.c: New file.
42433
42434         * tests/test-allocsa.c (main): Halve the number of loop runs.
42435
42436         * modules/alloca-opt-tests: New file.
42437         * tests/test-alloca-opt.c: New file.
42438
42439 2007-03-04  Jim Meyering  <jim@meyering.net>
42440
42441         Work around difference between Linux ACLs and Solaris 10 ZFS.
42442         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42443         for EINVAL.
42444
42445 2007-03-03  Bruno Haible  <bruno@clisp.org>
42446
42447         * modules/relocatable-prog (Depends-on): Add back progreloc's
42448         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42449
42450 2007-03-03  Bruno Haible  <bruno@clisp.org>
42451
42452         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42453         * modules/relocatable-lib: New file.
42454
42455 2007-03-03  Bruno Haible  <bruno@clisp.org>
42456
42457         * modules/relocatable-prog: Renamed from modules/relocatable.
42458         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42459
42460 2007-03-03  Bruno Haible  <bruno@clisp.org>
42461
42462         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42463         m4/relocatable-lib.m4.
42464         (Depends-on): Remove 'relocatable'.
42465         (configure.ac): Add gl_RELOCATABLE_NOP.
42466
42467 2007-03-03  Bruno Haible  <bruno@clisp.org>
42468
42469         * modules/relocatable-prog-wrapper: New file.
42470         * modules/relocatable (Depends-on): Add it. Remove all other
42471         dependencies except progname.
42472         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42473
42474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42475         (gl_FUNC_STRERROR): Nop.
42476         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42477
42478         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42479         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42480
42481         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42482         (gl_FUNC_READLINK): Update.
42483
42484         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42485
42486 2007-03-03  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42489         * modules/xreadlink (Depends-on): Add unistd.
42490         * modules/xreadlink-with-size (Depends-on): Likewise.
42491
42492 2007-03-03  Bruno Haible  <bruno@clisp.org>
42493
42494         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42495         extracted from gt_FUNC_SETENV.
42496         (gt_FUNC_SETENV): Remove macro.
42497         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42498         remove gt_FUNC_SETENV.
42499
42500 2007-03-03  Bruno Haible  <bruno@clisp.org>
42501
42502         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42503         ENABLE_RELOCATABLE here.
42504         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42505
42506 2007-03-03  Bruno Haible  <bruno@clisp.org>
42507
42508         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42509         * tests/test-rbtreehash_list.c: Include progname.h.
42510         (main): Call set_program_name.
42511
42512         * modules/rbtree-oset-tests (Depends-on): Add progname.
42513         * tests/test-rbtree_oset.c: Include progname.h.
42514         (main): Call set_program_name.
42515
42516         * modules/rbtree-list-tests (Depends-on): Add progname.
42517         * tests/test-rbtree_list.c: Include progname.h.
42518         (main): Call set_program_name.
42519
42520         * modules/linked-list-tests (Depends-on): Add progname.
42521         * tests/test-linked_list.c: Include progname.h.
42522         (main): Call set_program_name.
42523
42524 2007-03-03  Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42527         All uses of __restrict changed to _Restrict_.
42528         * lib/glob_.h (__restrict): Remove macro.
42529
42530 2007-03-02  Bruno Haible  <bruno@clisp.org>
42531
42532         * modules/gettext (configure.ac): Require gettext infrastructure
42533         from version 0.16.1.
42534
42535 2007-03-02  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/linkedhash-list-tests (Depends-on): Add progname.
42538         * tests/test-linkedhash_list.c: Include progname.h.
42539         (main): Call set_program_name.
42540
42541         * modules/carray-list-tests (Depends-on): Add progname.
42542         * tests/test-carray_list.c: Include progname.h.
42543         (main): Call set_program_name.
42544
42545         * modules/avltreehash-list-tests (Depends-on): Add progname.
42546         * tests/test-avltreehash_list.c: Include progname.h.
42547         (main): Call set_program_name.
42548
42549         * modules/avltree-oset-tests (Depends-on): Add progname.
42550         * tests/test-avltree_oset.c: Include progname.h.
42551         (main): Call set_program_name.
42552
42553         * modules/avltree-list-tests (Depends-on): Add progname.
42554         * tests/test-avltree_list.c: Include progname.h.
42555         (main): Call set_program_name.
42556
42557         * modules/array-oset-tests (Depends-on): Add progname.
42558         * tests/test-array_oset.c: Include progname.h.
42559         (main): Call set_program_name.
42560
42561         * modules/array-list-tests (Depends-on): Add progname.
42562         * tests/test-array_list.c: Include progname.h.
42563         (main): Call set_program_name.
42564
42565         * modules/argp-tests (Depends-on): Add progname.
42566         * tests/test-argp.c: Include argp.h first. Include progname.h.
42567         (main): Call set_program_name.
42568
42569 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42570
42571         * doc/gnulib-tool.texi (Initial import): Reword description of
42572         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42573         limited effect even if defined after the first system include.
42574
42575 2007-03-01  Bruno Haible  <bruno@clisp.org>
42576
42577         * build-aux/config.libpath: Update to libtool-1.5.22.
42578         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42579
42580 2007-03-01  Bruno Haible  <bruno@clisp.org>
42581
42582         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42583         foo_CFLAGS.
42584         Reported by Ralf Wildenhues.
42585
42586 2007-03-01  Bruno Haible  <bruno@clisp.org>
42587
42588         * build-aux/install-reloc: Remove object files left over by some
42589         compilers.
42590         Reported by Ralf Wildenhues.
42591
42592 2007-03-01  Bruno Haible  <bruno@clisp.org>
42593
42594         * build-aux/install-reloc: Break long lines.
42595
42596 2007-03-01  Bruno Haible  <bruno@clisp.org>
42597
42598         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42599         Reported by Ralf Wildenhues.
42600
42601 2007-03-01  Bruno Haible  <bruno@clisp.org>
42602
42603         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42604         include ordering constraints.
42605
42606 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42607
42608         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42610         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42611         as another example.
42612         * lib/time_.h: Fix misspelling.
42613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42614         Require gl_HEADER_TIME_H_DEFAULTS.
42615         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42616         * m4/time_r.m4 (gl_TIME_R): Likewise.
42617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42618
42619 2007-03-01  Bruno Haible  <bruno@clisp.org>
42620
42621         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42622         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42623
42624 2007-03-01  Jim Meyering  <jim@meyering.net>
42625
42626         * modules/xreadlink (Maintainer): Add my name.
42627         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42628
42629 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42630             Bruno Haible  <bruno@clisp.org>
42631
42632         * build-aux/install-reloc: Compile also c-ctype.c.
42633         * build-aux/relocatable.sh.in: New file.
42634         * doc/relocatable.texi: New file.
42635         * doc/relocatable-maint.texi: New file.
42636         * doc/gnulib.texi: Include relocatable-maint.texi.
42637         * lib/progreloc.c: Include unistd.h unconditionally.
42638         * lib/relocwrapper.c: Include unistd.h unconditionally.
42639         Include c-ctype.h.
42640         (add_dotbin): Use c_tolower.
42641         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42642         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42643         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42644         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42645         to m4/relocatable-lib.m4.
42646         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42647         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42648         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42649         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42650         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42651         * modules/relocatable: New file.
42652         * modules/relocatable-lib: New file.
42653         * modules/relocatable-script: New file.
42654
42655 2007-02-28  Bruno Haible  <bruno@clisp.org>
42656
42657         Import --enable-relocatable infrastructure.
42658         * build-aux/config.libpath: New file, from GNU gettext.
42659         * build-aux/install-reloc: New file, from GNU gettext.
42660         * build-aux/reloc-ldflags: New file, from GNU gettext.
42661         * lib/relocatable.h: New file, from GNU gettext.
42662         * lib/relocatable.c: New file, from GNU gettext.
42663         * lib/relocwrapper.c: New file, from GNU gettext.
42664         * m4/relocatable.m4: New file, from GNU gettext.
42665
42666 2007-02-28  Bruno Haible  <bruno@clisp.org>
42667
42668         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42669
42670         * modules/xreadlink: New file, from GNU gettext with modifications.
42671         * lib/xreadlink.c: New file, from GNU gettext.
42672         * lib/xreadlink.h: Add comments.
42673         (xreadlink): New declaration.
42674
42675         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42676         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42677         lib/xreadlink-with-size.c.
42678         (configure.ac): Remove gl_XREADLINK invocation.
42679         (Makefile.am): Augment lib_SOURCES.
42680         * m4/xreadlink.m4: Remove file.
42681         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42682         (xreadlink_with_size): Renamed from xreadink.
42683         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42684         * modules/canonicalize (Depends-on): Replace xreadlink with
42685         xreadlink-with-size.
42686         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42687
42688 2007-02-25  Jim Meyering  <jim@meyering.net>
42689
42690         * build-aux/announce-gen: When complaining about excess arguments,
42691         list them.
42692
42693 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42694
42695         * README: Document signed integer overflow situation more
42696         accurately.
42697
42698 2007-02-25  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42701         'a' or 'A' conversion.
42702
42703 2007-02-25  Bruno Haible  <bruno@clisp.org>
42704
42705         * modules/filename: Renamed from modules/pathname.
42706         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42707         lib/concatpath.c with lib/concat-filename.c.
42708         (Makefile.am): Update.
42709         (Include): Replace pathname.h with filename.h.
42710         * lib/filename.h: Renamed from lib/pathname.h.
42711         (concatenated_filename): Renamed from concatenated_pathname.
42712         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42713         (concatenated_filename): Renamed from concatenated_pathname.
42714         * lib/findprog.c: Include filename.h instead of pathname.h.
42715         (find_in_path): Update.
42716         * lib/javacomp.c: Include filename.h instead of pathname.h.
42717         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42718         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42719         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42720         is_oldgcj_14_13_usable, is_javac_usable): Update.
42721         * lib/javaexec.c: Include filename.h instead of pathname.h.
42722         (execute_java_class): Update.
42723         * modules/findprog: Update.
42724         * modules/javacomp: Update.
42725         * modules/javaexec: Update.
42726         * MODULES.html.sh (File system functions): Add 'filename', remove
42727         'pathname'.
42728
42729 2007-02-25  Bruno Haible  <bruno@clisp.org>
42730
42731         * modules/printf-frexpl-tests: New file.
42732         * tests/test-printf-frexpl.c: New file.
42733
42734         * modules/printf-frexpl: New file.
42735         * lib/printf-frexpl.h: New file.
42736         * lib/printf-frexpl.c: New file.
42737         * m4/printf-frexpl.m4: New file.
42738
42739 2007-02-25  Bruno Haible  <bruno@clisp.org>
42740
42741         * modules/printf-frexp-tests: New file.
42742         * tests/test-printf-frexp.c: New file.
42743
42744         * modules/printf-frexp: New file.
42745         * lib/printf-frexp.h: New file.
42746         * lib/printf-frexp.c: New file.
42747         * m4/printf-frexp.m4: New file.
42748
42749 2007-02-25  Bruno Haible  <bruno@clisp.org>
42750
42751         Assume automake >= 1.10 for the tests.
42752         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42753         * modules/arctwo-tests: Likewise.
42754         * modules/argp-tests: Likewise.
42755         * modules/avltree-list-tests: Likewise.
42756         * modules/avltree-oset-tests: Likewise.
42757         * modules/avltreehash-list-tests: Likewise.
42758         * modules/carray-list-tests: Likewise.
42759         * modules/crc-tests: Likewise.
42760         * modules/des-tests: Likewise.
42761         * modules/gc-arcfour-tests: Likewise.
42762         * modules/gc-arctwo-tests: Likewise.
42763         * modules/gc-des-tests: Likewise.
42764         * modules/gc-hmac-md5-tests: Likewise.
42765         * modules/gc-hmac-sha1-tests: Likewise.
42766         * modules/gc-md2-tests: Likewise.
42767         * modules/gc-md4-tests: Likewise.
42768         * modules/gc-md5-tests: Likewise.
42769         * modules/gc-pbkdf2-sha1-tests: Likewise.
42770         * modules/gc-rijndael-tests: Likewise.
42771         * modules/gc-sha1-tests: Likewise.
42772         * modules/gc-tests: Likewise.
42773         * modules/getaddrinfo-tests: Likewise.
42774         * modules/hmac-md5-tests: Likewise.
42775         * modules/hmac-sha1-tests: Likewise.
42776         * modules/linked-list-tests: Likewise.
42777         * modules/linkedhash-list-tests: Likewise.
42778         * modules/lock-tests: Likewise.
42779         * modules/md2-tests: Likewise.
42780         * modules/md4-tests: Likewise.
42781         * modules/md5-tests: Likewise.
42782         * modules/rbtree-list-tests: Likewise.
42783         * modules/rbtree-oset-tests: Likewise.
42784         * modules/rbtreehash-list-tests: Likewise.
42785         * modules/read-file-tests: Likewise.
42786         * modules/rijndael-tests: Likewise.
42787         * modules/stdint-tests: Likewise.
42788         * modules/tls-tests: Likewise.
42789
42790 2007-02-24  Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42793         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42794         function; instead check whether isnan with a double argument links.
42795         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42796         function; instead check whether isnan with a 'long double' argument
42797         links.
42798         Reported by Eric Blake <ebb9@byu.net>.
42799
42800 2007-02-24  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42803         defined.
42804         * lib/isnanl.c: Remove all code. Just include isnan.c.
42805         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42806
42807 2007-02-25  Jim Meyering  <jim@meyering.net>
42808
42809         Avoid conflicting types for 'unsetenv' on FreeBSD.
42810         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42811         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42812         in stdlib.h.
42813
42814 2007-02-24  Bruno Haible  <bruno@clisp.org>
42815
42816         * modules/isnanl-nolibm-tests: New file.
42817         * tests/test-isnanl.c: New file.
42818
42819         * modules/isnanl-nolibm: New file.
42820         * lib/isnanl.h: New file.
42821         * lib/isnanl.c: New file.
42822         * m4/isnanl.m4: New file.
42823
42824 2007-02-24  Bruno Haible  <bruno@clisp.org>
42825
42826         * modules/isnan-nolibm-tests: New file.
42827         * tests/test-isnan.c: New file.
42828
42829         * modules/isnan-nolibm: New file.
42830         * lib/isnan.h: New file.
42831         * lib/isnan.c: New file.
42832         * m4/isnan.m4: New file.
42833
42834 2007-02-24  Bruno Haible  <bruno@clisp.org>
42835
42836         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42837         assume that an exponent fits in 20 bits.
42838
42839 2007-02-24  Jim Meyering  <jim@meyering.net>
42840
42841         * m4/regex.m4: Update the description of the configure-time option,
42842         --without-included-regex, to state accurately what the defaults are,
42843         and perhaps to give people an idea why using this option is risky.
42844
42845 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42846
42847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42848         loops on small arguments.  This attempts to avoid the problem
42849         Bruno Haible reported for AIX 4.3.2 in
42850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42851
42852 2007-02-23  Bruno Haible  <bruno@clisp.org>
42853
42854         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42855         Needed for help2man.
42856
42857 2007-02-23  Karl Berry  <karl@gnu.org>
42858
42859         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42860         exists, foo.h should be cvs-ignored, not committed.
42861
42862 2007-02-23  Eric Blake  <ebb9@byu.net>
42863
42864         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42865         * lib/stat-time.h (includes): Likewise.
42866         * lib/utimecmp.c (includes): Likewise.
42867         * lib/utimens.h (includes): Likewise.
42868         * lib/getdate.y (includes): Also include "timespec.h" for use
42869         internal to the module.
42870         * modules/utimens (Depends-on): Revert yesterday's patch.
42871         * modules/nanosleep (Depends-on): Add missing dependency.
42872
42873 2007-02-22  Bruno Haible  <bruno@clisp.org>
42874
42875         * lib/glob.c: Don't include getlogin_r.h.
42876
42877 2007-02-22  Jim Meyering  <jim@meyering.net>
42878
42879         * modules/utimens (Depends-on): Add timespec, required for
42880         utimens.h's inclusion of timespec.h.
42881
42882 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42883
42884         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42885         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42886         Schwab in
42887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42888         I'll try to think of a better way to fix the Solaris problem.
42889
42890         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42891         like glibc; on Solaris 10, it fails with errno == EINVAL.
42892         POSIX says the behavior is unspecified if the first argument is NULL,
42893         so play it safe and never pass NULL to the system getcwd.
42894
42895 2007-02-21  Jim Meyering  <jim@meyering.net>
42896
42897         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42898         of gettimeofday.  It would conflict with the one now always
42899         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42900         an IRIX 6.5 build failure.
42901
42902 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42903
42904         Minor fixups to port to Solaris 10 with Sun C 5.8.
42905         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42906         * modules/getcwd (Depends-on): Add dirfd.
42907         * lib/putenv.c (putenv): #undef it.
42908         (rpl_putenv): New decl.
42909         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42910
42911 2007-02-20  Bruno Haible  <bruno@clisp.org>
42912
42913         * modules/stdio-tests: New file.
42914         * tests/test-stdio.c: New file.
42915
42916         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42917         (Depends-on): Add stdio.
42918         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42919         (Include): Use <stdio.h> instead of vsnprintf.h.
42920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42921         HAVE_DECL_VSNPRINTF.
42922         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42923
42924         * modules/snprintf (Files): Remove lib/snprintf.h.
42925         (Depends-on): Add stdio.
42926         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42927         (Include): Use <stdio.h> instead of snprintf.h.
42928         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42929         HAVE_DECL_SNPRINTF.
42930         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42931         * lib/getaddrinfo.c: Likewise.
42932
42933         * modules/stdio: New file.
42934         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42935         * lib/snprintf.h: Remove file.
42936         * lib/vsnprintf.h: Remove file.
42937         * lib/.cppi-disable: Remove snprintf.h.
42938         * m4/stdio_h.m4: New file.
42939         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42940
42941 2007-02-20  Jim Meyering  <jim@meyering.net>
42942
42943         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42944         used by e.g., mingw.  From Bruno Haible.
42945
42946 2007-02-19  Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42949         warnings.
42950         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42951
42952 2007-02-19  Bruno Haible  <bruno@clisp.org>
42953
42954         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42955         from mingw users.
42956
42957 2007-02-19  Bruno Haible  <bruno@clisp.org>
42958
42959         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42960         warnings.
42961         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42962
42963 2007-02-19  Jim Meyering  <jim@meyering.net>
42964
42965         Don't use FD after a successful "fdopendir (fd)".
42966         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42967         Reset it by calling dirfd on the just-obtained DIR*.
42968
42969         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42970         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42971
42972 2007-02-18  Bruno Haible  <bruno@clisp.org>
42973
42974         * lib/readlink.c: Include <unistd.h>.
42975         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42976         HAVE_READLINK.
42977         * modules/readlink (Depends-on): Add unistd.
42978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42979         (Include): Add <unistd.h>.
42980
42981         * lib/getlogin_r.h: Remove file.
42982         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42983         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42984         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42985         HAVE_DECL_GETLOGIN_R.
42986         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42988         (Include): Use <unistd.h> instead of getlogin_r.h.
42989
42990         * lib/getcwd.h: Remove file.
42991         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42992         * lib/xgetcwd.c: Likewise.
42993         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42994         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42995         * modules/getcwd (Files): Remove lib/getcwd.h.
42996         (Depends-on): Add unistd.
42997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42998         (Include): Use <unistd.h> instad of getcwd.h.
42999
43000         * lib/ftruncate.c: Include <unistd.h> first.
43001         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43002         Set HAVE_FTRUNCATE.
43003         * modules/ftruncate (Depends-on): Add unistd.
43004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43005
43006         * lib/fchdir.c: Include <unistd.h> first.
43007         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43009         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43010         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43011         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43012
43013         * lib/dup2.c: Include <unistd.h> first.
43014         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43015         HAVE_DUP2.
43016         * modules/dup2 (Depends-on): Add unistd.
43017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43018
43019         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43020         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43021         REPLACE_CHOWN. Don't define chown as a macro here.
43022         * modules/chown (Depends-on): Add unistd.
43023         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43024
43025         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43026         Add definition for GL_LINK_WARNING.
43027         (chown, dup2): New declarations.
43028         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43029         link warning.
43030         (ftruncate): New declaration.
43031         (getcwd): New declaration, taken from old getcwd.h.
43032         (getlogin_r): New declaration, taken from old getlogin_r.h.
43033         (readlink): New declaration.
43034         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43035         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43036         (gl_PREREQ_UNISTD): Remove macro.
43037         (gl_UNISTD_MODULE_INDICATOR): New macro.
43038         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43039         many new variables. Don't set UNISTD_H.
43040         * modules/unistd (Description): Change.
43041         (Depends-on): Add link-warning.
43042         (configure.ac): Update.
43043         (Makefile.am): Create unistd.h always. Substitute many new variables
43044         into it.
43045
43046 2007-02-18  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43049         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43050         HAVE_GETSUBOPT.
43051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43052         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43053         * lib/getsubopt.h: Remove file.
43054         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43055         (Depends-on): Add stdlib.
43056         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43057         (Includes): Use <stdlib.h> instead of getsubopt.h.
43058         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43059         Set HAVE_GETSUBOPT.
43060         * lib/getsubopt.c: Don't include getsubopt.h.
43061
43062 2007-02-18  Bruno Haible  <bruno@clisp.org>
43063
43064         * modules/fchdir (Depends-on): Add dup2.
43065
43066 2007-02-18  Bruno Haible  <bruno@clisp.org>
43067
43068         * lib/stdlib_.h: Handle glibc's special invocation convention
43069         specially.
43070
43071 2007-02-18  Bruno Haible  <bruno@clisp.org>
43072
43073         * modules/stdlib-tests: New file.
43074         * tests/test-stdlib.c: New file.
43075
43076         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43077         (Depends-on): Add stdlib.
43078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43079         (Includes): Use <stdlib.h> instead of mkstemp.h.
43080         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43081         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43082         * lib/mkstemp.c: Don't include mkstemp.h.
43083         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43084         * lib/stdlib--.h: Don't include mkstemp.h.
43085
43086         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43087         (Depends-on): Add stdlib.
43088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43089         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43090         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43091         HAVE_MKDTEMP.
43092         * lib/mkdtemp.c: Don't include mkdtemp.h.
43093         * lib/clean-temp.c: Don't include mkdtemp.h.
43094
43095         * modules/exit (Files): Remove lib/exit.h.
43096         (Depends-on): Add stdlib.
43097         (Makefile.am): Remove lib_SOURCES.
43098         (Include): Use <stdlib.h> instead of exit.h.
43099         * lib/argmatch.c: Don't include exit.h.
43100         * lib/execute.c: Likewise.
43101         * lib/pagealign_alloc.c: Likewise.
43102         * lib/pipe.c: Likewise.
43103         * lib/wait-process.c: Likewise.
43104         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43105         * lib/exitfail.c: Likewise.
43106         * lib/savewd.c: Likewise.
43107         * lib/xsetenv.c: Likewise.
43108
43109         * modules/stdlib: New file.
43110         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43111         and extra comments about mkstemp().
43112         * lib/exit.h: Remove file.
43113         * lib/mkdtemp.h: Remove file.
43114         * lib/mkstemp.h: Remove file.
43115         * m4/stdlib_h.m4: New file.
43116         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43117
43118 2007-02-18  Bruno Haible  <bruno@clisp.org>
43119
43120         * modules/math-tests: New file.
43121         * tests/test-math.c: New file.
43122
43123         * modules/math: New file.
43124         * modules/mathl (Files): Remove lib/mathl.h.
43125         (Depends-on): Add math.
43126         (Makefile.am): Don't mention mathl.h.
43127         (Include): Use <math.h> instead of mathl.h.
43128         * lib/math_.h: New file.
43129         * lib/mathl.h: Remove file.
43130         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43131         mathl.h.
43132         * lib/asinl.c: Likewise.
43133         * lib/atanl.c: Likewise.
43134         * lib/ceill.c: Likewise.
43135         * lib/cosl.c: Likewise.
43136         * lib/expl.c: Likewise.
43137         * lib/floorl.c: Likewise.
43138         * lib/frexpl.c: Likewise.
43139         * lib/ldexpl.c: Likewise.
43140         * lib/logl.c: Likewise.
43141         * lib/sincosl.c: Likewise.
43142         * lib/sinl.c: Likewise.
43143         * lib/sqrtl.c: Likewise.
43144         * lib/tanl.c: Likewise.
43145         * lib/trigl.c: Likewise.
43146         * m4/math_h.m4: New file.
43147         * MODULES.html.sh (Mathematics): Add math.
43148
43149 2007-02-17  Bruno Haible  <bruno@clisp.org>
43150
43151         * modules/wctype-tests: New file.
43152         * tests/test-wctype.c: New file.
43153
43154         * modules/wchar-tests: New file.
43155         * tests/test-wchar.c: New file.
43156
43157         * modules/unistd-tests: New file.
43158         * tests/test-unistd.c: New file.
43159
43160         * modules/time-tests: New file.
43161         * tests/test-time.c: New file.
43162
43163         * modules/sysexits-tests: New file.
43164         * tests/test-sysexits.c: New file.
43165
43166         * modules/sys_time-tests: New file.
43167         * tests/test-sys_time.c: New file.
43168
43169         * modules/sys_stat-tests: New file.
43170         * tests/test-sys_stat.c: New file.
43171
43172         * modules/sys_socket-tests: New file.
43173         * tests/test-sys_socket.c: New file.
43174
43175         * modules/sys_select-tests: New file.
43176         * tests/test-sys_select.c: New file.
43177
43178         * modules/string-tests: New file.
43179         * tests/test-string.c: New file.
43180
43181         * modules/stdbool-tests: New file.
43182         * tests/test-stdbool.c: New file.
43183
43184         * modules/netinet_in-tests: New file.
43185         * tests/test-netinet_in.c: New file.
43186
43187         * modules/inttypes-tests: New file.
43188         * tests/test-inttypes.c: New file.
43189
43190         * modules/fcntl-tests: New file.
43191         * tests/test-fcntl.c: New file.
43192
43193         * modules/byteswap-tests: New file.
43194         * tests/test-byteswap.c: New file.
43195
43196         * modules/arpa_inet-tests: New file.
43197         * tests/test-arpa_inet.c: New file.
43198
43199 2007-02-17  Bruno Haible  <bruno@clisp.org>
43200
43201         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43202         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43203         if the corresponding module is not enabled. Emit link warnings if
43204         the function is used nevertheless.
43205         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43206         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43207         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43208         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43209         * modules/inttypes (Depends-on): Add link-warning.
43210         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43211         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43212         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43213         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43214         * modules/imaxdiv (configure.ac): Likewise.
43215         * modules/strtoimax (configure.ac): Likewise.
43216         * modules/strtoumax (configure.ac): Likewise.
43217
43218 2007-02-17  Bruno Haible  <bruno@clisp.org>
43219
43220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43221         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43222         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43223         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43224
43225 2007-02-17  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/link-warning: New file.
43228         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43229         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43230         * modules/string (Depends-on): Add link-warning.
43231         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43232         string.h.
43233         * MODULES.html.sh (Support for building libraries and executables): Add
43234         link-warning.
43235
43236 2007-02-17  Bruno Haible  <bruno@clisp.org>
43237
43238         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43239         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43240         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43241         long lines.
43242
43243 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43244             Bruno Haible  <bruno@clisp.org>
43245
43246         * modules/tmpfile: New file.
43247         * lib/tmpfile.c: New file.
43248         * m4/tmpfile.m4: New file.
43249         * MODULES.html.sh (func_all_modules): New section "Input/output".
43250
43251 2007-02-15  Bruno Haible  <bruno@clisp.org>
43252
43253         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43254         (supports_delete_on_close): New function.
43255         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43256
43257 2007-02-14  Bruno Haible  <bruno@clisp.org>
43258
43259         * modules/mbspcasecmp-tests: New file.
43260         * tests/test-mbspcasecmp.sh: New file.
43261         * tests/test-mbspcasecmp.c: New file.
43262
43263         New module mbspcasecmp.
43264         * modules/mbspcasecmp: New file.
43265         * lib/mbspcasecmp.c: New file.
43266         * lib/string_.h (strncasecmp): Change warning message.
43267         (mbspcasecmp): New declaration.
43268         * m4/mbspcasecmp.m4: New file.
43269         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43270         GNULIB_MBSPCASECMP.
43271         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43272         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43273
43274 2007-02-14  Bruno Haible  <bruno@clisp.org>
43275
43276         * modules/mbsncasecmp-tests: New file.
43277         * tests/test-mbsncasecmp.sh: New file.
43278         * tests/test-mbsncasecmp.c: New file.
43279
43280         New module mbsncasecmp.
43281         * modules/mbsncasecmp: New file.
43282         * lib/mbsncasecmp.c: New file.
43283         * lib/string_.h (mbsncasecmp): New declaration.
43284         * m4/mbsncasecmp.m4: New file.
43285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43286         GNULIB_MBSNCASECMP.
43287         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43288         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43289
43290 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43291
43292         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43293         Verify that it doesn't overlap with our flags.
43294         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43295         do not have the desired effect in multibyte locales; instead, use
43296         mbscasecmp.
43297         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43298         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43299         we don't require GNU fnmatch ourselves (if our users require it, they
43300         should do so explicitly).
43301
43302         Fix regex code so it doesn't rely on strcasecmp.
43303         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43304         Otherwise, include gnulib's langinfo.h.
43305         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43306         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43307         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43308         * modules/regex (FILES): Remove m4/codeset.m4.
43309         (Depends-on): Add localcharset.  Remove strcase.
43310
43311 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43312
43313         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43314         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43315
43316 2007-02-13  Bruno Haible  <bruno@clisp.org>
43317
43318         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43320
43321 2007-02-12  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43324         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43325         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43326         time warning rather than a link error.
43327
43328 2007-02-12  Bruno Haible  <bruno@clisp.org>
43329
43330         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43333
43334 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43335
43336         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43337         args, not 2.
43338
43339 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43340
43341         New module 'time', so that apps can include <time.h> as per
43342         POSIX and GNU instead of separate include files like time_r.h
43343         and timegm.h.  This implementation tries out a simpler approach
43344         for replacing decls in standard include files (as compared to
43345         the string module), somewhat as an experiment.
43346
43347         * config/srclist.txt: Comment out mktime.c for now.
43348         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43349         since it doesn't apply any more.  Use generic wording instead.
43350         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43351         'time'.
43352         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43353         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43354         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43355         Don't include <sys/types.h>; no longer needed since we assume C89.
43356         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43357         * lib/strftime.c: Likewise.
43358         * lib/time_r.c: Likewise.
43359         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43360         * lib/nanosleep.c: Include <time.h> first, to check interface.
43361         * lib/strptime.c: Likewise.
43362         * lib/time_r.c: Likewise.
43363         * lib/timegm.c: Likewise.
43364         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43365         needed.
43366         * lib/timegm.c: Don't include timegm.h; no longer needed.
43367         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43368         time.h now handles any problems in that area.
43369         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43370         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43371         that time.h defines struct timespec.
43372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43373         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43374         handles that.
43375         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43376         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43377         needed.  Set REPLACE_LOCALTIME.
43378         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43379         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43380         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43381         nanosleep; time_h.m4 now does that.  Don't require
43382         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43383         module handles this now.
43384         * modules/getdate (Depends-on): Remove timespec.  Add time.
43385         * modules/nanosleep (Depends-on): Likewise.
43386         * modules/stat-time (Depends-on): Likewise.
43387         * modules/nanosleep (Include): Include time.h, not timespec.h.
43388         * modules/strptime (Files): Remove lib/strptime.h.
43389         (Depends-on): Add extensions, time.
43390         (Include): Include time.h, not strptime.h.
43391         * modules/time_r (Files): Remove lib/time_r.h.
43392         (Depends-on): Add time.
43393         (Include): Include time.h, not time_r.h.
43394         * modules/timegm: Likewise.
43395         * modules/timespec (Description): Now does timespec-related decls
43396         of our own, instead of struct timespec itself.
43397         (Depends-on): Add time; remove extensions.
43398         (Maintainer): Add self.
43399         * modules/utimecmp (Depends-on): Add time; remove timespec.
43400         * modules/utimens (Depends-on): Likewise.
43401         * modules/xnanosleep (Depends-on): Likewise.
43402
43403 2007-02-11  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/c-strstr.c: Include allocsa.h.
43406         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43407         * lib/c-strcasestr.c: Include allocsa.h.
43408         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43409         * lib/strcasestr.c: Include allocsa.h.
43410         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43411         * lib/mbsstr.c: Include allocsa.h.
43412         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43413         allocsa/freesa instead of malloc/free.
43414         * lib/mbscasestr.c: Include allocsa.h.
43415         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43416         allocsa/freesa instead of malloc/free.
43417         * modules/c-strstr (Depends-on): Add allocsa.
43418         * modules/c-strcasestr (Depends-on): Likewise.
43419         * modules/strcasestr (Depends-on): Likewise.
43420         * modules/mbsstr (Depends-on): Likewise.
43421         * modules/mbscasestr (Depends-on): Likewise.
43422
43423 2007-02-11  Bruno Haible  <bruno@clisp.org>
43424
43425         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43426
43427         * modules/mbsspn-tests: New file.
43428         * tests/test-mbsspn.sh: New file.
43429         * tests/test-mbsspn.c: New file.
43430
43431 2007-02-11  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43434
43435         * modules/mbspbrk-tests: New file.
43436         * tests/test-mbspbrk.sh: New file.
43437         * tests/test-mbspbrk.c: New file.
43438
43439 2007-02-11  Bruno Haible  <bruno@clisp.org>
43440
43441         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43442         unneeded cast.
43443
43444         * modules/mbscspn-tests: New file.
43445         * tests/test-mbscspn.sh: New file.
43446         * tests/test-mbscspn.c: New file.
43447
43448 2007-02-11  Bruno Haible  <bruno@clisp.org>
43449
43450         * modules/mbscasecmp-tests: New file.
43451         * tests/test-mbscasecmp.sh: New file.
43452         * tests/test-mbscasecmp.c: New file.
43453
43454 2007-02-11  Bruno Haible  <bruno@clisp.org>
43455
43456         Ensure O(n) worst-case complexity of mbscasestr.
43457         * lib/mbscasestr.c: Include stdbool.h.
43458         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43459         functions.
43460         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43461         the bookkeeping indicates that it's worth it.
43462         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43463
43464         * modules/mbscasestr-tests: New file.
43465         * tests/test-mbscasestr1.c: New file.
43466         * tests/test-mbscasestr2.sh: New file.
43467         * tests/test-mbscasestr2.c: New file.
43468         * tests/test-mbscasestr3.sh: New file.
43469         * tests/test-mbscasestr3.c: New file.
43470         * tests/test-mbscasestr4.sh: New file.
43471         * tests/test-mbscasestr4.c: New file.
43472         * m4/locale-tr.m4: New file.
43473
43474 2007-02-11  Bruno Haible  <bruno@clisp.org>
43475
43476         Ensure O(n) worst-case complexity of mbsstr.
43477         * lib/mbsstr.c: Include stdbool.h.
43478         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43479         functions.
43480         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43481         bookkeeping indicates that it's worth it.
43482         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43483
43484         * modules/mbsstr-tests: New file.
43485         * tests/test-mbsstr1.c: New file.
43486         * tests/test-mbsstr2.sh: New file.
43487         * tests/test-mbsstr2.c: New file.
43488         * tests/test-mbsstr3.sh: New file.
43489         * tests/test-mbsstr3.c: New file.
43490         * m4/locale-fr.m4: New file.
43491
43492 2007-02-11  Bruno Haible  <bruno@clisp.org>
43493
43494         * lib/mbsrchr.c (mbsrchr): Fix bug.
43495
43496         * modules/mbsrchr-tests: New file.
43497         * tests/test-mbsrchr.sh: New file.
43498         * tests/test-mbsrchr.c: New file.
43499
43500 2007-02-11  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/mbschr.c (mbschr): Fix bug.
43503
43504         * modules/mbschr-tests: New file.
43505         * tests/test-mbschr.sh: New file.
43506         * tests/test-mbschr.c: New file.
43507         * m4/locale-zh.m4: New file.
43508
43509 2007-02-11  Bruno Haible  <bruno@clisp.org>
43510
43511         Support for copying multibyte string iterators.
43512         * lib/mbiter.h: Include <string.h>.
43513         (mbiter_multi_copy): New function.
43514         (mbi_copy): New macro.
43515         * lib/mbuiter.h: Include <string.h>.
43516         (mbuiter_multi_copy): New function.
43517         (mbui_copy): New macro.
43518
43519 2007-02-11  Bruno Haible  <bruno@clisp.org>
43520
43521         New module mbslen.
43522         * modules/mbslen: New file.
43523         * lib/mbslen.c: New file.
43524         * lib/string_.h (mbslen): New declaration.
43525         * m4/mbslen.m4: New file.
43526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43527         GNULIB_MBSLEN.
43528         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43529         * MODULES.html.sh (Internationalization functions): Add mbslen.
43530
43531 2007-02-11  Bruno Haible  <bruno@clisp.org>
43532
43533         Ensure O(n) worst-case complexity of strcasestr substitute.
43534         * lib/strcasestr.c: Include stdbool.h.
43535         (knuth_morris_pratt): New function.
43536         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43537         bookkeeping indicates that it's worth it.
43538         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43539
43540         * modules/strcasestr-tests: New file.
43541         * tests/test-strcasestr.c: New file.
43542
43543 2007-02-11  Bruno Haible  <bruno@clisp.org>
43544
43545         Ensure O(n) worst-case complexity of c_strcasestr.
43546         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43547         (knuth_morris_pratt): New function.
43548         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43549         the bookkeeping indicates that it's worth it.
43550         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43551
43552         * modules/c-strcasestr-tests: New file.
43553         * tests/test-c-strcasestr.c: New file.
43554
43555 2007-02-11  Bruno Haible  <bruno@clisp.org>
43556
43557         Ensure O(n) worst-case complexity of c_strstr.
43558         * lib/c-strstr.c: Include stdbool.h, string.h.
43559         (knuth_morris_pratt): New function.
43560         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43561         bookkeeping indicates that it's worth it.
43562         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43563
43564         * lib/c-strstr.c: Complete rewrite for maintainability.
43565
43566         * modules/c-strstr-tests: New file.
43567         * tests/test-c-strstr.c: New file.
43568
43569 2007-02-11  Bruno Haible  <bruno@clisp.org>
43570
43571         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43572         5.2.1 and earlier, whereby \055 was treated just like the range
43573         delimiter '-'.
43574         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43575
43576 2007-02-08  Bruno Haible  <bruno@clisp.org>
43577
43578         * modules/regex (Depends-on): Add stdbool.
43579         Reported by Dalibor Topic <robilad@kaffe.org>.
43580
43581 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43584         Prefer returning from main to exiting from it.
43585         Remove unnecessary parens after sizeof.
43586
43587 2007-02-05  Bruno Haible  <bruno@clisp.org>
43588
43589         New module mbssep.
43590         * modules/mbssep: New file.
43591         * lib/mbssep.c: New file.
43592         * lib/string_.h (strsep): Add a conditional link warning.
43593         (mbssep): New declaration.
43594         * m4/mbssep.m4: New file.
43595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43596         GNULIB_MBSSEP.
43597         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43598         * MODULES.html.sh (Internationalization functions): Add mbssep.
43599
43600 2007-02-05  Bruno Haible  <bruno@clisp.org>
43601
43602         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43603         Optimize search in case of 1 delimiter.
43604
43605 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43606
43607         * lib/acl.h: Include sys/types.h before sys/acl.h.
43608
43609 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43610
43611         Merge upstream fix for glibc bugzilla #3957:
43612
43613         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43614
43615         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43616         bit for RE_HAT_LISTS_NOT_NEWLINE.
43617         (build_charclass_op): Remove bogus comment.
43618
43619 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43620
43621         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43622
43623 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43624
43625         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43626         * lib/memmem.c [!defined _LIBC]: Include config.h.
43627
43628 2007-02-04  Bruno Haible  <bruno@clisp.org>
43629
43630         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43631         warning message.
43632
43633 2007-02-04  Bruno Haible  <bruno@clisp.org>
43634
43635         New module mbstok_r.
43636         * modules/mbstok_r: New file.
43637         * lib/mbstok_r.c: New file.
43638         * lib/string_.h (strtok_r): Change argument names to match the
43639         comments. Add a conditional link warning.
43640         (mbstok_r): New declaration.
43641         * m4/mbstok_r.m4: New file.
43642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43643         GNULIB_MBSTOK_R.
43644         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43645         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43646
43647 2007-02-04  Bruno Haible  <bruno@clisp.org>
43648
43649         New module mbsspn.
43650         * modules/mbsspn: New file.
43651         * lib/mbsspn.c: New file.
43652         * lib/string_.h (strspn): Add a conditional link warning.
43653         (mbsspn): New declaration.
43654         * m4/mbsspn.m4: New file.
43655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43656         GNULIB_MBSSPN.
43657         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43658         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43659
43660 2007-02-04  Bruno Haible  <bruno@clisp.org>
43661
43662         New module mbspbrk.
43663         * modules/mbspbrk: New file.
43664         * lib/mbspbrk.c: New file.
43665         * lib/string_.h (strpbrk): Add a conditional link warning.
43666         (mbspbrk): New declaration.
43667         * m4/mbspbrk.m4: New file.
43668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43669         GNULIB_MBSPBRK.
43670         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43671         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43672
43673 2007-02-04  Bruno Haible  <bruno@clisp.org>
43674
43675         New module mbscspn.
43676         * modules/mbscspn: New file.
43677         * lib/mbscspn.c: New file.
43678         * lib/string_.h (strcspn): Add a conditional link warning.
43679         (mbscspn): New declaration.
43680         * m4/mbscspn.m4: New file.
43681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43682         GNULIB_MBSCSPN.
43683         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43684         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43685
43686 2007-02-04  Bruno Haible  <bruno@clisp.org>
43687
43688         New module mbscasestr, reduced goal of strcasestr.
43689         * modules/mbscasestr: New file.
43690         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43691         (mbscasestr): Renamed from strcasestr.
43692         * lib/strcasestr.c: Don't include mbuiter.h.
43693         (strcasestr): Remove support for multibyte locales.
43694         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43695         Change the conditional link warning.
43696         (mbscasestr): New declaration.
43697         * m4/mbscasestr.m4: New file.
43698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43699         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43700         REPLACE_STRCASESTR.
43701         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43703         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43704         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43705         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43706         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43707         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43708         (Depends-on): Remove mbuiter.
43709         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43710
43711 2007-02-04  Bruno Haible  <bruno@clisp.org>
43712
43713         Simplify handling of strncasecmp.
43714         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43715         the conditional link warning.
43716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43717         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43719         * modules/strcase (configure.ac): Don't invoke
43720         gl_STRING_MODULE_INDICATOR.
43721         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43722
43723 2007-02-04  Bruno Haible  <bruno@clisp.org>
43724
43725         New module mbscasecmp, reduced goal of strcasecmp.
43726         * modules/mbscasecmp: New file.
43727         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43728         (mbscasecmp): Renamed from strcasecmp.
43729         * lib/strcasecmp.c: Don't include mbuiter.h.
43730         (strcasecmp): Remove support for multibyte locales.
43731         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43732         Change the conditional link warning.
43733         (mbscasecmp): New declaration.
43734         * m4/mbscasecmp.m4: New file.
43735         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43736         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43737         REPLACE_STRCASECMP.
43738         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43739         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43740         GNULIB_MBSCASECMP.
43741         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43742         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43743         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43744         (Depends-on): Remove mbuiter.
43745         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43746
43747 2007-02-04  Bruno Haible  <bruno@clisp.org>
43748
43749         New module mbsstr. Remove module strstr.
43750         * modules/mbsstr: New file.
43751         * modules/strstr: Remove file.
43752         * lib/mbsstr.c: Renamed from lib/strstr.c.
43753         (mbsstr): Renamed from strstr.
43754         * lib/string_.h (strstr): Remove declaration. Change the conditional
43755         link warning.
43756         (mbsstr): New declaration.
43757         * m4/mbsstr.m4: New file.
43758         * m4/strstr.m4: Remove file.
43759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43760         REPLACE_STRSTR.
43761         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43762         Don't initialize GNULIB_STRSTR.
43763         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43764         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43765         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43766         (Support for systems lacking ANSI C 89): Remove strstr.
43767
43768 2007-02-04  Bruno Haible  <bruno@clisp.org>
43769
43770         New module mbsrchr.
43771         * modules/mbsrchr: New file.
43772         * lib/mbsrchr.c: New file.
43773         * lib/string_.h (strrchr): Add a conditional link warning.
43774         (mbsrchr): New declaration.
43775         * m4/mbsrchr.m4: New file.
43776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43777         GNULIB_MBSRCHR.
43778         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43779         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43780
43781 2007-02-04  Bruno Haible  <bruno@clisp.org>
43782
43783         New module mbschr.
43784         * modules/mbschr: New file.
43785         * lib/mbschr.c: New file.
43786         * lib/string_.h (strchr): Add a conditional link warning.
43787         (mbschr): New declaration.
43788         * m4/mbschr.m4: New file.
43789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43790         GNULIB_MBSCHR.
43791         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43792         * MODULES.html.sh (Internationalization functions): Add mbschr.
43793
43794 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43795
43796         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43797
43798         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43799
43800 2007-02-04  Bruno Haible  <bruno@clisp.org>
43801
43802         New module description section 'configure.ac-early'.
43803         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43804         (func_get_autoconf_early_snippet): New function.
43805         (func_import, func_create_testdir): Use it. Remove special cases for
43806         modules 'extensions' and 'lock'.
43807         * modules/extensions (configure.ac-early): Require
43808         gl_USE_SYSTEM_EXTENSIONS.
43809         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43810
43811 2007-02-04  Bruno Haible  <bruno@clisp.org>
43812
43813         Make use of gcj-4.3's -fsource and -ftarget option.
43814         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43815         and if so try the options -fsource and -ftarget.
43816         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43817         source_version, ftarget_option, target_version arguments.
43818         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43819         (is_envjavac_oldgcj_14_14_usable): Renamed from
43820         is_envjavac_gcj_14_14_usable.
43821         (is_envjavac_oldgcj_14_13_usable): Renamed from
43822         is_envjavac_gcj_14_13_usable.
43823         (is_gcj_present): Update.
43824         (is_gcj_43, is_gcj43_usable): New functions.
43825         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43826         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43827         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43828         try the options -fsource and -ftarget.
43829
43830 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43831
43832         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43833         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43834         larger value.
43835
43836 2007-02-03  Jim Meyering  <jim@meyering.net>
43837
43838         Give tools a better chance to allocate space for very large buffers.
43839         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43840
43841         Make pwd and readlink work also when run with an unreadable parent dir
43842         on systems with openat support.
43843         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43844         provided getcwd function, even when we have openat support.
43845         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43846
43847 2007-02-02  Bruno Haible  <bruno@clisp.org>
43848
43849         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43850         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43851         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43852         portability problems if one of these functions is only used on specific
43853         platforms.
43854         Reported by Paul Eggert.
43855
43856 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43857
43858         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43859         is causing more trouble than it's curing.
43860         * lib/regex_internal.h (__mempcpy): Remove.
43861         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43862         (and make the code a tad smaller to boot).
43863         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43864
43865 2007-02-02  Jim Meyering  <jim@meyering.net>
43866
43867         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43868         section, not in the Makefile.am: one.
43869
43870 2007-02-02  Eric Blake  <ebb9@byu.net>
43871
43872         * lib/strchrnul.c: Always include config.h first.
43873
43874         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43875         gnulib strstr is not necessary here.
43876
43877 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43878
43879         * m4/socklen.m4: Fix typo.
43880
43881 2007-02-02  Eric Blake  <ebb9@byu.net>
43882
43883         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43884         * modules/netinet_in (Makefile.am): Likewise.
43885
43886 2007-02-01  Bruno Haible  <bruno@clisp.org>
43887
43888         * lib/string_.h (GL_LINK_WARNING): New macro.
43889         (strcasecmp, strstr, strcasestr): If provided by the system,
43890         conditionally define as a macro that leads to a warning instead of to
43891         an error.
43892         (strncasecmp): Conditionally define as a macro that leads to a warning.
43893
43894 2007-02-01  Karl Berry  <karl@gnu.org>
43895
43896         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43897
43898 2007-02-01  Bruno Haible  <bruno@clisp.org>
43899
43900         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43901         renamings.
43902
43903 2007-02-01  Eric Blake  <ebb9@byu.net>
43904
43905         * modules/regex (Depends-on): Revert dependence on mempcpy.
43906         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43907         module's definition of mempcpy.
43908         Reported by Paul Eggert.
43909
43910 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43911
43912         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43913         the symbol XYZ before redefining it.  This fixes a problem with
43914         programs that don't use XYZ, when compiled on systems that define
43915         XYZ to something else.
43916
43917 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43918
43919         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43920         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43921         writeable to group or other and (2) is intended to have a special
43922         mode bit that is set or cleared.  In such a case, the directory
43923         should be neither group- nor other-writeable until the special
43924         mode bits are right.
43925
43926 2007-01-31  Eric Blake  <ebb9@byu.net>
43927
43928         * modules/mountlist (Depends-on): Add strstr.
43929
43930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43931         bug.
43932         * modules/string (Makefile.am): Remove redundant replacement.
43933         * modules/regex (Depends-on): Add mempcpy.
43934
43935 2007-01-31  Bruno Haible  <bruno@clisp.org>
43936
43937         New module description field 'Link'.
43938         * gnulib-tool (func_usage): Document --extract-link-directive.
43939         (sed_extract_prog): Recognize 'Link' directive.
43940         (func_get_link_directive): New function.
43941         (func_import): Show summary of link directives.
43942         Handle --extract-link-directive option.
43943         * modules/acl (Link): New section.
43944         * modules/clock-time (Link): New section.
43945         * modules/euidaccess (Link): New section.
43946         * modules/gettext (Link): New section.
43947         * modules/iconv (Link): New section.
43948         * modules/lock (Link): New section.
43949         * modules/nanosleep (Link): New section.
43950         * modules/readline (Link): New section.
43951
43952 2007-01-27  Bruno Haible  <bruno@clisp.org>
43953
43954         Enforce the use of gnulib modules for unportable <string.h> functions.
43955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43956         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43957         (gl_HEADER_STRING_H_BODY): Require it.
43958         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43959         the symbol XYZ to one that gives a link error.
43960         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43961         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43962         * modules/mempcpy (configure.ac): Likewise.
43963         * modules/memrchr (configure.ac): Likewise.
43964         * modules/stpcpy (configure.ac): Likewise.
43965         * modules/stpncpy (configure.ac): Likewise.
43966         * modules/strcase (configure.ac): Likewise.
43967         * modules/strcasestr (configure.ac): Likewise.
43968         * modules/strchrnul (configure.ac): Likewise.
43969         * modules/strdup (configure.ac): Likewise.
43970         * modules/strndup (configure.ac): Likewise.
43971         * modules/strnlen (configure.ac): Likewise.
43972         * modules/strpbrk (configure.ac): Likewise.
43973         * modules/strsep (configure.ac): Likewise.
43974         * modules/strstr (configure.ac): Likewise.
43975         * modules/strtok_r (configure.ac): Likewise.
43976
43977 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43978
43979         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43980
43981 2007-01-30  Jim Meyering  <jim@meyering.net>
43982
43983         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43984
43985 2007-01-29  Bruno Haible  <bruno@clisp.org>
43986
43987         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43988         * lib/execute.c: Likewise.
43989         * lib/pipe.c: Likewise.
43990         * lib/printf-args.h: Likewise.
43991         * lib/printf-args.c: Likewise.
43992         * lib/printf-parse.c: Likewise.
43993         * lib/vasnprintf.c: Likewise.
43994
43995 2007-01-29  Eric Blake  <ebb9@byu.net>
43996
43997         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43998         declaration.
43999
44000 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44001
44002         * lib/strptime.h (strptime): Use 'restrict' for args where
44003         POSIX requires this.
44004         * lib/strptime.c (strptime): Likewise.
44005         Change license notice from LGPL to GPL, since gnulib-tool will
44006         change this as needed.
44007         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44008         defined.
44009         Include "strptime.h" first, to check interface.
44010         Do not #undef _LIBC and _NL_CURRENT.
44011         Do not include <stdlib.h>; no longer needed.
44012         Include "time_r.h" and declare ptime_locale_status
44013         only if _LIBC is not defined.
44014         (__P): Remove unused macro.
44015         (match_string): Bring back glibc version, but use it only if _LIBC
44016         is defined.
44017         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44018         Remove unnecessary assertion and abort() call.
44019         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44020         * m4/strptime.m4: Fix serial number comment.
44021         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44022         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44023         (Depends-on): Add time_r.
44024
44025 2007-01-29  Bruno Haible  <bruno@clisp.org>
44026
44027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44028         strptime.
44029         * modules/strptime (Depends-on): Add stdbool.
44030         * lib/strptime.h: Include <time.h> always. Add comments.
44031
44032 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44033
44034         * modules/strptime: New file.
44035         * lib/strptime.h: New file.
44036         * lib/strptime.c: New file.
44037         * m4/strptime.m4: New file.
44038
44039 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         * MODULES.html.sh: New module mpsort.
44042         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44043
44044         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44045         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44047         All uses changed.
44048         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44049         All uses changed.
44050         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44051         to _Restrict_.
44052         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44053         the parameter matches the prototype.
44054
44055 2007-01-28  Jim Meyering  <jim@meyering.net>
44056
44057         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44058         sys/time.h here, reverting that part of the previous patch:
44059         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44060
44061 2007-01-28  Bruno Haible  <bruno@clisp.org>
44062
44063         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44064         value of $(SYS_TIME_H).
44065         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44066         remove it conditionally, too. [added by Jim Meyering]
44067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44069         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44070         GETTIMEOFDAY_REPLACEMENT to 1.
44071
44072 2007-01-28  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44075         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44077         Set UNISTD_H instead of UNISTD_H2.
44078         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44079
44080 2007-01-28  Bruno Haible  <bruno@clisp.org>
44081
44082         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44083         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44084
44085 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44086
44087         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44088         (func_create_testdir): Ensure C locale for `grep' and `tr'
44089         character ranges.
44090         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44091         ACLOCAL_AMFLAGS parsing state machine.
44092
44093 2007-01-27  Bruno Haible  <bruno@clisp.org>
44094
44095         * modules/unistr/base: Update.
44096
44097 2007-01-27  Bruno Haible  <bruno@clisp.org>
44098
44099         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44100         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44101         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44102         modules/unistr/u32-mbtouc.
44103         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44104         * lib/unistr.h: Update.
44105         * lib/linebreak.c: Update.
44106         * modules/unistr/u32-mbtouc: Renamed from
44107         modules/unistr/u32-mbtouc-safe.
44108         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44109         * lib/unistr.h: Update.
44110         * lib/unistr/u32-to-u8.c: Update.
44111         * lib/unistr/u32-to-u16.c: Update.
44112
44113 2007-01-27  Bruno Haible  <bruno@clisp.org>
44114
44115         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44116         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44117         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44118         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44119         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44120         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44121         modules/unistr/u16-mbtouc.
44122         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44123         * lib/unistr.h: Update.
44124         * lib/linebreak.c: Update.
44125         * modules/linebreak: Update.
44126         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44127         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44128         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44129         * modules/unistr/u16-mbtouc: Renamed from
44130         modules/unistr/u16-mbtouc-safe.
44131         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44132         * lib/unistr.h: Update.
44133         * lib/unistr/u16-to-u8.c: Update.
44134         * modules/unistr/u16-to-u8: Update.
44135         * lib/unistr/u16-to-u32.c: Update.
44136         * modules/unistr/u16-to-u32: Update.
44137
44138 2007-01-27  Bruno Haible  <bruno@clisp.org>
44139
44140         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44141         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44142         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44143         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44144         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44145         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44146         modules/unistr/u8-mbtouc.
44147         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44148         * lib/unistr.h: Update.
44149         * lib/striconveh.c: Update.
44150         * modules/striconveh: Update.
44151         * lib/linebreak.c: Update.
44152         * modules/linebreak: Update.
44153         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44154         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44155         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44156         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44157         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44158         * lib/unistr.h: Update.
44159         * lib/striconveh.c: Update.
44160         * modules/striconveh: Update.
44161         * lib/unistr/u8-to-u16.c: Update.
44162         * modules/unistr/u8-to-u16: Update.
44163         * lib/unistr/u8-to-u32.c: Update.
44164         * modules/unistr/u8-to-u32: Update.
44165
44166 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44167
44168         Sync from Libtool.
44169         * lib/argz.c: Do not include strings.h nor memory.h, include
44170         string.h unconditionally.  Patch by Simon Josefsson.
44171
44172 2007-01-27  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44175         from gl_HEADER_STRING_H_BODY.
44176         (gl_HEADER_STRING_H_BODY): Require it.
44177         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44178         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44179         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44180         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44182         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44185         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44187         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44188         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44189         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44190         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44192
44193 2007-01-27  Bruno Haible  <bruno@clisp.org>
44194
44195         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44196         check_PROGRAMS into noinst_PROGRAMS.
44197         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44198         check_PROGRAMS in this case.
44199         (func_import): Set for_test to false.
44200         (func_create_testdir): Set for_test to true.
44201
44202 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44203             Bruno Haible  <bruno@clisp.org>
44204
44205         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44206         (Depends-on): Add string.
44207         (Includes): Use <string.h> instead of strcasestr.h.
44208         * modules/string (Makefile.am): Also substitute the value of
44209         REPLACE_STRCASESTR.
44210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44211         assume strcasestr is declared in <string.h> not <strings.h>. Also
44212         set REPLACE_STRCASESTR.
44213         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44214         REPLACE_STRCASESTR.
44215         * lib/strcasestr.h: Remove file.
44216         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44217         * lib/string_.h (strcasestr): New declaration.
44218
44219 2007-01-27  Bruno Haible  <bruno@clisp.org>
44220
44221         * lib/string_.h: Use 'extern'.
44222
44223 2007-01-27  Jim Meyering  <jim@meyering.net>
44224
44225         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44226         of set-but-not-used local, "q".
44227
44228         * lib/mempcpy.c: Include <config.h> before <string.h>.
44229         This fixes a compilation error on HP-UX, due to the system's
44230         "restrict"-using mempcpy prototype.
44231
44232 2007-01-26  Bruno Haible  <bruno@clisp.org>
44233
44234         Small optimization.
44235         * lib/javacomp.c: Include c-strstr.h.
44236          (is_envjavac_gcj): Use c_strstr instead of strstr.
44237         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44238
44239 2007-01-26  Bruno Haible  <bruno@clisp.org>
44240
44241         * MODULES.html.sh (Unicode string functions): Add the new modules.
44242
44243         * modules/uniconv/u32-strconv-to-locale: New file.
44244         * lib/uniconv/u32-strconv-to-locale.c: New file.
44245
44246         * modules/uniconv/u16-strconv-to-locale: New file.
44247         * lib/uniconv/u16-strconv-to-locale.c: New file.
44248
44249         * modules/uniconv/u8-strconv-to-locale: New file.
44250         * lib/uniconv/u8-strconv-to-locale.c: New file.
44251
44252         * modules/uniconv/u32-strconv-from-locale: New file.
44253         * lib/uniconv/u32-strconv-from-locale.c: New file.
44254
44255         * modules/uniconv/u16-strconv-from-locale: New file.
44256         * lib/uniconv/u16-strconv-from-locale.c: New file.
44257
44258         * modules/uniconv/u8-strconv-from-locale: New file.
44259         * lib/uniconv/u8-strconv-from-locale.c: New file.
44260
44261         * modules/uniconv/u32-strconv-to-enc: New file.
44262         * lib/uniconv/u32-strconv-to-enc.c: New file.
44263         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44264         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44265
44266         * modules/uniconv/u16-strconv-to-enc: New file.
44267         * lib/uniconv/u16-strconv-to-enc.c: New file.
44268         * lib/uniconv/u-strconv-to-enc.h: New file.
44269         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44270         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44271
44272         * modules/uniconv/u8-strconv-to-enc: New file.
44273         * lib/uniconv/u8-strconv-to-enc.c: New file.
44274         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44275         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44276
44277         * modules/uniconv/u32-strconv-from-enc: New file.
44278         * lib/uniconv/u32-strconv-from-enc.c: New file.
44279         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44280         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44281
44282         * modules/uniconv/u16-strconv-from-enc: New file.
44283         * lib/uniconv/u16-strconv-from-enc.c: New file.
44284         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44285         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44286
44287         * modules/uniconv/u8-strconv-from-enc: New file.
44288         * lib/uniconv/u8-strconv-from-enc.c: New file.
44289         * lib/uniconv/u-strconv-from-enc.h: New file.
44290         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44291         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44292
44293         * modules/uniconv/u32-conv-from-enc: New file.
44294         * lib/uniconv/u32-conv-from-enc.c: New file.
44295         * modules/uniconv/u32-conv-from-enc-tests: New file.
44296         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44297
44298         * modules/uniconv/u16-conv-from-enc: New file.
44299         * lib/uniconv/u16-conv-from-enc.c: New file.
44300         * lib/uniconv/u-conv-from-enc.h: New file.
44301         * modules/uniconv/u16-conv-from-enc-tests: New file.
44302         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44303
44304         * modules/uniconv/u8-conv-from-enc: New file.
44305         * lib/uniconv/u8-conv-from-enc.c: New file.
44306         * modules/uniconv/u8-conv-from-enc-tests: New file.
44307         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44308
44309         * modules/uniconv/base: New file.
44310         * lib/uniconv.h: New file.
44311
44312 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44313
44314         * doc/gnulib-tool.texi (Initial import): Update to match current
44315         behavior with strdup module.
44316         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44317         * lib/memmem.h: Remove; all uses removed.  This is now done
44318         by <string.h>.
44319         * lib/mempcpy.h: Likewise.
44320         * lib/memrchr.h: Likewise.
44321         * lib/stpcpy.h: Likewise.
44322         * lib/stpncpy.h: Likewise.
44323         * lib/strcase.h: Likewise.
44324         * lib/strchrnul.h: Likewise.
44325         * lib/strdup.h: Likewise.
44326         * lib/strndup.h: Likewise.
44327         * lib/strnlen.h: Likewise.
44328         * lib/strpbrk.h: Likewise.
44329         * lib/strsep.h: Likewise.
44330         * lib/strstr.h: Likewise.
44331         * lib/strtok_r.h: Likewise.
44332         * lib/string_.h: New file.
44333         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44334         Rely on <string.h> instead.
44335         * lib/canon-host.c: Likewise.
44336         * lib/chdir-long.c: Likewise.
44337         * lib/concatpath.c: Likewise.
44338         * lib/exclude.c: Likewise.
44339         * lib/fchdir.c: Likewise.
44340         * lib/getaddrinfo.c: Likewise.
44341         * lib/getcwd.c: Likewise.
44342         * lib/getsubopt.c: Likewise.
44343         * lib/glob.c: Likewise.
44344         * lib/hard-locale.c: Likewise.
44345         * lib/iconvme.c: Likewise.
44346         * lib/javacomp.c: Likewise.
44347         * lib/mempcpy.c: Likewise.
44348         * lib/memrchr.c: Likewise.
44349         * lib/regex_internal.h: Likewise.
44350         * lib/stpncpy.c: Likewise.
44351         * lib/strcasecmp.c: Likewise.
44352         * lib/strchrnul.c: Likewise.
44353         * lib/strdup.c: Likewise.
44354         * lib/striconv.c: Likewise.
44355         * lib/striconveh.c: Likewise.
44356         * lib/striconveha.c: Likewise.
44357         * lib/strncasecmp.c: Likewise.
44358         * lib/strndup.c: Likewise.
44359         * lib/strnlen.c: Likewise.
44360         * lib/strsep.c: Likewise.
44361         * lib/strstr.c: Likewise.
44362         * lib/strtok_r.c: Likewise.
44363         * lib/userspec.c: Likewise.
44364         * lib/w32spawn.h: Likewise.
44365         * lib/xstrndup.c: Likewise.
44366         * lib/mountlist.c (strstr): Remove decl.
44367         * m4/string_h.m4: New file.
44368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44369         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44371         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44372         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44373         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44374         Set REPLACE_STRCASECMP if necessary.
44375         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44376         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44377         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44379         HAVE_DECL_STRDUP if necessary.
44380         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44381         since gl_FUNC_STRNDUP does that now.
44382         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44383         Check for decl here...
44384         (gl_PREREQ_STRNLEN): ... not here.
44385         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44386         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44387         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44388         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44389         necessary.
44390         * modules/string: New file.
44391         * modules/memmem (Files): Remove special-purpose include file.
44392         (Depends-on): Add string.
44393         (Include): Include <string.h>, not the removed file.
44394         * modules/mempcpy: Likewise.
44395         * modules/memrchr: Likewise.
44396         * modules/stpcpy: Likewise.
44397         * modules/stpncpy: Likewise.
44398         * modules/strcase: Likewise.
44399         * modules/strchrnul: Likewise.
44400         * modules/strdup: Likewise.
44401         * modules/strndup: Likewise.
44402         * modules/strnlen: Likewise.
44403         * modules/strpbrk: Likewise.
44404         * modules/strsep: Likewise.
44405         * modules/strstr: Likewise.
44406         * modules/strtok_r: Likewise.
44407         * tests/test-dirname.c: Don't include "strdup.h", since
44408         <string.h> now suffices.
44409         * tests/test-memmem.c: Don't include "memmem.h", since
44410         <string.h> now suffices.
44411
44412 2007-01-25  Bruno Haible  <bruno@clisp.org>
44413
44414         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44415         *resultp is 0.
44416
44417         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44418         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44419         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44420         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44421
44422         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44423         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44424         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44425         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44426         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44427         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44428
44429 2007-01-24  Bruno Haible  <bruno@clisp.org>
44430
44431         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44433         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44434         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44435         gl_FUNC_FTS_CORE.
44436         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44437         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44438         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44439         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44440         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44441         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44442         gl_FUNC_FCHOWNAT.
44443         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44444         gl_FUNC_STRFTIME.
44445         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44446         Reported by Ralf Wildenhues.
44447
44448 2007-01-24  Bruno Haible  <bruno@clisp.org>
44449
44450         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44451         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44452         gl_GETADDRINFO.
44453         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44454         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44455         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44456
44457 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44458
44459         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44460         Don't use 'exit'; just return from 'main'.
44461         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44462
44463         * lib/fnmatch_.h: Readjust white space and comments to match
44464         glibc, to avoid spurious diffs.
44465
44466 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44467
44468         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44469         2004-12-01 change by Jakub Jelinek, since this code won't compile
44470         if !LIBC.  Problem reported by Bob Proulx.
44471
44472 2007-01-23  Bruno Haible  <bruno@clisp.org>
44473
44474         * lib/striconveh.c: Include c-strcaseeq.h.
44475         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44476         * modules/striconveh (Depends-on): Add c-strcaseeq.
44477
44478 2007-01-23  Bruno Haible  <bruno@clisp.org>
44479
44480         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44481
44482         * modules/c-strcaseeq: New file.
44483         * lib/c-strcaseeq.h: New file.
44484
44485         * modules/streq: New file.
44486         * lib/streq.h: New file.
44487
44488 2007-01-23  Bruno Haible  <bruno@clisp.org>
44489
44490         * modules/striconveha-tests: New file.
44491         * tests/test-striconveha.c: New file.
44492
44493         * lib/striconveha.h: Include <stdbool.h>.
44494         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44495         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44496         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44497         (mem_iconveha): New function.
44498         (str_iconveha_notranslit): Renamed from str_iconveha.
44499         (str_iconveha): New function.
44500         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44501         c-strcase.
44502
44503 2007-01-23  Bruno Haible  <bruno@clisp.org>
44504
44505         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44506         encodings without forgiving before trying any encoding with handler.
44507         (str_iconveha): Try all encodings without forgiving before trying any
44508         encoding with handler.
44509
44510 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44511
44512         Import the following changes from libc.
44513
44514         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44515
44516         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44517
44518         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44519
44520         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44521         normal_bracket label.
44522
44523         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44524
44525         [BZ #361]
44526         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44527         to normal_bracket after fetching the next character.
44528
44529 2007-01-22  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44532         argument.
44533         * lib/striconveh.c (iconv_carefully_1): New function.
44534         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44535         argument.
44536         (str_cd_iconveh): Update.
44537         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44538         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44539         * tests/test-striconveh.c (MAGIC): New macro.
44540         (new_offsets): New function.
44541         (main): Test call with and without offsets.
44542
44543 2007-01-22  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44546         * modules/sys_select (Makefile.am): Likewise.
44547         * modules/sys_socket (Makefile.am): Likewise.
44548         * modules/sys_time (Makefile.am): Likewise.
44549
44550 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44551
44552         * modules/gettimeofday (License): Change from GPL to LGPL, since
44553         gettimeofday is a library function.
44554
44555 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44556
44557         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44558
44559 2007-01-21  Bruno Haible  <bruno@clisp.org>
44560
44561         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44562
44563 2007-01-21  Bruno Haible  <bruno@clisp.org>
44564
44565         * modules/striconveha: New file.
44566         * lib/striconveha.h: New file.
44567         * lib/striconveha.c: New file.
44568         * MODULES.html.sh (Internationalization functions): Add striconveha.
44569         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44570         string.
44571         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44572
44573 2007-01-21  Bruno Haible  <bruno@clisp.org>
44574
44575         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44576         * lib/striconveh.c (str_iconveh): Likewise.
44577
44578 2007-01-21  Bruno Haible  <bruno@clisp.org>
44579
44580         * lib/striconveh.h (mem_iconveh): New declaration.
44581         * lib/striconveh.c (mem_iconveh): New function.
44582         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44583
44584 2007-01-21  Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44587
44588         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44589         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44590         original result buffer.
44591         (str_cd_iconveh): Update.
44592         * tests/test-striconveh.c (main): Update.
44593
44594         * lib/striconv.h (mem_cd_iconv): Change specification.
44595         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44596         result buffer.
44597         (str_cd_iconv): Update.
44598         * tests/test-striconv.c (main): Update.
44599
44600 2007-01-21  Bruno Haible  <bruno@clisp.org>
44601
44602         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44603
44604 2007-01-20  Jim Meyering  <jim@meyering.net>
44605
44606         * lib/userspec.c (parse_with_separator): If a user or group string
44607         starts with "+", skip the corresponding name-to-ID look-up, since
44608         such a look-up must fail: user and group names may not include "+".
44609
44610 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44613         since we now assume the sys_time module.
44614         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44615         check for sys/time.h; no longer needed.
44616         * modules/poll (Depends-on): Depend on sys_time.
44617
44618 2007-01-18  Bruno Haible  <bruno@clisp.org>
44619
44620         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44621         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44622
44623         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44624         gettimeofday.
44625
44626         * tests/test-gettimeofday.c: Include <time.h>.
44627         (dummy): Remove variable.
44628
44629         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44630         gl_HEADER_SYS_TIME_H.
44631         (gl_HEADER_SYS_TIME_H): New macro.
44632
44633         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44634         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44636         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44637         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44639         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44640         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44641         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44642         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44643         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44644
44645         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44646         last change; it caused a compilation error when cross-compiling to
44647         Cygwin.
44648
44649 2007-01-18  Jim Meyering  <jim@meyering.net>
44650
44651         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44652         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44653         than the race-prone "test -d sys || mkdir sys".
44654         (configure.ac): Use AC_PROG_MKDIR_P.
44655         * modules/sys_select: Likewise.
44656         * modules/sys_socket: Likewise.
44657         * modules/sys_time: Likewise.
44658
44659 2007-01-18  Eric Blake  <ebb9@byu.net>
44660
44661         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44662         replace gettimeofday.
44663         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44664         name, to avoid infinite recursion.
44665
44666 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44667
44668         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44669         module sys_time.
44670         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44671         assume timespec.h defines struct timeval.
44672         * lib/settime.c: Likewise.
44673         * lib/utimens.c: Likewise.
44674         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44675         since we now assume the gettimeofday module.
44676         * lib/tempname.c (__gen_tempname): Likewise.
44677         * lib/gettimeofday.h: Remove.
44678         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44679         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44680         Include <time.h>, for 'time()'.
44681         (localtime_buffer_addr): Also use this workaround if
44682         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44683         to simplify the uses.  All uses changed.
44684         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44685         that #undef is inside {}, and 'const' follows type name consistently.
44686         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44687         (gettimeofday): Do not use the maximum possible value for
44688         tv->tv_usec, since that might break usages other than ls.c.
44689         Instead, we'll leave ls.c alone.  This undoes today's patch
44690         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44691         we've never observed the problem but might as well keep the
44692         canary.
44693         * lib/nanosleep.c: Include timespec.h first, for interface check.
44694         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44695         now assume the sys_time module.
44696         * lib/tempname.c: Likewise.
44697         * lib/timespec.h: Likewise.
44698         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44699         needed.
44700         * lib/strftime.c: Likewise.
44701         * lib/timespec.h: Likewise.
44702         * lib/posixtm.c: Include posixtm.h first, for interface check.
44703         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44704         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44705         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44706         * lib/sys_time_.h: New file.
44707         * lib/timespec.h (struct timespec): Use long int, not long.
44708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44709         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44710         Remove obsolescent call to AC_HEADER_TIME.
44711         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44713         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44714         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44715         Likewise.
44716         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44717         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44719         into the sys_time module.  Check for gettimeofday just once.
44720         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44721         for gettimeofday signature to just check the signature.  Merely
44722         compile it, since linking doesn't test signature.  Improve test for
44723         whether gettimeofday.o is actually needed.
44724         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44725         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44726         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44727         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44728         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44729         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44730         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44731         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44732         than worrying about sys/time.h.
44733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44734         Don't bother worrying about TIME_WITH_SYS_TIME.
44735         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44736         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44737         * m4/sys_time_h.m4: New file.
44738         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44739         Don't include sys/time.h.  Return from main rather than exiting.
44740         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44741         all uses changed.
44742         * modules/gethrxtime (Depends-on): Add sys_time.
44743         * modules/gettime (Depends-on): Likewise.
44744         * modules/gettimeofday (Depends-on): Likewise.
44745         * modules/nanosleep (Depends-on): Likewise.
44746         * modules/settime (Depends-on): Likewise.
44747         * modules/tempname (Depends-on): Likewise.
44748         * modules/utimens (Depends-on): Likewise.
44749         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44750         (Include:) Change back to <sys/time.h>.
44751         (Maintainer:) Add self.
44752         * modules/sys_time: New file.
44753         * modules/tempname (Depends-on): Add gettimeofday.
44754         * tests/test-gettimeofday.c: Include <sys/time.h>
44755         rather than gettimeofday.h.
44756
44757 2007-01-17  Bruno Haible  <bruno@clisp.org>
44758
44759         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44760         the license default to GPL.
44761         (func_create_testdir): Don't complain if a module is LGPL and its
44762         tests module depends on GPLed modules.
44763
44764 2007-01-17  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/gettimeofday.c (gettimeofday): Add code for the case
44767         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44768         maximum possible value for tv->tv_usec, rather than the minimum one.
44769
44770 2005-10-08  Martin Lambers  <marlam@marlam.de>
44771 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44772 2007-01-16  Bruno Haible  <bruno@clisp.org>
44773
44774         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44775         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44776         gl_FUNC_GETTIMEOFDAY.
44777         (Include): Add gettimeofday.h.
44778         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44779         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44780         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44781         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44782         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44783         * lib/gettimeofday.h: New file.
44784         * lib/gettimeofday.c: Include <sys/timeb.h>.
44785         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44786         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44787         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44788         fall back on time().
44789
44790         * tests/test-gettimeofday.c: New file.
44791         * modules/gettimeofday-tests: New file.
44792
44793 2007-01-16  Eric Blake  <ebb9@byu.net>
44794
44795         * modules/fnmatch (Depends-on): Depend on wchar.
44796         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44797         * m4/fnmatch.m4: Likewise.
44798         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44799         * m4/mbchar.m4: Likewise.
44800         * modules/mbswidth (Depends-on): Depend on wchar.
44801         * lib/mbswidth.c: Assume <wchar.h>.
44802         * m4/mbswidth.m4: Likewise.
44803         * modules/quotearg (Depends-on): Depend on wchar.
44804         * lib/quotearg.c: Assume <wchar.h>.
44805         * m4/quotearg.m4: Likewise.
44806         * modules/regex (Depends-on): Depend on wchar.
44807         * lib/regex_internal.h: Assume <wchar.h>.
44808         * m4/regex.m4: Likewise.
44809         * modules/stdint (Depends-on): Depend on wchar.
44810         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44811         * m4/stdint.m4: Likewise.
44812         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44813         * modules/strftime (Depends-on): Depend on wchar.
44814         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44815         * modules/strtol (Depends-on): Depend on wchar.
44816         * lib/strtol.c: Assume <wchar.h>.
44817         * modules/wcwidth (Depends-on): Depend on wchar.
44818         * lib/wcwidth.h: Assume <wchar.h>.
44819         * m4/wcwidth.m4: Likewise.
44820
44821 2007-01-16  Bruno Haible  <bruno@clisp.org>
44822
44823         * modules/csharpexec-script: New, created from...
44824         * modules/csharpexec: ... this.
44825
44826 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44827
44828         * modules/javaexec-script: New, created from...
44829         * modules/javaexec: ... this.
44830
44831 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44832
44833         * modules/poll (Dependencies): Add sys_select.
44834
44835 2007-01-15  Jim Meyering  <jim@meyering.net>
44836
44837         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44838         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44839         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44840         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44841
44842 2007-01-15  Bruno Haible  <bruno@clisp.org>
44843
44844         * modules/striconveh: New file.
44845         * lib/striconveh.h: New file.
44846         * lib/striconveh.c: New file.
44847         * MODULES.html.sh (Internationalization functions): Add striconveh.
44848
44849         * modules/striconveh-tests: New file.
44850         * tests/test-striconveh.c: New file.
44851
44852 2007-01-15  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44855         not from GNU libiconv or GNU libc.
44856
44857 2007-01-15  Bruno Haible  <bruno@clisp.org>
44858
44859         * doc/gnulib-intro.texi (Copyright): Explain the different license
44860         terms for module descriptions, autoconf macros, tests, documentation.
44861
44862 2007-01-14  Bruno Haible  <bruno@clisp.org>
44863
44864         * modules/striconv-tests: New file.
44865         * tests/test-striconv.c: New file.
44866
44867 2007-01-14  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/iconv-tests: New file.
44870         * tests/test-iconv.c: New file.
44871
44872 2007-01-14  Bruno Haible  <bruno@clisp.org>
44873
44874         * gnulib-tool (func_get_license): For test modules, use the license of
44875         the main module.
44876
44877 2007-01-14  Bruno Haible  <bruno@clisp.org>
44878
44879         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44880         if iconv is found to exist.
44881
44882 2007-01-14  Bruno Haible  <bruno@clisp.org>
44883
44884         * modules/c-ctype-tests: New file.
44885         * tests/test-c-ctype.c: New file.
44886
44887 2007-01-14  Bruno Haible  <bruno@clisp.org>
44888
44889         * modules/binary-io-tests: New file.
44890         * tests/test-binary-io.sh: New file.
44891         * tests/test-binary-io.c: New file.
44892
44893 2007-01-14  Bruno Haible  <bruno@clisp.org>
44894
44895         * modules/array-oset-tests: New file.
44896         * tests/test-array_oset.c: New file.
44897
44898 2007-01-14  Bruno Haible  <bruno@clisp.org>
44899
44900         * modules/array-list-tests: New file.
44901         * tests/test-array_list.c: New file.
44902
44903 2007-01-14  Bruno Haible  <bruno@clisp.org>
44904
44905         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44906         and make.
44907         Reported by Simon Josefsson in
44908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44909
44910 2007-01-14  Bruno Haible  <bruno@clisp.org>
44911
44912         * modules/allocsa-tests: New file.
44913         * tests/test-allocsa.c: New file.
44914
44915 2007-01-14  Bruno Haible  <bruno@clisp.org>
44916
44917         * modules/fchdir (Depends-on): Add absolute-header.
44918         * modules/unistd (Depends-on): Likewise.
44919
44920 2006-12-30  Bruno Haible  <bruno@clisp.org>
44921
44922         * modules/fchdir: New file.
44923         * modules/unistd (Files): Add lib/unistd_.h.
44924         (Makefile.am): Generate unistd.h from unistd_.h.
44925         * lib/fchdir.c: New file.
44926         * lib/dirent_.h: New file.
44927         * lib/unistd_.h: New file.
44928         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44929         * m4/fchdir.m4: New file.
44930         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44931         (gl_HEADER_UNISTD): Invoke it.
44932         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44933         function.
44934         * lib/backupfile.c (opendir, closedir): Undefine.
44935         * lib/chown.c (open, close): Undefine.
44936         * lib/clean-temp.c (open, close): Undefine.
44937         * lib/copy-file.c (open, close): Undefine.
44938         * lib/execute.c (open, close): Undefine.
44939         * lib/fsusage.c (open, close): Undefine.
44940         * lib/gc-gnulib.c (open, close): Undefine.
44941         * lib/getcwd.c (opendir, closedir): Undefine.
44942         * lib/glob.c (opendir, closedir): Undefine.
44943         * lib/javacomp.c (open, close): Undefine.
44944         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44945         * lib/openat-proc.c (open, close): Undefine.
44946         * lib/pagealign_alloc.c (open, close): Undefine.
44947         * lib/pipe.c (open, close): Undefine.
44948         * lib/progreloc.c (open, close): Undefine.
44949         * lib/savedir.c (opendir, closedir): Undefine.
44950         * lib/utime.c (open, close): Undefine.
44951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44952
44953 2007-01-10  Bruno Haible  <bruno@clisp.org>
44954
44955         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44956
44957 2007-01-12  Eric Blake  <ebb9@byu.net>
44958
44959         Provide a robust <wchar.h>.  Further simplifications are now
44960         possible in other modules, but not included here.
44961         * modules/wchar: New module.
44962         * m4/wchar.m4: New file.
44963         * lib/wchar_.h: Likewise.
44964         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44965         of the new module.
44966         * MODULES.html.sh (Extended multibyte and wide character utilities):
44967         New section.
44968
44969 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44970
44971         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44972         to a reasonable default for memory allocation.
44973         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44974         file system that reports garbage st_size values for symlinks.
44975         Problem reported by Liyang Hu.
44976
44977 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44978
44979         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44980         Emacs .#* auto-save files).
44981
44982 2007-01-11  Bruno Haible  <bruno@clisp.org>
44983
44984         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44985         directory.
44986
44987 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44988
44989         Use @...@ consistently in lib/wctype_.h.
44990         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44991         on it being set to 1 or 0.
44992         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44993         go back to AC_SUBSTing it.
44994         * modules/wctype (Makefile.am): Undo previous change.
44995
44996 2007-01-10  Eric Blake  <ebb9@byu.net>
44997
44998         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44999         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45000         * modules/wctype (Makefile.am): Likewise.
45001         Reported by Chris McGuire.
45002
45003 2007-01-10  Jim Meyering  <jim@meyering.net>
45004
45005         fts.c: a small readability/maintainability improvement
45006         * lib/fts.c (fts_read): Make this code slightly more readable and
45007         maintainable by hoisting the "sp->fts_cur = p" assignments to
45008         immediately follow the statements that set P.  Derived from
45009         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45010
45011 2007-01-10  Eric Blake  <ebb9@byu.net>
45012
45013         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45014         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45016         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45017         Reported by Chris McGuire.
45018
45019 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45020
45021         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45022         in sed script.
45023
45024 2007-01-09  Bruno Haible  <bruno@clisp.org>
45025
45026         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45027         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45028         variables.
45029         (func_module): Use them.
45030
45031 2007-01-09  Bruno Haible  <bruno@clisp.org>
45032
45033         * modules/unistr/base: New file.
45034         * lib/unistr.h: New file.
45035
45036         * modules/unistr/u8-to-u16: New file.
45037         * lib/unistr/u8-to-u16.c: New file.
45038
45039         * modules/unistr/u8-to-u32: New file.
45040         * lib/unistr/u8-to-u32.c: New file.
45041
45042         * modules/unistr/u16-to-u8: New file.
45043         * lib/unistr/u16-to-u8.c: New file.
45044
45045         * modules/unistr/u16-to-u32: New file.
45046         * lib/unistr/u16-to-u32.c: New file.
45047
45048         * modules/unistr/u32-to-u8: New file.
45049         * lib/unistr/u32-to-u8.c: New file.
45050
45051         * modules/unistr/u32-to-u16: New file.
45052         * lib/unistr/u32-to-u16.c: New file.
45053
45054         * modules/unistr/u8-check: New file.
45055         * modules/unistr/u16-check: New file.
45056         * modules/unistr/u32-check: New file.
45057         * lib/unistr/u8-check.c: New file.
45058         * lib/unistr/u16-check.c: New file.
45059         * lib/unistr/u32-check.c: New file.
45060
45061         * modules/unistr/u8-chr: New file.
45062         * modules/unistr/u16-chr: New file.
45063         * modules/unistr/u32-chr: New file.
45064         * lib/unistr/u8-chr.c: New file.
45065         * lib/unistr/u16-chr.c: New file.
45066         * lib/unistr/u32-chr.c: New file.
45067
45068         * modules/unistr/u8-cmp: New file.
45069         * modules/unistr/u16-cmp: New file.
45070         * modules/unistr/u32-cmp: New file.
45071         * lib/unistr/u8-cmp.c: New file.
45072         * lib/unistr/u16-cmp.c: New file.
45073         * lib/unistr/u32-cmp.c: New file.
45074
45075         * modules/unistr/u8-cpy: New file.
45076         * modules/unistr/u16-cpy: New file.
45077         * modules/unistr/u32-cpy: New file.
45078         * lib/unistr/u8-cpy.c: New file.
45079         * lib/unistr/u16-cpy.c: New file.
45080         * lib/unistr/u32-cpy.c: New file.
45081         * lib/unistr/u-cpy.h: New file.
45082
45083         * modules/unistr/u8-cpy-alloc: New file.
45084         * modules/unistr/u16-cpy-alloc: New file.
45085         * modules/unistr/u32-cpy-alloc: New file.
45086         * lib/unistr/u8-cpy-alloc.c: New file.
45087         * lib/unistr/u16-cpy-alloc.c: New file.
45088         * lib/unistr/u32-cpy-alloc.c: New file.
45089         * lib/unistr/u-cpy-alloc.h: New file.
45090
45091         * modules/unistr/u8-endswith: New file.
45092         * modules/unistr/u16-endswith: New file.
45093         * modules/unistr/u32-endswith: New file.
45094         * lib/unistr/u8-endswith.c: New file.
45095         * lib/unistr/u16-endswith.c: New file.
45096         * lib/unistr/u32-endswith.c: New file.
45097         * lib/unistr/u-endswith.h: New file.
45098
45099         * modules/unistr/u8-mblen: New file.
45100         * modules/unistr/u16-mblen: New file.
45101         * modules/unistr/u32-mblen: New file.
45102         * lib/unistr/u8-mblen.c: New file.
45103         * lib/unistr/u16-mblen.c: New file.
45104         * lib/unistr/u32-mblen.c: New file.
45105
45106         * modules/unistr/u8-mbtouc: New file.
45107         * modules/unistr/u16-mbtouc: New file.
45108         * modules/unistr/u32-mbtouc: New file.
45109         * lib/unistr/u8-mbtouc.c: New file.
45110         * lib/unistr/u16-mbtouc.c: New file.
45111         * lib/unistr/u32-mbtouc.c: New file.
45112
45113         * modules/unistr/u8-mbtouc-safe: New file.
45114         * modules/unistr/u16-mbtouc-safe: New file.
45115         * modules/unistr/u32-mbtouc-safe: New file.
45116         * lib/unistr/u8-mbtouc-safe.c: New file.
45117         * lib/unistr/u16-mbtouc-safe.c: New file.
45118         * lib/unistr/u32-mbtouc-safe.c: New file.
45119
45120         * modules/unistr/u8-move: New file.
45121         * modules/unistr/u16-move: New file.
45122         * modules/unistr/u32-move: New file.
45123         * lib/unistr/u8-move.c: New file.
45124         * lib/unistr/u16-move.c: New file.
45125         * lib/unistr/u32-move.c: New file.
45126         * lib/unistr/u-move.h: New file.
45127
45128         * modules/unistr/u8-next: New file.
45129         * modules/unistr/u16-next: New file.
45130         * modules/unistr/u32-next: New file.
45131         * lib/unistr/u8-next.c: New file.
45132         * lib/unistr/u16-next.c: New file.
45133         * lib/unistr/u32-next.c: New file.
45134
45135         * modules/unistr/u8-prev: New file.
45136         * modules/unistr/u16-prev: New file.
45137         * modules/unistr/u32-prev: New file.
45138         * lib/unistr/u8-prev.c: New file.
45139         * lib/unistr/u16-prev.c: New file.
45140         * lib/unistr/u32-prev.c: New file.
45141
45142         * modules/unistr/u8-set: New file.
45143         * modules/unistr/u16-set: New file.
45144         * modules/unistr/u32-set: New file.
45145         * lib/unistr/u8-set.c: New file.
45146         * lib/unistr/u16-set.c: New file.
45147         * lib/unistr/u32-set.c: New file.
45148         * lib/unistr/u-set.h: New file.
45149
45150         * modules/unistr/u8-startswith: New file.
45151         * modules/unistr/u16-startswith: New file.
45152         * modules/unistr/u32-startswith: New file.
45153         * lib/unistr/u8-startswith.c: New file.
45154         * lib/unistr/u16-startswith.c: New file.
45155         * lib/unistr/u32-startswith.c: New file.
45156         * lib/unistr/u-startswith.h: New file.
45157
45158         * modules/unistr/u8-stpcpy: New file.
45159         * modules/unistr/u16-stpcpy: New file.
45160         * modules/unistr/u32-stpcpy: New file.
45161         * lib/unistr/u8-stpcpy.c: New file.
45162         * lib/unistr/u16-stpcpy.c: New file.
45163         * lib/unistr/u32-stpcpy.c: New file.
45164         * lib/unistr/u-stpcpy.h: New file.
45165
45166         * modules/unistr/u8-stpncpy: New file.
45167         * modules/unistr/u16-stpncpy: New file.
45168         * modules/unistr/u32-stpncpy: New file.
45169         * lib/unistr/u8-stpncpy.c: New file.
45170         * lib/unistr/u16-stpncpy.c: New file.
45171         * lib/unistr/u32-stpncpy.c: New file.
45172         * lib/unistr/u-stpncpy.h: New file.
45173
45174         * modules/unistr/u8-strcat: New file.
45175         * modules/unistr/u16-strcat: New file.
45176         * modules/unistr/u32-strcat: New file.
45177         * lib/unistr/u8-strcat.c: New file.
45178         * lib/unistr/u16-strcat.c: New file.
45179         * lib/unistr/u32-strcat.c: New file.
45180         * lib/unistr/u-strcat.h: New file.
45181
45182         * modules/unistr/u8-strchr: New file.
45183         * modules/unistr/u16-strchr: New file.
45184         * modules/unistr/u32-strchr: New file.
45185         * lib/unistr/u8-strchr.c: New file.
45186         * lib/unistr/u16-strchr.c: New file.
45187         * lib/unistr/u32-strchr.c: New file.
45188
45189         * modules/unistr/u8-strcmp: New file.
45190         * modules/unistr/u16-strcmp: New file.
45191         * modules/unistr/u32-strcmp: New file.
45192         * lib/unistr/u8-strcmp.c: New file.
45193         * lib/unistr/u16-strcmp.c: New file.
45194         * lib/unistr/u32-strcmp.c: New file.
45195
45196         * modules/unistr/u8-strcpy: New file.
45197         * modules/unistr/u16-strcpy: New file.
45198         * modules/unistr/u32-strcpy: New file.
45199         * lib/unistr/u8-strcpy.c: New file.
45200         * lib/unistr/u16-strcpy.c: New file.
45201         * lib/unistr/u32-strcpy.c: New file.
45202         * lib/unistr/u-strcpy.h: New file.
45203
45204         * modules/unistr/u8-strcspn: New file.
45205         * modules/unistr/u16-strcspn: New file.
45206         * modules/unistr/u32-strcspn: New file.
45207         * lib/unistr/u8-strcspn.c: New file.
45208         * lib/unistr/u16-strcspn.c: New file.
45209         * lib/unistr/u32-strcspn.c: New file.
45210         * lib/unistr/u-strcspn.h: New file.
45211
45212         * modules/unistr/u8-strdup: New file.
45213         * modules/unistr/u16-strdup: New file.
45214         * modules/unistr/u32-strdup: New file.
45215         * lib/unistr/u8-strdup.c: New file.
45216         * lib/unistr/u16-strdup.c: New file.
45217         * lib/unistr/u32-strdup.c: New file.
45218         * lib/unistr/u-strdup.h: New file.
45219
45220         * modules/unistr/u8-strlen: New file.
45221         * modules/unistr/u16-strlen: New file.
45222         * modules/unistr/u32-strlen: New file.
45223         * lib/unistr/u8-strlen.c: New file.
45224         * lib/unistr/u16-strlen.c: New file.
45225         * lib/unistr/u32-strlen.c: New file.
45226         * lib/unistr/u-strlen.h: New file.
45227
45228         * modules/unistr/u8-strmblen: New file.
45229         * modules/unistr/u16-strmblen: New file.
45230         * modules/unistr/u32-strmblen: New file.
45231         * lib/unistr/u8-strmblen.c: New file.
45232         * lib/unistr/u16-strmblen.c: New file.
45233         * lib/unistr/u32-strmblen.c: New file.
45234
45235         * modules/unistr/u8-strmbtouc: New file.
45236         * modules/unistr/u16-strmbtouc: New file.
45237         * modules/unistr/u32-strmbtouc: New file.
45238         * lib/unistr/u8-strmbtouc.c: New file.
45239         * lib/unistr/u16-strmbtouc.c: New file.
45240         * lib/unistr/u32-strmbtouc.c: New file.
45241
45242         * modules/unistr/u8-strncat: New file.
45243         * modules/unistr/u16-strncat: New file.
45244         * modules/unistr/u32-strncat: New file.
45245         * lib/unistr/u8-strncat.c: New file.
45246         * lib/unistr/u16-strncat.c: New file.
45247         * lib/unistr/u32-strncat.c: New file.
45248         * lib/unistr/u-strncat.h: New file.
45249
45250         * modules/unistr/u8-strncmp: New file.
45251         * modules/unistr/u16-strncmp: New file.
45252         * modules/unistr/u32-strncmp: New file.
45253         * lib/unistr/u8-strncmp.c: New file.
45254         * lib/unistr/u16-strncmp.c: New file.
45255         * lib/unistr/u32-strncmp.c: New file.
45256
45257         * modules/unistr/u8-strncpy: New file.
45258         * modules/unistr/u16-strncpy: New file.
45259         * modules/unistr/u32-strncpy: New file.
45260         * lib/unistr/u8-strncpy.c: New file.
45261         * lib/unistr/u16-strncpy.c: New file.
45262         * lib/unistr/u32-strncpy.c: New file.
45263         * lib/unistr/u-strncpy.h: New file.
45264
45265         * modules/unistr/u8-strnlen: New file.
45266         * modules/unistr/u16-strnlen: New file.
45267         * modules/unistr/u32-strnlen: New file.
45268         * lib/unistr/u8-strnlen.c: New file.
45269         * lib/unistr/u16-strnlen.c: New file.
45270         * lib/unistr/u32-strnlen.c: New file.
45271         * lib/unistr/u-strnlen.h: New file.
45272
45273         * modules/unistr/u8-strpbrk: New file.
45274         * modules/unistr/u16-strpbrk: New file.
45275         * modules/unistr/u32-strpbrk: New file.
45276         * lib/unistr/u8-strpbrk.c: New file.
45277         * lib/unistr/u16-strpbrk.c: New file.
45278         * lib/unistr/u32-strpbrk.c: New file.
45279         * lib/unistr/u-strpbrk.h: New file.
45280
45281         * modules/unistr/u8-strrchr: New file.
45282         * modules/unistr/u16-strrchr: New file.
45283         * modules/unistr/u32-strrchr: New file.
45284         * lib/unistr/u8-strrchr.c: New file.
45285         * lib/unistr/u16-strrchr.c: New file.
45286         * lib/unistr/u32-strrchr.c: New file.
45287
45288         * modules/unistr/u8-strspn: New file.
45289         * modules/unistr/u16-strspn: New file.
45290         * modules/unistr/u32-strspn: New file.
45291         * lib/unistr/u8-strspn.c: New file.
45292         * lib/unistr/u16-strspn.c: New file.
45293         * lib/unistr/u32-strspn.c: New file.
45294         * lib/unistr/u-strspn.h: New file.
45295
45296         * modules/unistr/u8-strstr: New file.
45297         * modules/unistr/u16-strstr: New file.
45298         * modules/unistr/u32-strstr: New file.
45299         * lib/unistr/u8-strstr.c: New file.
45300         * lib/unistr/u16-strstr.c: New file.
45301         * lib/unistr/u32-strstr.c: New file.
45302         * lib/unistr/u-strstr.h: New file.
45303
45304         * modules/unistr/u8-strtok: New file.
45305         * modules/unistr/u16-strtok: New file.
45306         * modules/unistr/u32-strtok: New file.
45307         * lib/unistr/u8-strtok.c: New file.
45308         * lib/unistr/u16-strtok.c: New file.
45309         * lib/unistr/u32-strtok.c: New file.
45310         * lib/unistr/u-strtok.h: New file.
45311
45312         * modules/unistr/u8-uctomb: New file.
45313         * modules/unistr/u16-uctomb: New file.
45314         * modules/unistr/u32-uctomb: New file.
45315         * lib/unistr/u8-uctomb.c: New file.
45316         * lib/unistr/u16-uctomb.c: New file.
45317         * lib/unistr/u32-uctomb.c: New file.
45318
45319         * MODULES.html.sh (Unicode string functions): Add the new modules.
45320
45321 2007-01-08  Bruno Haible  <bruno@clisp.org>
45322
45323         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45324         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45325         subdirectories.
45326
45327 2007-01-08  Karl Berry  <karl@gnu.org>
45328
45329         * doc/error.texi: mention that main() fns must set program_name
45330         when progname is used.
45331
45332 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45335         WCTYPE_H is empty, for the benefit of builds from non-distclean
45336         directories.  Problem reported by Eric Blake in
45337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45338
45339 2007-01-08  Bruno Haible  <bruno@clisp.org>
45340
45341         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45342         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45343         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45344         PROVIDE_CANONICALIZE_FILENAME_MODE.
45345         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45346
45347 2007-01-08  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45350         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45351         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45352         * lib/fts.c: Likewise.
45353         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45354
45355 2006-12-25  Bruno Haible  <bruno@clisp.org>
45356
45357         * modules/utf8-ucs4-safe: New file.
45358         * lib/utf8-ucs4-safe.h: New file.
45359         * lib/unistr/utf8-ucs4-safe.c: New file.
45360
45361         * modules/utf16-ucs4-safe: New file.
45362         * lib/utf16-ucs4-safe.h: New file.
45363         * lib/unistr/utf16-ucs4-safe.c: New file.
45364
45365         * MODULES.html.sh (Unicode string functions): Add the new modules.
45366
45367 2007-01-08  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45370         (Depends-on): Add unitypes.
45371         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45372         (u8_mbtouc_aux): Move out to separate file.
45373         (u8_mbtouc): Use ucs4_t, uint8_t types.
45374         * lib/unistr/utf8-ucs4.c: New file.
45375
45376         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45377         (Depends-on): Add unitypes.
45378         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45379         (u16_mbtouc_aux): Move out to separate file.
45380         (u16_mbtouc): Use ucs4_t, uint16_t types.
45381         * lib/unistr/utf16-ucs4.c: New file.
45382
45383         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45384         (Depends-on): Add unitypes.
45385         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45386         (u8_uctomb_aux): Move out to separate file.
45387         (u8_uctomb): Use ucs4_t, uint8_t types.
45388         * lib/unistr/ucs4-utf8.c: New file.
45389
45390         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45391         (Depends-on): Add unitypes.
45392         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45393         (u16_uctomb_aux): Move out to separate file.
45394         (u16_uctomb): Use ucs4_t, uint16_t types.
45395         * lib/unistr/ucs4-utf16.c: New file.
45396
45397 2006-12-25  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/unitypes: New file.
45400         * lib/unitypes.h: New file.
45401         * MODULES.html.sh (func_all_modules): New section "Unicode string
45402         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45403         this section. Add unitypes.
45404
45405 2007-01-08  Bruno Haible  <bruno@clisp.org>
45406
45407         Avoid variable names that conflict with those from libtool.
45408         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45409         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45410         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45411         library_names_spec to acl_library_names_spec, hardcode_* to
45412         acl_hardcode_*.
45413         Reported by Ralf Wildenhues.
45414
45415 2007-01-08  Bruno Haible  <bruno@clisp.org>
45416
45417         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45418         definition.
45419         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45420         definition.
45421         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45422         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45423         definition.
45424         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45425         definition.
45426         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45427         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45428         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45429         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45430         definition.
45431         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45432         definition.
45433         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45434         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45435         GC_USE_<algorithm>.
45436         * lib/gc-libgcrypt.c: Likewise.
45437         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45438         * modules/gc-arctwo (configure.ac): Likewise.
45439         * modules/gc-des (configure.ac): Likewise.
45440         * modules/gc-hmac-md5 (configure.ac): Likewise.
45441         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45442         * modules/gc-md2 (configure.ac): Likewise.
45443         * modules/gc-md4 (configure.ac): Likewise.
45444         * modules/gc-md5 (configure.ac): Likewise.
45445         * modules/gc-random (configure.ac): Likewise.
45446         * modules/gc-rijndael (configure.ac): Likewise.
45447         * modules/gc-sha1 (configure.ac): Likewise.
45448
45449 2007-01-08  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45452         macro definition.
45453         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45454         definition.
45455         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45456         definition.
45457         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45458         * modules/fcntl-safer (configure.ac): Likewise.
45459         * modules/fopen-safer (configure.ac): Likewise.
45460         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45461         GNULIB_FWRITEERROR macro definition.
45462
45463 2007-01-08  Bruno Haible  <bruno@clisp.org>
45464
45465         * m4/gnulib-common.m4: New file.
45466         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45467         (func_get_filelist): Add m4/gnulib-common.m4.
45468
45469 2007-01-08  Bruno Haible  <bruno@clisp.org>
45470
45471         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45472         command.
45473
45474 2007-01-08  Jim Meyering  <jim@meyering.net>
45475
45476         Use a more robust test for a "can't happen" condition.
45477         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45478         narrowed the st_size value.  Presuming the "can't happen" condition
45479         is true, that narrowing could conceivably convert an invalid st_size
45480         value into a valid one.  Instead, use a change based on Matthew
45481         Woehlke's original patch.
45482
45483         Slight readability improvement: use an assert-like macro
45484         in place of literal "abort ()" uses.
45485         * lib/fts.c (fts_assert): Define.
45486         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45487         Use this macro instead of a bare 'abort'.
45488
45489 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45490
45491         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45492         simply work around them.
45493         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45494         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45495         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45496         declaring.
45497         Don't bother to define as macros, since the standard doesn't require it.
45498         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45499         longer worry about IRIX 5.3.
45500         (HAVE_WCTYPE_CTMP_BUG): Remove.
45501
45502 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45503
45504         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45505         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45506         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45507         Problems reported by Georg Schwarz for IRIX 5.3.
45508
45509         * gnulib-tool (autoconf_minversion): Take the maximum version number
45510         found, not the minimum.  Problem reported by James Youngman.
45511
45512 2007-01-03  Karl Berry  <karl@gnu.org>
45513
45514         * doc/error.texi: new file, explaining interaction with progname.
45515         * doc/gnulib.texi: include it.  Update copyright.
45516
45517 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45518
45519         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45520         AC_CANONICAL_HOST, to improve autobuild outputs.
45521
45522 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45523             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45524
45525         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45526         sockets, server sockets, and other file descriptors.  Count errors
45527         to compute the return value.  Reorder the code a bit to be easier
45528         to follow.  Don't set event bits that were not requested (except
45529         POLLERR and POLLHUP).
45530
45531 2007-01-01  Bruno Haible  <bruno@clisp.org>
45532
45533         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45534
45535 2007-01-03  Jim Meyering  <jim@meyering.net>
45536
45537         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45538
45539 2007-01-02  Bruno Haible  <bruno@clisp.org>
45540
45541         * modules/settime (Include): Require timespec.h.
45542         * modules/nanosleep (Include): Likewise.
45543
45544 2007-01-01  Bruno Haible  <bruno@clisp.org>
45545
45546         * gnulib-tool (func_emit_copyright_notice): Bump year.
45547         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45548
45549 2007-01-01  Bruno Haible  <bruno@clisp.org>
45550
45551         Improve support for OpenBSD.
45552         * build-aux/config.rpath (libname_spec): Export.
45553         (library_names_spec): New variable. Export.
45554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45555         library_names_spec from the config.rpath output. Locate shared library
45556         through the name pattern in library_names_spec.
45557
45558 2007-01-01  Eric Blake  <ebb9@byu.net>
45559
45560         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45561
45562 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45563
45564         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45565         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45566         assume the C locale, and avoid an "eval" that could cause trouble.
45567         Problem with SORT reported by Bob Proulx.
45568
45569         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45570         Define.  Trivial patch from Henning Nielsen Lund, originally
45571         sent to bug-grep@gnu.org today.
45572
45573 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45574
45575         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45576         struct stat.  Problem reported by Henning Nielsen Lund.
45577         * lib/acl.c: Include acl.h first, to check interface.  Don't
45578         bother to include sys/types.h and sys/stat.h again.
45579
45580 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45581
45582         Import the following change from libc; problem reported by
45583         Sven Verdoolaege.
45584
45585         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45586
45587         [BZ #1373]
45588         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45589
45590 2006-12-28  Jim Meyering  <jim@meyering.net>
45591
45592         * build-aux/announce-gen: Do not assume that the package
45593         builds any of tar.gz, tar.bz2, and .xdelta files.
45594         Suggestion from Simon Josefsson.
45595
45596 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45597
45598         * modules/announce-gen: New file.
45599
45600 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45601
45602         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45603         handles its gotchas now.
45604         * lib/mbswidth.c: Likewise.
45605         * lib/wcwidth.h: Likewise.
45606         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45607         and iswcntrl; the wctype module does this stuff now.
45608         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45610         * modules/mbchar (Depends-on): Add wctype.
45611         * modules/mbswidth (Depends-on): Likewise.
45612         * modules/wcwidth (Depends-on): Likewise.
45613
45614 2006-12-27  Eric Blake  <ebb9@byu.net>
45615
45616         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45617         module uses more than what <wctype.h> is required to provide.
45618
45619 2006-12-26  Eric Blake  <ebb9@byu.net>
45620
45621         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45622
45623 2006-12-26  Eric Blake  <ebb9@byu.net>
45624
45625         * modules/absolute-header: New module.
45626         * modules/fcntl (Depends-on): Depend on it.
45627         * modules/inttypes (Depends-on): Likewise.
45628         * modules/stdint (Depends-on): Likewise.
45629         * modules/sys_stat (Depends-on): Likewise.
45630         * modules/wctype (Depends-on): Likewise.
45631         * MODULES.html.sh (Support for building libraries and
45632         executables): Document it.
45633
45634 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45635
45636         * gnulib-tool (SED): Remove, undoing previous change.
45637         The problem was that it broke coreutils on Solaris, because
45638         "sed --posix" leaked into a makefile.
45639         (sed): New alias, if 'alias' and GNU sed.
45640
45641 2006-12-24  Jim Meyering  <jim@meyering.net>
45642
45643         Work around an fchownat bug in glibc-2.4:
45644         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45645         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45646         in spite of the -P option.
45647         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45648         New macros.
45649         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45650         * modules/openat (Files): Add lib/fchownat.c.
45651         * lib/openat.c (fchownat): Don't define here.  Move to...
45652         * lib/fchownat.c: ...this new file.
45653
45654 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45655
45656         Fix bug reported by Bruno Haible in
45657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45658         where quotearg.c didn't compile on Mac OS X 10.2 because it
45659         lacks <wchar.h> and wint_t.
45660         * lib/wctype_.h (__wctype_wint_t): New type.
45661         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45662         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45663         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45664         Arg is now of type __wctype_wint_t, not wint_t.
45665         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45666         substitute HAVE_WINT_T.
45667         * modules/wctype (Files): Add m4/wint_t.m4.
45668         (wctype.h): Substitute HAVE_WINT_T.
45669
45670 2006-12-23  Bruno Haible  <bruno@clisp.org>
45671
45672         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45673
45674 2006-12-23  Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45677         S_ISLNK.
45678         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45679         mingw.
45680
45681 2006-12-22  Bruno Haible  <bruno@clisp.org>
45682
45683         * lib/copy-file.c: Include acl.h.
45684         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45685         Close the file descriptors only after being done with copy_acl.
45686         * modules/copy-file (Depends-on): Add acl.
45687
45688 2006-12-22  Bruno Haible  <bruno@clisp.org>
45689
45690         * gnulib-tool (SED): New variable.
45691         Use $SED instead of sed everywhere.
45692
45693 2006-12-22  Bruno Haible  <bruno@clisp.org>
45694
45695         * modules/no-c++: New file.
45696         * m4/no-c++.m4: New file.
45697         * MODULES.html.sh (Support for building libraries and executables):
45698         Add no-c++.
45699
45700 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45703         Include <limits.h>, and use its INT_MAX to rewrite the
45704         j loop so that it does not overflow 'int'.  Problem reported by
45705         Ralf Wildenhues in
45706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45707         Play it safe by shifting left by 1 rather than multiplying by 2,
45708         as GCC is less likely to optimize this away when the value
45709         is signed (when it assumes overflow leads to undefined behavior).
45710         Also, don't assume time_t uses two's complement.
45711
45712 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45713
45714         * MODULES.html.sh: New module wctype.
45715         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45716         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45717         <wctype.h>, since the new wctype module should fix this.
45718         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45719         the wctype module should arrange for it.
45720         * lib/regex_internal.h: Likewise.
45721         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45722         since the wctype module should handle this now.
45723         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45724         * modules/fnmatch (Depends-on): Add wctype.
45725         * modules/quotearg (Depends-on): Likewise.
45726         * modules/regex (Depends-on): Likewise.
45727
45728 2006-12-19  Bruno Haible  <bruno@clisp.org>
45729
45730         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45731         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45732
45733 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45734
45735         * modules/savewd (Depends-on): Fix dependency on fcntl.
45736
45737 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45740         conforms to C99, rather than relying on the user's environment
45741         setting of STDINT_H.
45742
45743 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45744         and Eric Blake  <ebb9@byu.net>
45745
45746         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45747         This is more consistent with the other defines here.
45748         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45749         Port to z/OS.  Problem reported by Paul Gilmartin.
45750         Change local vars to use gl_ prefix rather than ac_.
45751         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45752         with other defines.
45753         * modules/double-slash-root: New module.
45754         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45755         (Depends-on): Add double-slash-root.
45756         * MODULES.html.sh (File system functions): Mention new module.
45757
45758 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45759
45760         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45761         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45762         This is for the benefit of gzip, which doesn't do i18n.
45763
45764 2006-12-12  Jim Meyering  <jim@meyering.net>
45765
45766         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45767         Reported by Andreas Schwab <schwab@suse.de>.
45768
45769 2006-12-12  Bruno Haible  <bruno@clisp.org>
45770
45771         Merge these changes.
45772         2006-09-05  Bruno Haible  <bruno@clisp.org>
45773         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45774         iconv_alloc succeeded.
45775         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45776         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45777         test for " && dest " at the end - dest is always != NULL there. Call
45778         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45779         with 2xNULL arguments, also to flush the state storage. Handle the
45780         IRIX iconv behaviour. Realloc the final result, to throw away unused
45781         memory.
45782
45783 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45784
45785         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45786         and fchmodat unconditionally, since glibc 2.4 has them.
45787         Problem reported by Arkadiusz Miskiewicz.
45788
45789 2006-12-10  Bruno Haible  <bruno@clisp.org>
45790
45791         * gnulib-tool (func_import): Show the include files only for those
45792         modules that are copied and specified.
45793         Reported by Karl Berry.
45794
45795 2006-12-08  Jim Meyering  <jim@meyering.net>
45796
45797         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45798         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45799
45800         * build-aux/announce-gen: Add two new options, both optional:
45801         --bootstrap-tools=TOOL_LIST
45802               a comma-separated list of tools, e.g.,
45803               autoconf,automake,bison,gnulib
45804         --gnulib-snapshot-date=DATE
45805               if gnulib is in the bootstrap tool list,
45806               then report this as the snapshot date.
45807               If not specified, use the current date/time.
45808               If you specify a date here, be sure it's UTC.
45809
45810 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45811
45812         * tests/test-argp-2.sh: Fix test to match actual output.
45813         (func_compare): Fix sed script to be portable.
45814
45815 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45816
45817         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45818         workaround for this case.  It is not autoconfigured now; offhand
45819         it's hard to see how to autoconfigure it.
45820
45821 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45822
45823         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45824         a directory that is about to be chowned.  Such a directory's
45825         initial file permissions should permit the owner only and this
45826         should not be changed until after the chown, since the group and
45827         other bits would be incorrect if they granted permission before
45828         the chown.
45829
45830         Fix porting problem for iswctype reported by Georg Schwarz in:
45831         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45832         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45833         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45835         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45836
45837 2006-12-03  Jim Meyering  <jim@meyering.net>
45838
45839         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45840         p->fts_statp may not yet be defined.
45841         (fts_read): Instead, set it in the caller, once p->fts_statp is
45842         sure to be defined, and corresponds to a top-level directory.
45843         This bug made du -x fail.  Here's the coreutils test case:
45844         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45845         Reported by Mike Frysinger.
45846
45847 2006-12-01  Jim Meyering  <jim@meyering.net>
45848
45849         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45850         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45851         Reported by Simon Josefsson.
45852
45853 2006-11-30  Jim Meyering  <jim@meyering.net>
45854
45855         * m4/warning.m4: Use the all-permissive copyright notice
45856         recommended by RMS (rather than LGPL).
45857         * m4/vararrays.m4: Likewise.
45858         * m4/flexmember.m4: Likewise.
45859
45860 2006-11-29  Bruno Haible  <bruno@clisp.org>
45861
45862         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45863         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45864         using +=.
45865         Reported by Simon Josefsson <simon@josefsson.org>.
45866
45867 2006-11-28  James Youngman <jay@gnu.org>
45868
45869         * README: Advise users that they might find the bug-gnulib@gnu.org
45870         and autotools-announce@gnu.org mailing lists useful.
45871
45872 2006-11-28  Bruno Haible  <bruno@clisp.org>
45873
45874         * m4/ptrdiff_max.m4: Remove file.
45875
45876 2006-11-21  Bruno Haible  <bruno@clisp.org>
45877
45878         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45879         _AC_COMPUTE_INT.
45880         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45881         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45882         _AC_COMPUTE_INT.
45883         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45884         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45885         _AC_COMPUTE_INT.
45886         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45887
45888 2006-11-28  Jim Meyering  <jim@meyering.net>
45889
45890         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45891         warning from "gcc -Wshadow" about shadowing the builtin.
45892
45893 2006-11-27  Bruno Haible  <bruno@clisp.org>
45894
45895         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45896         _AC_COMPUTE_INT.
45897         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45898
45899 2006-11-27  Bruno Haible  <bruno@clisp.org>
45900             Paul Eggert  <eggert@cs.ucla.edu>
45901
45902         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45903
45904 2006-11-26  Bruno Haible  <bruno@clisp.org>
45905
45906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45907         noinst_LTLIBRARIES.
45908
45909 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45910             Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45913         if compiling with "gcc -ansi".
45914
45915 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45916
45917         Fix some incompatibilities with gcc -ansi -pedantic.
45918         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45919         if compiling pedantically with GCC, unless it's C99 or later.
45920         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45921         it mishandles gcc -ansi -pedantic as well.
45922         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45923         if gcc -pedantic.
45924         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45925         initializers for struct if -pedantic, unless it's C99 or later.
45926
45927 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45928
45929         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45930         Don't close an fd more than once. Identical atimes indicate
45931         success, not failure.
45932
45933 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45934
45935         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45936
45937 2006-11-23  Jim Meyering  <jim@meyering.net>
45938
45939         * build-aux/announce-gen: New file.  From coreutils.
45940
45941 2006-11-22  Jim Meyering  <jim@meyering.net>
45942
45943         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45944         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45945         (fts_read): Use a temporary to narrow the overused st_size member
45946         before using it in a switch statement.  Reported by Matthew Woehlke.
45947
45948         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45949         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45950
45951 2006-11-20  Bruno Haible  <bruno@clisp.org>
45952
45953         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45954         changequote instead of pairs of brackets.
45955         Reported by Andreas Schwab <schwab@suse.de>.
45956
45957 2006-11-21  Jim Meyering  <jim@meyering.net>
45958
45959         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45960         so as to remain compatible with older compilers.
45961         Patch from Michael Deutschmann.
45962
45963 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45964
45965         * MODULES.html.sh (File system functions): Add openat.
45966
45967         * lib/openat.h (rpl_fstatat): New macro, if
45968         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45969         (fstatat): Define to rpl_fstatat under the same conditions,
45970         unless COMPILING_FSTATAT.
45971         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45972         seems to have the bug.
45973         * lib/fstatat.c: New file.
45974         * modules/openat (Files): Add it.
45975
45976 2006-11-20  Bruno Haible  <bruno@clisp.org>
45977
45978         * Makefile: New file.
45979
45980 2006-11-20  Jim Meyering  <jim@meyering.net>
45981
45982         The beginnings of syntax-related checks for gnulib.
45983         * lib/Makefile: New file.
45984         * lib/t-idcache: New script.  Ensure that the two halves of
45985         idcache.c stay in sync.
45986
45987         * lib/idcache.c: Adjust comments in user- and group- portions to
45988         be more accurate, and to be consistent with one another.
45989
45990 2006-11-20  Jim Meyering  <jim@meyering.net>
45991
45992         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45993         continue using the flexible array member (thus, this module performs
45994         half as many malloc calls), with the addition that...
45995         (getgroup, getuser): Consistently record a non-match via an empty
45996         "name" string, and map an empty string match to a NULL return value.
45997         * modules/idcache (Depends-on): Re-add flexmember.
45998
45999         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46000         (getuidbyname, getgroup, getgidbyname): Likewise.
46001
46002         Use cleaner syntax: NULL rather than 0.
46003         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46004
46005 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46006
46007         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46008         It mishandled the case where the group was missing.
46009         Problem reported by Greg Schafer.
46010         * modules/idcache: Likewise.
46011
46012 2006-11-18  Jim Meyering  <jim@meyering.net>
46013
46014         * check-module (%exempt_header): Add exception for some
46015         conditionally-included headers.
46016
46017         * modules/i-ring (Depends-on): Add verify.
46018         (License): Change to LGPL.
46019
46020 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46021
46022         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46023         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46024         and inttostr.h.  Use snprintf rather than uinttostr, so that
46025         LGPLed code doesn't depend on GPLed.
46026
46027 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         * modules/inline (License): Change from GPL to LGPL.
46030
46031 2006-11-17  Jim Meyering  <jim@meyering.net>
46032
46033         * modules/d-type (License): Switch to LGPL.
46034
46035 2006-11-15  Bruno Haible  <bruno@clisp.org>
46036
46037         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46038
46039 2006-11-15  Eric Blake  <ebb9@byu.net>
46040
46041         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46042         the module dependency.
46043
46044 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46045             Bruno Haible  <bruno@clisp.org>
46046
46047         * gnulib-tool (func_create_testdir): Add license consistency check.
46048
46049 2006-11-15  Eric Blake  <ebb9@byu.net>
46050
46051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46052         random "(cached)" in configure output.
46053
46054 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46055
46056         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46057         test for conforming inttypes.h is both announced and cached.
46058
46059         * MODULES.html.sh (seen_modules, seen_files): New variables.
46060         (func_module): Rewrite to use a few less gnulib-tool and sed
46061         invocations.  Avoid a couple of quadratic algorithms for ...
46062         (missed_modules, missed_files): ... these, with ...
46063         (func_append, func_tmpdir): ... these new functions, from
46064         gnulib-tool.  Analogously, install traps for cleanup.
46065
46066         * tests/test-gc.c (main): Remove unused variables.
46067         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46068
46069 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46070
46071         * modules/inttostr (License): Change to LGPL.
46072
46073 2006-11-14  Eric Blake  <ebb9@byu.net>
46074
46075         * modules/tempname (License): Change to LGPL.
46076
46077 2006-11-14  Eric Blake  <ebb9@byu.net>
46078
46079         * doc/functions.texi (Function Portability): *printf functions on
46080         Cygwin now understand all POSIX size specifiers.
46081
46082 2006-11-14  Bruno Haible  <bruno@clisp.org>
46083
46084         * modules/c-ctype (License): Change to LGPL.
46085
46086 2006-11-12  Bruno Haible  <bruno@clisp.org>
46087
46088         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46089         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46090         for GNOME libraries, for which the include files are installed in
46091         subdirectories of $prefix/include.
46092
46093 2006-11-12  Bruno Haible  <bruno@clisp.org>
46094
46095         * m4/lib-link.m4: Require at least autoconf-2.54.
46096         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46097         name to underscores for the --with option.
46098
46099 2006-11-13  Bruno Haible  <bruno@clisp.org>
46100
46101         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46102         the tests directory.
46103         Reported by Ralf Wildenhues.
46104
46105 2006-11-13  Bruno Haible  <bruno@clisp.org>
46106
46107         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46108         (func_emit_initmacro_end): Undo the override here.
46109         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46110         Works around the famous automake error in coreutils.
46111
46112 2006-11-13  Eric Blake  <ebb9@byu.net>
46113
46114         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46115         element, not its node.
46116
46117 2006-11-12  Bruno Haible  <bruno@clisp.org>
46118
46119         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46120         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46121
46122 2006-11-12  Bruno Haible  <bruno@clisp.org>
46123
46124         * gnulib-tool: New option --local-symlink.
46125         (func_usage): Document it.
46126         (lsymbolic): New variable.
46127         (func_import, func_create_testdir): If --symlink was not specified,
46128         test whether --local-symlink was specified and the file comes from
46129         the local_gnulib_dir.
46130
46131 2006-11-12  Bruno Haible  <bruno@clisp.org>
46132
46133         * gnulib-tool (func_ln): New function.
46134         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46135
46136 2006-11-12  Bruno Haible  <bruno@clisp.org>
46137
46138         Finish support for source files in subdirectories.
46139         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46140         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46141         AUTOMAKE_OPTIONS.
46142         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46143
46144 2006-11-12  Bruno Haible  <bruno@clisp.org>
46145
46146         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46147         EXTRA_lib_SOURCES augmentation.
46148         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46149
46150 2006-11-12  Jim Meyering  <jim@meyering.net>
46151
46152         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46153         file descriptors.  This also averts a failure on systems with
46154         native openat support when a traversed directory lacks "x" access.
46155         * lib/fts_.h: Include "i-ring.h"
46156         (struct FTS) [fts_fd_ring]: New member.
46157         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46158         (FCHDIR): Add parentheses.
46159         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46160         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46161         When descending, rather than simply closing the previous
46162         fts_cwd_fd value, push that file descriptor onto the ring.
46163         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46164         (fts_open): Initialize the new fd_ring member.
46165         (fts_close): Clear the ring.
46166         (fts_safe_changedir): When possible, use our new fd_ring to skip
46167         the diropen and fstat and dev/ino comparison that would normally
46168         accompany a virtual `chdir ("..")'.
46169
46170         * modules/fts (Depends-on): Add i-ring.
46171         * modules/i-ring: New module.
46172         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46173         * m4/i-ring.m4: New file.
46174
46175 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46176
46177         * gnulib-tool (func_create_testdir): Fix replacement of
46178         `build-aux' in configure.ac.  Run autotools in gltests
46179         subdirectory.
46180         (func_create_testdir, func_create_megatestdir, test): There is
46181         no need for '--force' in most autotool invocations in a new
46182         tree.  Actually fail the whole test if any of the tools, or the
46183         configure or make stages fail.
46184
46185         Sync from Automake.
46186         * build-aux/gnupload: Revert last change.  Add pointer to upload
46187         instructions of the GNU Maintenance Instructions.
46188         Suggestion by Karl Berry.
46189
46190 2006-11-10  Jim Meyering  <jim@meyering.net>
46191
46192         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46193
46194 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46197         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46198         (bind_textdomain_codeset) [! ENABLE_NLS]:
46199         Evaluate all the arguments.  That way, callers get compatible behavior
46200         if the arguments have side effects.  Also, it avoids some GCC
46201         diagnostics in some cases; Joel E. Denny reported problems when Bison
46202         was configured with --enable-gcc-warnigs.
46203
46204 2006-11-10  Jim Meyering  <jim@meyering.net>
46205
46206         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46207         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46208         account.
46209
46210 2006-11-10  Jim Meyering  <jim@meyering.net>
46211
46212         * modules/inline: New file/module.
46213         * modules/xalloc (Files): Remove m4/inline.m4.
46214         (Depends-on): Add inline, instead.
46215         * modules/oset: Likewise.
46216         * modules/list: Likewise.
46217
46218 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46219
46220         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46221         Problem reported by Matthew Woehlke.
46222
46223 2006-11-09  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/tempname.c (gen_tempname): Remove variant that invokes
46226         __gen_tempname.
46227         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46228         __gen_tempname.
46229
46230 2006-11-08  Bruno Haible  <bruno@clisp.org>
46231
46232         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46233         to 'yes' instead of 'cross-compiling'.
46234
46235 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46236
46237         * lib/quotearg.h (quotearg_free): New decl.
46238         * lib/quotearg.c (quotearg_free): New function.
46239         (slot0, nslots, slotvec0, slotvec):
46240         Now file-scope so that quotearg_free can get at them.
46241
46242 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46243
46244         Sync from Automake.
46245         * build-aux/gnupload: Add missing 'gnu' to example URL.
46246         Report by Karl Berry.
46247
46248 2006-11-08  Bruno Haible  <bruno@clisp.org>
46249
46250         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46251         Suggested by Paul Eggert.
46252
46253 2006-11-08  Jim Meyering  <jim@meyering.net>
46254
46255         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46256         It's already included if !_LIBC.
46257         (fts_safe_changedir): Add a comment.
46258
46259 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46260
46261         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46262         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46263         Matthew Woehlke.
46264
46265         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46266         definitions up, to avoid colliding with change below.
46267         (static_inline) [HAVE_INLINE]: New macro.
46268         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46269         Provide extern decls when !HAVE_INLINE.  Do not define unless
46270         static_inline is defined, either by us or by xmalloc.c.  Use
46271         static_inline rather than static inline.
46272         (XCALLOC): Optimize sizeof(T) = 1 case.
46273         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46274
46275 2006-11-07  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46278         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46279         AC_C_INLINE.
46280         * modules/xalloc (Files): Add m4/inline.m4.
46281
46282 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46283
46284         * README: Fix typo.
46285         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46286         (Miscellanous Notes): ...from this.
46287
46288 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46289
46290         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46291         Mention that offsetof should be used instead of sizeof.
46292         From Bruno Haible.
46293
46294 2006-11-07  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46297
46298 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46299
46300         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46301         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46302         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46303         (gl_tree_add_before, gl_tree_add_after):
46304         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46305         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46306         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46307         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46308         (gl_linked_add_after, gl_linked_add_at): Likewise.
46309         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46310         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46311         (gl_tree_add_before, gl_tree_add_after): Likewise.
46312         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46313         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46314         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46315
46316 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46317
46318         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46319
46320 2006-11-06  Bruno Haible  <bruno@clisp.org>
46321
46322         * m4/inline.m4: New file.
46323         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46324         * modules/list (Files): Add m4/inline.m4.
46325         * modules/oset (Files): Likewise.
46326
46327 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46328
46329         * lib/idcache.c: Include <stddef.h>, for offsetof.
46330         (struct userid.name): Change from char * to a flexible array member.
46331         All uses changed.
46332         * modules/idcache (Depends-on): Add flexmember.
46333
46334         * MODULES.html.sh (Core language properties): New module flexmember.
46335         * modules/flexmember, m4/flexmember.m4: New files.
46336
46337         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46338         inline functions that are identical with the old xnmalloc_inline,
46339         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46340         that we can avoid some unnecessary integer multiplications and
46341         divisions in the common case where the element size is known at
46342         compile time.
46343         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46344         needed.
46345         (xnboundedmalloc): Remove.
46346         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46347         arguments, for consistency with rest of this header.
46348         (xcharalloc): Rewrite using XNMALLOC.
46349         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46350         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46351         versions have been moved to lib/xalloc.h and renamed to be the
46352         non-*_inline versions.
46353         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46354         and xnrealloc functions, since those functions are now inline and
46355         now call us.
46356         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46357         renaming described above.
46358         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46359         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46360         captures the dependency in AC_C_INLINE.
46361
46362         New module canonicalize-lgpl, proposed by Charles Wilson in
46363         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46364         with a few small changes afterwards.
46365         * MODULES.html.sh (File system functions): New module
46366         canonicalize-lgpl.
46367         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46368         and canonicalize_file_name.
46369         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46370         * modules/canonicalize-lgpl: New files.
46371
46372 2006-11-05  Bruno Haible  <bruno@clisp.org>
46373
46374         * gnulib-tool (func_import, func_create_testdir): Create directories
46375         also for files in subdirectories of lib/.
46376
46377 2006-11-05  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46380         ANSI C compliant.
46381
46382 2006-11-03  Bruno Haible  <bruno@clisp.org>
46383
46384         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46385         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46386         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46387         (xnboundedmalloc): New inline function.
46388         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46389         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46390         xmalloc.
46391         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46392         xmalloc.
46393         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46394         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46395         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46396         xmalloc.
46397         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46398         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46399         xmalloc.
46400         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46401         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46402         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46403         xmalloc.
46404         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46405         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46406         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46407         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46408         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46409         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46410         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46411
46412 2006-11-03  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/c-ctype.h [C++]: Define functions without name mangling.
46415         * lib/fwriteerror.h [C++]: Likewise.
46416         * lib/gcd.h [C++]: Likewise.
46417         * lib/linebreak.h [C++]: Likewise.
46418
46419 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46420
46421         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46422         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46423         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46424         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46425         Check for functions and headers just once.
46426         Check for declaration of canonicalize_file_name.
46427         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46428
46429 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46430
46431         * gnulib-tool (func_import): Fix typo in actioncmd.
46432
46433 2006-11-02  Bruno Haible  <bruno@clisp.org>
46434
46435         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46436         newline sequence in the Makefile.am snippet as a space, like "make"
46437         does.
46438         Reported by Roger Persson <perrog@gmail.com>.
46439
46440 2006-11-01  Bruno Haible  <bruno@clisp.org>
46441
46442         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46443         already declared in <string.h>.
46444         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46445
46446 2006-11-01  Bruno Haible  <bruno@clisp.org>
46447
46448         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46449         * lib/strcase.h: Include <string.h>.
46450         (strcasecmp): Define to rpl_strcasecmp here.
46451
46452 2006-11-01  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46455
46456 2006-11-01  Eric Blake  <ebb9@byu.net>
46457
46458         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46459
46460         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46461
46462 2006-10-29  Bruno Haible  <bruno@clisp.org>
46463
46464         Make it compile in C++ mode.
46465         * lib/full-write.c (full_rw): Add a cast.
46466
46467 2006-11-01  Bruno Haible  <bruno@clisp.org>
46468
46469         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46470         be POSIX compliant.
46471         Reported by Roger Persson <perrog@gmail.com>.
46472
46473 2006-11-01  Eric Blake  <ebb9@byu.net>
46474
46475         * lib/getopt_.h: Fix comments.
46476
46477 2006-10-31  Eric Blake  <ebb9@byu.net>
46478
46479         * modules/tmpdir (Depends-on): Add sys_stat.
46480         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46481         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46482         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46483         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46484         tempname.
46485
46486 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46487
46488         Avoid some C++ diagnostics reported by Bruno Haible.
46489         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46490         xmalloc.
46491         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46492         (struct slotvec): Move to top level.
46493         (quotearg_n_options): Rewrite to avoid xmalloc.
46494         * lib/xalloc.h (xcharalloc): New function.
46495         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46496         [defined __cplusplus]: Add function template that provides result
46497         type propagation.  This part of the change is from Bruno Haible.
46498
46499 2006-10-29  Bruno Haible  <bruno@clisp.org>
46500
46501         Make it compile in C++ mode.
46502         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46503         * lib/strnlen1.c (strnlen1): Cast memchr result.
46504         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46505         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46506         (create_temp_dir): Rename local variable 'template'.
46507         (compile_csharp_using_sscli): Add cast.
46508         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46509         * lib/findprog.c (find_in_path): Likewise.
46510         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46511         * lib/wait-process.c (register_slave_subprocess): Likewise.
46512
46513 2006-10-22  Bruno Haible  <bruno@clisp.org>
46514
46515         * modules/tsearch: New file.
46516         * lib/tsearch.h: New file.
46517         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46518         * m4/tsearch.m4: New file.
46519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46520
46521 2006-10-29  Eric Blake  <ebb9@byu.net>
46522
46523         * lib/arcfour.c: Assume config.h.
46524         * lib/arctwo.c: Likewise.
46525         * lib/base64.c: Likewise.
46526         * lib/check-version.c: Likewise.
46527         * lib/crc.c: Likewise.
46528         * lib/des.c: Likewise.
46529         * lib/gc-gnulib.c: Likewise.
46530         * lib/gc-libgcrypt.c: Likewise.
46531         * lib/gc-pbkdf2-sha1.c: Likewise.
46532         * lib/getaddrinfo.c: Likewise.
46533         * lib/getdelim.c: Likewise.
46534         * lib/getline.c: Likewise.
46535         * lib/hmac-md5.c: Likewise.
46536         * lib/hmac-sha1.c: Likewise.
46537         * lib/iconvme.c: Likewise.
46538         * lib/md2.c: Likewise.
46539         * lib/md4.c: Likewise.
46540         * lib/memxor.c: Likewise.
46541         * lib/read-file.c: Likewise.
46542         * lib/readline.c: Likewise.
46543         * lib/rijndael-alg-fst.c: Likewise.
46544         * lib/rijndael-api-fst.c: Likewise.
46545         * lib/xgetdomainname.c: Likewise.
46546
46547 2006-10-28  Eric Blake  <ebb9@byu.net>
46548
46549         * lib/xstrndup.c: Assume config.h.
46550
46551 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46552
46553         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46554         stat-macros.h is now for our own macros, whereas stat_h is for
46555         macros in the <sys/stat.h> name space.
46556         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46557         (STAT_MACROS_H): Remove.
46558         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46559         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46560         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46561         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46562         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46563         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46564         Move these macros to ...
46565         * lib/stat_.h: here.  Don't include stat-macros.h.
46566         * lib/canonicalize.c: Don't include stat-macros.h.
46567         * lib/chown.c: Likewise.
46568         * lib/euidaccess.c: Likewise.
46569         * lib/file-type.c: Likewise.
46570         * lib/filemode.c: Likewise.
46571         * lib/glob.c: Likewise.
46572         * lib/isapipe.c: Likewise.
46573         * lib/lchown.c: Likewise.
46574         * lib/lstat.c: Likewise.
46575         * lib/mkdir-p.c: Likewise.
46576         * lib/rmdir.c: Likewise.
46577         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46579         unless mkdir isn't declared, to speed up 'configure'.
46580         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46581         would define all the S_* symbols.
46582         * modules/canonicalize (Depends-on):
46583         Depend on sys_stat, not stat-macros.
46584         * modules/chown: Likewise.
46585         * modules/euidaccess: Likewise.
46586         * modules/filemode: Likewise.
46587         * modules/file-type: Likewise.
46588         * modules/glob: Likewise.
46589         * modules/isapipe: Likewise.
46590         * modules/lchown: Likewise.
46591         * modules/lstat: Likewise.
46592         * modules/mkancesdirs: Likewise.
46593         * modules/rmdir: Likewise.
46594         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46595         * modules/modechange: Likewise.
46596         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46597         (configure.ac): Remove gl_STAT_MACROS.
46598         * modules/sys_stat (Depends-on): Remove stat-macros.
46599
46600 2006-10-27  Bruno Haible  <bruno@clisp.org>
46601
46602         * m4/signed.m4: Remove file.
46603         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46604         invocation.
46605         * modules/vasnprintf (Files): Remove m4/signed.m4.
46606
46607 2006-10-27  Bruno Haible  <bruno@clisp.org>
46608
46609         Update to GNU gettext 0.16.
46610         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46611         m4/inttypes-h.m4, m4/signed.m4.
46612         * m4/gettext.m4: Update to GNU gettext 0.16.
46613         * m4/intl.m4: New file, from GNU gettext.
46614         * m4/intldir.m4: New file, from GNU gettext.
46615         * config/srclist.txt: Update
46616
46617 2006-10-27  Eric Blake  <ebb9@byu.net>
46618
46619         * MODULES.html.sh: Document tempname.
46620         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46621         dependencies.
46622         (Files): Move lib/tempname.c...
46623         * modules/tempname: ...to this new module.
46624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46625         (gl_PREREQ_TEMPNAME): Move...
46626         * m4/tempname.m4: ...to this new file.
46627         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46628         * modules/sys_stat (Depends-on): Add stat-macros.
46629         * lib/stat_.h (includes): Pick up stat macros.
46630         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46631         if stat macros are broken.
46632         * lib/tempname.c (includes): No need to include "stat-macros.h".
46633         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46634         (direxists, __path_search) [!_LIBC]: Don't compile these in
46635         gnulib; the tmpdir module covers that.
46636         * lib/tempname.h: New file.
46637
46638 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * COPYING: Explain how gnulib-tool converts licence headers.
46641         Almost all wording by Eric Blake.
46642
46643 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * lib/mbchar.h (is_basic_table): Make read-only.
46646         * lib/mbchar.c (is_basic_table): Likewise.
46647         Reported by John Darrington.
46648
46649 2006-10-25  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/progname.h (set_program_name): Undefine before defining.
46652
46653 2006-10-25  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46656         false for non-gcc C++ compilers.
46657         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46658
46659 2006-10-24  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46662         iconv implementations like Irix iconv.
46663
46664 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46665
46666         * modules/vararrays: New file.
46667         * m4/vararrays.m4: New file, taken from diffutils.
46668         * MODULES.html.sh: New module vararrays.
46669
46670 2006-10-24  Karl Berry  <karl@gnu.org>
46671
46672         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46673         Don't call GNU Unix.
46674
46675 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46676
46677         * users.txt: Add Libtool.
46678
46679         Sync from Libtool:
46680
46681         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46682
46683         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46684         to gnulib's policy of including config.h unconditionally.
46685
46686 2006-10-24  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/wcwidth (Files): Add m4/wint_t.m4.
46689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46690         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46691
46692 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46695         to pacify GCC with some -W flags enabled.  Problem reported by
46696         Bruno Haible.
46697
46698 2006-10-24  Jim Meyering  <jim@meyering.net>
46699
46700         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46701         Reported by Karl Berry.
46702
46703 2006-10-23  Bruno Haible  <bruno@clisp.org>
46704
46705         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46706
46707 2006-10-24  Bruno Haible  <bruno@clisp.org>
46708
46709         * lib/gl_list.h: Use C comment style, not C++ comment style.
46710
46711 2006-10-23  Eric Blake  <ebb9@byu.net>
46712
46713         * lib/getaddrinfo.c (includes): Add missing include.
46714
46715 2006-10-23  Bruno Haible  <bruno@clisp.org>
46716             Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         Ability to rename obstack_free.
46719         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46720         obstack_free.
46721         (obstack_free): Invoke the __obstack_free macro.
46722         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46723
46724 2006-10-23  Bruno Haible  <bruno@clisp.org>
46725             Paul Eggert  <eggert@cs.ucla.edu>
46726
46727         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46728         __argc, __argv from the declaration. (They are defined as macros on
46729         mingw.)
46730
46731 2006-10-22  Bruno Haible  <bruno@clisp.org>
46732
46733         * doc/gnulib-intro.texi: New file.
46734         * doc/gnulib.texi: Include it.
46735
46736 2006-10-21  Bruno Haible  <bruno@clisp.org>
46737
46738         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46739         "Introduction", "Miscellanous Notes", "Particular Modules".
46740
46741 2006-10-21  Bruno Haible  <bruno@clisp.org>
46742
46743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46744         Change mostlyclean-local rule to avoid sh syntax error from bash
46745         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46746
46747 2006-10-23  Jim Meyering  <jim@meyering.net>
46748
46749         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46750         in place of snprintf.
46751
46752         * modules/inttostr (Files): Add lib/uinttostr.c.
46753         * lib/uinttostr.c (inttostr): New file/function.
46754         * lib/inttostr.h (uinttostr): Declare.
46755         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46756         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46757         Add uinttostr.
46758         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46759
46760 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46761
46762         * lib/canonicalize.c (ELOOP): Define if not already defined.
46763         Problem reported by Bruno Haible in
46764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46765
46766 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46767
46768         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46769         Problem reported by Perry Smith and Ville Laurikari.
46770
46771         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46772         uses.
46773
46774 2006-10-19  Bruno Haible  <bruno@clisp.org>
46775
46776         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46777         for mingw.
46778
46779 2006-10-19  Bruno Haible  <bruno@clisp.org>
46780
46781         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46782         Needed for mingw.
46783
46784 2006-10-19  Bruno Haible  <bruno@clisp.org>
46785
46786         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46787
46788 2006-10-19  Bruno Haible  <bruno@clisp.org>
46789
46790         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46791         it.
46792
46793 2006-10-19  Bruno Haible  <bruno@clisp.org>
46794
46795         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46796         invocation.
46797
46798 2006-10-19  Bruno Haible  <bruno@clisp.org>
46799
46800         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46801         mountlist by default.
46802
46803 2006-10-16  Bruno Haible  <bruno@clisp.org>
46804
46805         * lib/c-strstr.c: Include c-strstr.h.
46806
46807 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46808
46809         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46810         in a slash.
46811
46812 2006-10-18  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/lock.h [C++]: Wrap definitions in extern "C".
46815
46816 2006-10-18  Bruno Haible  <bruno@clisp.org>
46817
46818         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46819         gl_LIBOBJS list.
46820
46821 2006-10-18  Bruno Haible  <bruno@clisp.org>
46822
46823         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46824
46825 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         * lib/xstrtol.h: Include gettext.h.
46828         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46829         Problem reported by Eric Blake.
46830         * modules/xstrtol (Depends-on): Add gettext-h.
46831
46832 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46833
46834         * lib/strftime.c (advance): New macro.
46835         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46836         incomplete type, so you can't add 0 to it.  Problem and patch
46837         reported by Eelco Dolstra for dietlibc.
46838
46839 2006-10-18  Jim Meyering  <jim@meyering.net>
46840
46841         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46842         type for a local, and rename it: s/up/user_proc/.
46843
46844 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46845
46846         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46847         READ_UTMP_USER_PROCESS.
46848         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46849
46850 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46851
46852         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46853         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46854
46855 2006-10-17  Eric Blake  <ebb9@byu.net>
46856
46857         * lib/sigprocmask.c (sigprocmask): Fix typo.
46858
46859         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46860
46861         * modules/clean-temp (Makefile.am): Don't add to make output...
46862         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46863         config.h.
46864
46865 2006-10-17  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46868         differently if DEFAULT_TEXT_DOMAIN is set.
46869
46870 2006-10-16  Bruno Haible  <bruno@clisp.org>
46871
46872         * lib/clean-temp.c: Include fwriteerror.h.
46873
46874 2006-10-16  Bruno Haible  <bruno@clisp.org>
46875
46876         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46877
46878 2006-10-16  Bruno Haible  <bruno@clisp.org>
46879
46880         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46881         * lib/sigprocmask.h: Include <sys/types.h>.
46882         (sigset_t): Use the system's definition if present.
46883
46884 2006-10-17  Eric Blake  <ebb9@byu.net>
46885
46886         * lib/xvasprintf.c (includes): Assume config.h.
46887         * lib/xasprintf.c (includes): Likewise.
46888
46889 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46892         at least as wide as intmax_t.
46893
46894 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46895
46896         (Imported from Automake.)
46897         * build-aux/gnupload: Update to version 1.1 of directive file.
46898
46899 2006-10-16  Eric Blake  <ebb9@byu.net>
46900
46901         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46902         match Automake 1.10a.
46903
46904 2006-10-14  Bruno Haible  <bruno@clisp.org>
46905
46906         * modules/sigprocmask: New file.
46907         * lib/sigprocmask.h: New file.
46908         * lib/sigprocmask.c: New file.
46909         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46910         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46911         request sigprocmask.o.
46912         (gl_PREREQ_SIGPROCMASK): New macro.
46913         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46914         (Depends-on): Add sigprocmask.
46915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46916         gt_SIGNALBLOCKING. Test for 'raise' only once.
46917         * lib/fatal-signal.c: Include sigprocmask.h.
46918         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46919         unblock_fatal_signals): Define always.
46920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46921         sigprocmask.
46922
46923 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46924
46925         Sync from Automake.
46926         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46927         which incorrectly sets the mode of an existing destination
46928         directory.  In some cases the unpatched install-sh could do the
46929         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46930         system.  We hope this is rare in practice, but it's clearly worth
46931         fixing.  Problem reported by Alex Unleashed in
46932         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46933         Also, don't bother to check for -m bugs unless we're using -m;
46934         suggested by Stepan Kasal.
46935
46936 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46937
46938         Sync from Automake.
46939         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46940         `-c' flag, so they appear at the same position as in %FASTDEP%
46941         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46942         which ignores unknown options only after the first non-option.
46943         Bug report against M4 by Nelson H. F. Beebe.
46944
46945 2006-10-13  Jim Meyering  <jim@meyering.net>
46946
46947         Fix a bug in yesterday's change.
46948         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46949         p->fts_statp->st_dev would be used uninitialized.
46950         Ensures that we always call fts_stat on the very first entry.
46951         Miklos Szeredi reported that find -xdev stopped working.
46952
46953 2006-10-12  Bruno Haible  <bruno@clisp.org>
46954
46955         * gnulib-tool (func_get_automake_snippet): Append an automatically
46956         computed EXTRA_DIST augmentation.
46957         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46958         * modules/alloca-opt (Makefile.am): Likewise.
46959         * modules/allocsa (Makefile.am): Likewise.
46960         * modules/arcfour (Makefile.am): Likewise.
46961         * modules/arctwo (Makefile.am): Likewise.
46962         * modules/argmatch (Makefile.am): Likewise.
46963         * modules/argz (Makefile.am): Likewise.
46964         * modules/atexit (Makefile.am): Likewise.
46965         * modules/backupfile (Makefile.am): Likewise.
46966         * modules/byteswap (Makefile.am): Likewise.
46967         * modules/c-strtod (Makefile.am): Likewise.
46968         * modules/c-strtold (Makefile.am): Likewise.
46969         * modules/calloc (Makefile.am): Likewise.
46970         * modules/canon-host (Makefile.am): Likewise.
46971         * modules/canonicalize (Makefile.am): Likewise.
46972         * modules/chdir-long (Makefile.am): Likewise.
46973         * modules/chdir-safer (Makefile.am): Likewise.
46974         * modules/check-version (Makefile.am): Likewise.
46975         * modules/chown (Makefile.am): Likewise.
46976         * modules/cloexec (Makefile.am): Likewise.
46977         * modules/close-stream (Makefile.am): Likewise.
46978         * modules/closeout (Makefile.am): Likewise.
46979         * modules/crc (Makefile.am): Likewise.
46980         * modules/csharpexec (Makefile.am): Likewise.
46981         * modules/cycle-check (Makefile.am): Likewise.
46982         * modules/des (Makefile.am): Likewise.
46983         * modules/dev-ino (Makefile.am): Likewise.
46984         * modules/dirfd (Makefile.am): Likewise.
46985         * modules/dirname (Makefile.am): Likewise.
46986         * modules/dup2 (Makefile.am): Likewise.
46987         * modules/eealloc (Makefile.am): Likewise.
46988         * modules/error (Makefile.am): Likewise.
46989         * modules/euidaccess (Makefile.am): Likewise.
46990         * modules/exclude (Makefile.am): Likewise.
46991         * modules/exitfail (Makefile.am): Likewise.
46992         * modules/fcntl-safer (Makefile.am): Likewise.
46993         * modules/fcntl (Makefile.am): Likewise.
46994         * modules/file-type (Makefile.am): Likewise.
46995         * modules/fileblocks (Makefile.am): Likewise.
46996         * modules/filemode (Makefile.am): Likewise.
46997         * modules/filenamecat (Makefile.am): Likewise.
46998         * modules/fnmatch (Makefile.am): Likewise.
46999         * modules/fopen-safer (Makefile.am): Likewise.
47000         * modules/fpending (Makefile.am): Likewise.
47001         * modules/fprintftime (Makefile.am): Likewise.
47002         * modules/free (Makefile.am): Likewise.
47003         * modules/fsusage (Makefile.am): Likewise.
47004         * modules/ftruncate (Makefile.am): Likewise.
47005         * modules/fts (Makefile.am): Likewise.
47006         * modules/gc-arcfour (Makefile.am): Likewise.
47007         * modules/gc-des (Makefile.am): Likewise.
47008         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47009         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47010         * modules/gc-md4 (Makefile.am): Likewise.
47011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47012         * modules/gc-sha1 (Makefile.am): Likewise.
47013         * modules/gc (Makefile.am): Likewise.
47014         * modules/getaddrinfo (Makefile.am): Likewise.
47015         * modules/getcwd (Makefile.am): Likewise.
47016         * modules/getdelim (Makefile.am): Likewise.
47017         * modules/getdomainname (Makefile.am): Likewise.
47018         * modules/getgroups (Makefile.am): Likewise.
47019         * modules/gethostname (Makefile.am): Likewise.
47020         * modules/gethrxtime (Makefile.am): Likewise.
47021         * modules/getline (Makefile.am): Likewise.
47022         * modules/getloadavg (Makefile.am): Likewise.
47023         * modules/getlogin_r (Makefile.am): Likewise.
47024         * modules/getndelim2 (Makefile.am): Likewise.
47025         * modules/getopt (Makefile.am): Likewise.
47026         * modules/getpagesize (Makefile.am): Likewise.
47027         * modules/getpass-gnu (Makefile.am): Likewise.
47028         * modules/getpass (Makefile.am): Likewise.
47029         * modules/getsubopt (Makefile.am): Likewise.
47030         * modules/gettime (Makefile.am): Likewise.
47031         * modules/gettimeofday (Makefile.am): Likewise.
47032         * modules/getugroups (Makefile.am): Likewise.
47033         * modules/getusershell (Makefile.am): Likewise.
47034         * modules/glob (Makefile.am): Likewise.
47035         * modules/group-member (Makefile.am): Likewise.
47036         * modules/hard-locale (Makefile.am): Likewise.
47037         * modules/hash (Makefile.am): Likewise.
47038         * modules/hmac-md5 (Makefile.am): Likewise.
47039         * modules/hmac-sha1 (Makefile.am): Likewise.
47040         * modules/human (Makefile.am): Likewise.
47041         * modules/idcache (Makefile.am): Likewise.
47042         * modules/imaxabs (Makefile.am): Likewise.
47043         * modules/imaxdiv (Makefile.am): Likewise.
47044         * modules/inet_ntop (Makefile.am): Likewise.
47045         * modules/inet_pton (Makefile.am): Likewise.
47046         * modules/intprops (Makefile.am): Likewise.
47047         * modules/inttostr (Makefile.am): Likewise.
47048         * modules/inttypes (Makefile.am): Likewise.
47049         * modules/isapipe (Makefile.am): Likewise.
47050         * modules/javaversion (Makefile.am): Likewise.
47051         * modules/lchmod (Makefile.am): Likewise.
47052         * modules/lchown (Makefile.am): Likewise.
47053         * modules/localcharset (Makefile.am): Likewise.
47054         * modules/long-options (Makefile.am): Likewise.
47055         * modules/lstat (Makefile.am): Likewise.
47056         * modules/malloc (Makefile.am): Likewise.
47057         * modules/mathl (Makefile.am): Likewise.
47058         * modules/mbchar (Makefile.am): Likewise.
47059         * modules/md2 (Makefile.am): Likewise.
47060         * modules/md4 (Makefile.am): Likewise.
47061         * modules/md5 (Makefile.am): Likewise.
47062         * modules/memcasecmp (Makefile.am): Likewise.
47063         * modules/memchr (Makefile.am): Likewise.
47064         * modules/memcmp (Makefile.am): Likewise.
47065         * modules/memcoll (Makefile.am): Likewise.
47066         * modules/memcpy (Makefile.am): Likewise.
47067         * modules/memmem (Makefile.am): Likewise.
47068         * modules/memmove (Makefile.am): Likewise.
47069         * modules/mempcpy (Makefile.am): Likewise.
47070         * modules/memrchr (Makefile.am): Likewise.
47071         * modules/memset (Makefile.am): Likewise.
47072         * modules/memxor (Makefile.am): Likewise.
47073         * modules/mkancesdirs (Makefile.am): Likewise.
47074         * modules/mkdir-p (Makefile.am): Likewise.
47075         * modules/mkdir (Makefile.am): Likewise.
47076         * modules/mkdtemp (Makefile.am): Likewise.
47077         * modules/mkstemp (Makefile.am): Likewise.
47078         * modules/mktime (Makefile.am): Likewise.
47079         * modules/modechange (Makefile.am): Likewise.
47080         * modules/mountlist (Makefile.am): Likewise.
47081         * modules/nanosleep (Makefile.am): Likewise.
47082         * modules/obstack (Makefile.am): Likewise.
47083         * modules/openat (Makefile.am): Likewise.
47084         * modules/pagealign_alloc (Makefile.am): Likewise.
47085         * modules/pathmax (Makefile.am): Likewise.
47086         * modules/physmem (Makefile.am): Likewise.
47087         * modules/poll (Makefile.am): Likewise.
47088         * modules/posixtm (Makefile.am): Likewise.
47089         * modules/posixver (Makefile.am): Likewise.
47090         * modules/putenv (Makefile.am): Likewise.
47091         * modules/quote (Makefile.am): Likewise.
47092         * modules/quotearg (Makefile.am): Likewise.
47093         * modules/raise (Makefile.am): Likewise.
47094         * modules/read-file (Makefile.am): Likewise.
47095         * modules/readline (Makefile.am): Likewise.
47096         * modules/readlink (Makefile.am): Likewise.
47097         * modules/readtokens (Makefile.am): Likewise.
47098         * modules/readutmp (Makefile.am): Likewise.
47099         * modules/realloc (Makefile.am): Likewise.
47100         * modules/regex (Makefile.am): Likewise.
47101         * modules/rename-dest-slash (Makefile.am): Likewise.
47102         * modules/rename (Makefile.am): Likewise.
47103         * modules/rijndael (Makefile.am): Likewise.
47104         * modules/rmdir (Makefile.am): Likewise.
47105         * modules/rpmatch (Makefile.am): Likewise.
47106         * modules/safe-read (Makefile.am): Likewise.
47107         * modules/safe-write (Makefile.am): Likewise.
47108         * modules/same-inode (Makefile.am): Likewise.
47109         * modules/same (Makefile.am): Likewise.
47110         * modules/save-cwd (Makefile.am): Likewise.
47111         * modules/savedir (Makefile.am): Likewise.
47112         * modules/setenv (Makefile.am): Likewise.
47113         * modules/settime (Makefile.am): Likewise.
47114         * modules/sha1 (Makefile.am): Likewise.
47115         * modules/sig2str (Makefile.am): Likewise.
47116         * modules/snprintf (Makefile.am): Likewise.
47117         * modules/stat-macros (Makefile.am): Likewise.
47118         * modules/stat-time (Makefile.am): Likewise.
47119         * modules/stdbool (Makefile.am): Likewise.
47120         * modules/stdint (Makefile.am): Likewise.
47121         * modules/stdlib-safer (Makefile.am): Likewise.
47122         * modules/stpcpy (Makefile.am): Likewise.
47123         * modules/stpncpy (Makefile.am): Likewise.
47124         * modules/strcase (Makefile.am): Likewise.
47125         * modules/strcasestr (Makefile.am): Likewise.
47126         * modules/strchrnul (Makefile.am): Likewise.
47127         * modules/strcspn (Makefile.am): Likewise.
47128         * modules/strdup (Makefile.am): Likewise.
47129         * modules/strerror (Makefile.am): Likewise.
47130         * modules/strftime (Makefile.am): Likewise.
47131         * modules/strndup (Makefile.am): Likewise.
47132         * modules/strnlen (Makefile.am): Likewise.
47133         * modules/strpbrk (Makefile.am): Likewise.
47134         * modules/strsep (Makefile.am): Likewise.
47135         * modules/strstr (Makefile.am): Likewise.
47136         * modules/strtod (Makefile.am): Likewise.
47137         * modules/strtoimax (Makefile.am): Likewise.
47138         * modules/strtok_r (Makefile.am): Likewise.
47139         * modules/strtol (Makefile.am): Likewise.
47140         * modules/strtoll (Makefile.am): Likewise.
47141         * modules/strtoul (Makefile.am): Likewise.
47142         * modules/strtoull (Makefile.am): Likewise.
47143         * modules/strtoumax (Makefile.am): Likewise.
47144         * modules/strverscmp (Makefile.am): Likewise.
47145         * modules/sys_socket (Makefile.am): Likewise.
47146         * modules/sys_stat (Makefile.am): Likewise.
47147         * modules/sysexits (Makefile.am): Likewise.
47148         * modules/time_r (Makefile.am): Likewise.
47149         * modules/timegm (Makefile.am): Likewise.
47150         * modules/timespec (Makefile.am): Likewise.
47151         * modules/tmpfile-safer (Makefile.am): Likewise.
47152         * modules/trim (Makefile.am): Likewise.
47153         * modules/unistd-safer (Makefile.am): Likewise.
47154         * modules/unlinkdir (Makefile.am): Likewise.
47155         * modules/unlocked-io (Makefile.am): Likewise.
47156         * modules/userspec (Makefile.am): Likewise.
47157         * modules/utime (Makefile.am): Likewise.
47158         * modules/utimecmp (Makefile.am): Likewise.
47159         * modules/utimens (Makefile.am): Likewise.
47160         * modules/vasnprintf (Makefile.am): Likewise.
47161         * modules/vasprintf (Makefile.am): Likewise.
47162         * modules/vsnprintf (Makefile.am): Likewise.
47163         * modules/xalloc (Makefile.am): Likewise.
47164         * modules/xgetcwd (Makefile.am): Likewise.
47165         * modules/xnanosleep (Makefile.am): Likewise.
47166         * modules/xreadlink (Makefile.am): Likewise.
47167         * modules/xstrtod (Makefile.am): Likewise.
47168         * modules/xstrtol (Makefile.am): Likewise.
47169         * modules/xstrtold (Makefile.am): Likewise.
47170         * modules/yesno (Makefile.am): Likewise.
47171         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47172
47173 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * modules/error (Makefile.am): Distribute files through
47176         EXTRA_DIST, not lib_SOURCES.
47177
47178 2006-10-12  Eric Blake  <ebb9@byu.net>
47179
47180         * modules/error (Makefile.am): Distribute files in /lib.
47181         * modules/obstack (Makefile.am): Likewise.
47182
47183 2006-10-12  Bruno Haible  <bruno@clisp.org>
47184
47185         * modules/acl (Makefile.am): Distribute all files in lib/ through
47186         EXTRA_DIST.
47187         * modules/arcfour (Makefile.am): Likewise.
47188         * modules/arctwo (Makefile.am): Likewise.
47189         * modules/argmatch (Makefile.am): Likewise.
47190         * modules/argz (Makefile.am): Likewise.
47191         * modules/atexit (Makefile.am): Likewise.
47192         * modules/backupfile (Makefile.am): Likewise.
47193         * modules/c-strtod (Makefile.am): Likewise.
47194         * modules/c-strtold (Makefile.am): Likewise.
47195         * modules/calloc (Makefile.am): Likewise.
47196         * modules/canon-host (Makefile.am): Likewise.
47197         * modules/canonicalize (Makefile.am): Likewise.
47198         * modules/chdir-long (Makefile.am): Likewise.
47199         * modules/chdir-safer (Makefile.am): Likewise.
47200         * modules/check-version (Makefile.am): Likewise.
47201         * modules/chown (Makefile.am): Likewise.
47202         * modules/cloexec (Makefile.am): Likewise.
47203         * modules/close-stream (Makefile.am): Likewise.
47204         * modules/closeout (Makefile.am): Likewise.
47205         * modules/crc (Makefile.am): Likewise.
47206         * modules/cycle-check (Makefile.am): Likewise.
47207         * modules/des (Makefile.am): Likewise.
47208         * modules/dirfd (Makefile.am): Likewise.
47209         * modules/dirname (Makefile.am): Likewise.
47210         * modules/dup2 (Makefile.am): Likewise.
47211         * modules/euidaccess (Makefile.am): Likewise.
47212         * modules/exclude (Makefile.am): Likewise.
47213         * modules/exitfail (Makefile.am): Likewise.
47214         * modules/fcntl-safer (Makefile.am): Likewise.
47215         * modules/file-type (Makefile.am): Likewise.
47216         * modules/fileblocks (Makefile.am): Likewise.
47217         * modules/filemode (Makefile.am): Likewise.
47218         * modules/filenamecat (Makefile.am): Likewise.
47219         * modules/fnmatch (Makefile.am): Likewise.
47220         * modules/fopen-safer (Makefile.am): Likewise.
47221         * modules/fpending (Makefile.am): Likewise.
47222         * modules/fprintftime (Makefile.am): Likewise.
47223         * modules/free (Makefile.am): Likewise.
47224         * modules/fsusage (Makefile.am): Likewise.
47225         * modules/ftruncate (Makefile.am): Likewise.
47226         * modules/fts (Makefile.am): Likewise.
47227         * modules/gc (Makefile.am): Likewise.
47228         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47229         * modules/getaddrinfo (Makefile.am): Likewise.
47230         * modules/getcwd (Makefile.am): Likewise.
47231         * modules/getdelim (Makefile.am): Likewise.
47232         * modules/getdomainname (Makefile.am): Likewise.
47233         * modules/getgroups (Makefile.am): Likewise.
47234         * modules/gethostname (Makefile.am): Likewise.
47235         * modules/gethrxtime (Makefile.am): Likewise.
47236         * modules/getline (Makefile.am): Likewise.
47237         * modules/getloadavg (Makefile.am): Likewise.
47238         * modules/getlogin_r (Makefile.am): Likewise.
47239         * modules/getopt (Makefile.am): Likewise.
47240         * modules/getpass (Makefile.am): Likewise.
47241         * modules/getpass-gnu (Makefile.am): Likewise.
47242         * modules/getsubopt (Makefile.am): Likewise.
47243         * modules/gettime (Makefile.am): Likewise.
47244         * modules/gettimeofday (Makefile.am): Likewise.
47245         * modules/getugroups (Makefile.am): Likewise.
47246         * modules/getusershell (Makefile.am): Likewise.
47247         * modules/glob (Makefile.am): Likewise.
47248         * modules/group-member (Makefile.am): Likewise.
47249         * modules/hard-locale (Makefile.am): Likewise.
47250         * modules/hash (Makefile.am): Likewise.
47251         * modules/hmac-md5 (Makefile.am): Likewise.
47252         * modules/hmac-sha1 (Makefile.am): Likewise.
47253         * modules/human (Makefile.am): Likewise.
47254         * modules/idcache (Makefile.am): Likewise.
47255         * modules/imaxabs (Makefile.am): Likewise.
47256         * modules/imaxdiv (Makefile.am): Likewise.
47257         * modules/inet_ntop (Makefile.am): Likewise.
47258         * modules/inet_pton (Makefile.am): Likewise.
47259         * modules/inttostr (Makefile.am): Likewise.
47260         * modules/isapipe (Makefile.am): Likewise.
47261         * modules/lchown (Makefile.am): Likewise.
47262         * modules/long-options (Makefile.am): Likewise.
47263         * modules/lstat (Makefile.am): Likewise.
47264         * modules/malloc (Makefile.am): Likewise.
47265         * modules/mathl (Makefile.am): Likewise.
47266         * modules/mbchar (Makefile.am): Likewise.
47267         * modules/md2 (Makefile.am): Likewise.
47268         * modules/md4 (Makefile.am): Likewise.
47269         * modules/md5 (Makefile.am): Likewise.
47270         * modules/memcasecmp (Makefile.am): Likewise.
47271         * modules/memchr (Makefile.am): Likewise.
47272         * modules/memcmp (Makefile.am): Likewise.
47273         * modules/memcoll (Makefile.am): Likewise.
47274         * modules/memcpy (Makefile.am): Likewise.
47275         * modules/memmem (Makefile.am): Likewise.
47276         * modules/memmove (Makefile.am): Likewise.
47277         * modules/mempcpy (Makefile.am): Likewise.
47278         * modules/memrchr (Makefile.am): Likewise.
47279         * modules/memset (Makefile.am): Likewise.
47280         * modules/memxor (Makefile.am): Likewise.
47281         * modules/mkancesdirs (Makefile.am): Likewise.
47282         * modules/mkdir (Makefile.am): Likewise.
47283         * modules/mkdir-p (Makefile.am): Likewise.
47284         * modules/mkdtemp (Makefile.am): Likewise.
47285         * modules/mkstemp (Makefile.am): Likewise.
47286         * modules/mktime (Makefile.am): Likewise.
47287         * modules/modechange (Makefile.am): Likewise.
47288         * modules/mountlist (Makefile.am): Likewise.
47289         * modules/nanosleep (Makefile.am): Likewise.
47290         * modules/openat (Makefile.am): Likewise.
47291         * modules/pagealign_alloc (Makefile.am): Likewise.
47292         * modules/physmem (Makefile.am): Likewise.
47293         * modules/poll (Makefile.am): Likewise.
47294         * modules/posixtm (Makefile.am): Likewise.
47295         * modules/posixver (Makefile.am): Likewise.
47296         * modules/putenv (Makefile.am): Likewise.
47297         * modules/quote (Makefile.am): Likewise.
47298         * modules/quotearg (Makefile.am): Likewise.
47299         * modules/raise (Makefile.am): Likewise.
47300         * modules/read-file (Makefile.am): Likewise.
47301         * modules/readline (Makefile.am): Likewise.
47302         * modules/readlink (Makefile.am): Likewise.
47303         * modules/readtokens (Makefile.am): Likewise.
47304         * modules/readutmp (Makefile.am): Likewise.
47305         * modules/realloc (Makefile.am): Likewise.
47306         * modules/regex (Makefile.am): Likewise.
47307         * modules/rename (Makefile.am): Likewise.
47308         * modules/rename-dest-slash (Makefile.am): Likewise.
47309         * modules/rijndael (Makefile.am): Likewise.
47310         * modules/rmdir (Makefile.am): Likewise.
47311         * modules/rpmatch (Makefile.am): Likewise.
47312         * modules/safe-read (Makefile.am): Likewise.
47313         * modules/safe-write (Makefile.am): Likewise.
47314         * modules/same (Makefile.am): Likewise.
47315         * modules/save-cwd (Makefile.am): Likewise.
47316         * modules/savedir (Makefile.am): Likewise.
47317         * modules/setenv (Makefile.am): Likewise.
47318         * modules/settime (Makefile.am): Likewise.
47319         * modules/sha1 (Makefile.am): Likewise.
47320         * modules/sig2str (Makefile.am): Likewise.
47321         * modules/snprintf (Makefile.am): Likewise.
47322         * modules/stdlib-safer (Makefile.am): Likewise.
47323         * modules/stpcpy (Makefile.am): Likewise.
47324         * modules/stpncpy (Makefile.am): Likewise.
47325         * modules/strcase (Makefile.am): Likewise.
47326         * modules/strcasestr (Makefile.am): Likewise.
47327         * modules/strchrnul (Makefile.am): Likewise.
47328         * modules/strcspn (Makefile.am): Likewise.
47329         * modules/strdup (Makefile.am): Likewise.
47330         * modules/strerror (Makefile.am): Likewise.
47331         * modules/strftime (Makefile.am): Likewise.
47332         * modules/strndup (Makefile.am): Likewise.
47333         * modules/strnlen (Makefile.am): Likewise.
47334         * modules/strpbrk (Makefile.am): Likewise.
47335         * modules/strsep (Makefile.am): Likewise.
47336         * modules/strstr (Makefile.am): Likewise.
47337         * modules/strtod (Makefile.am): Likewise.
47338         * modules/strtoimax (Makefile.am): Likewise.
47339         * modules/strtok_r (Makefile.am): Likewise.
47340         * modules/strtol (Makefile.am): Likewise.
47341         * modules/strtoll (Makefile.am): Likewise.
47342         * modules/strtoul (Makefile.am): Likewise.
47343         * modules/strtoull (Makefile.am): Likewise.
47344         * modules/strtoumax (Makefile.am): Likewise.
47345         * modules/strverscmp (Makefile.am): Likewise.
47346         * modules/time_r (Makefile.am): Likewise.
47347         * modules/timegm (Makefile.am): Likewise.
47348         * modules/tmpfile-safer (Makefile.am): Likewise.
47349         * modules/unistd-safer (Makefile.am): Likewise.
47350         * modules/unlinkdir (Makefile.am): Likewise.
47351         * modules/userspec (Makefile.am): Likewise.
47352         * modules/utime (Makefile.am): Likewise.
47353         * modules/utimecmp (Makefile.am): Likewise.
47354         * modules/utimens (Makefile.am): Likewise.
47355         * modules/vasnprintf (Makefile.am): Likewise.
47356         * modules/vasprintf (Makefile.am): Likewise.
47357         * modules/vsnprintf (Makefile.am): Likewise.
47358         * modules/xalloc (Makefile.am): Likewise.
47359         * modules/xgetcwd (Makefile.am): Likewise.
47360         * modules/xnanosleep (Makefile.am): Likewise.
47361         * modules/xreadlink (Makefile.am): Likewise.
47362         * modules/xstrtod (Makefile.am): Likewise.
47363         * modules/xstrtol (Makefile.am): Likewise.
47364         * modules/xstrtold (Makefile.am): Likewise.
47365         * modules/yesno (Makefile.am): Likewise.
47366
47367 2006-10-12  Jim Meyering  <jim@meyering.net>
47368
47369         * m4/getloadavg.m4: Revert the change below.
47370
47371         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47372         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47373         fail with a symlink, which is what coreutils' ./bootstrap now
47374         creates by default.
47375
47376 2006-10-12  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47379         mingw.
47380         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47381         MSVC and mingw explicitly.
47382
47383 2006-10-11  Simon Josefsson  <jas@extundo.com>
47384             Bruno Haible  <bruno@clisp.org>
47385
47386         Add support for multiple gnulib-tool invocations in the scope of a
47387         single configure.ac file.
47388         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47389         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47390         with the same contents as the _LIBADD variable.
47391         (func_emit_initmacro_start, func_emit_initmacro_end,
47392         func_emit_initmacro_done): New functions.
47393         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47394         gl_LIBOBJS and gl_LTLIBOBJS.
47395
47396 2006-10-11  Bruno Haible  <bruno@clisp.org>
47397
47398         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47399         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47400         autoreconf. Instead, invoke autopoint explicitly but move back the
47401         *.m4 files from gnulib.
47402
47403 2006-10-11  Bruno Haible  <bruno@clisp.org>
47404
47405         * gnulib-tool (func_usage): Make module names after --create-testdir
47406         optional.
47407         (func_create_testdir): If no module was specified, use nearly all
47408         modules.
47409
47410 2006-10-12  Jim Meyering  <jim@meyering.net>
47411
47412         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47413         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47414         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47415         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47416         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47417         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47418         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47419         (fts_set_stat_required): New function.
47420         (fts_open): Defer the calls to fts_stat, if possible or requested.
47421         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47422         into fts_stat itself.
47423         (fts_read): Perform any required (deferred) fts_stat call.
47424         (fts_build): Likewise, for the directory we're about to open and read.
47425         In the readdir loop, carefully decide whether each entry will require
47426         an eventual call to fts_stat, using dirent.d_type info if available.
47427         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47428         a command line argument into this function.  Update all callers.
47429         Map a return value of FTS_DOT to FTS_D for a command line argument.
47430         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47431         Thanks to Miklos Szeredi for his tenacity and for the initial
47432         bug report about "find" failing on a FUSE-based file system.
47433
47434         * lib/fts.c (fts_open): Use consistent indentation.
47435
47436 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47437
47438         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47439         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47440         reported by Jim Meyering.  All uses of cache variables renamed
47441         to match Autoconf's.
47442         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47443         the other one.
47444
47445         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47446         Fix misspelling in diagnostic.
47447
47448 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47449
47450         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47451         defined.  Problem reported by Matthew Woehlke.
47452
47453         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47454         Add support for Tandem NonStop R series.
47455         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47456         Use new macro.
47457
47458         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47459         (has_trailing_slash): Omit size arg; all callers changed.
47460         Omit 'inline', since it doesn't help performance and we'd
47461         need to configure it.
47462         Don't count //, ///, etc. as having a trailing slash.
47463         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47464         (rpl_rename_dest_slash): On failure, use rename's errno rather
47465         than (in some cases) an incorrect or junk errno.
47466         Simplify code by removing need to compute length; this does
47467         cause it to make two passes instead of one over the file name,
47468         but it's worth it.
47469
47470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47471         change, since Autoconf's version may no longer be appropriate now
47472         that we are using CVS Autoconf's version.  Add support for Tandem.
47473
47474 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47475             Bruno Haible  <bruno@clisp.org>
47476
47477         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47478         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47479         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47480         gl_AC_TYPE_LONG_LONG.
47481
47482         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47483         instead of HAVE_LONG_LONG.
47484         * lib/printf-args.c (printf_fetchargs): Likewise.
47485         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47486         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47488         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47489         gl_AC_TYPE_LONG_LONG.
47490
47491 2006-10-11  Bruno Haible  <bruno@clisp.org>
47492
47493         * m4/longlong.m4: Add comments.
47494         * m4/ulonglong.m4: Likewise.
47495
47496 2006-10-10  Bruno Haible  <bruno@clisp.org>
47497
47498         Make it possible to #define stpcpy, strdup to aliases.
47499         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47500         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47501
47502 2006-10-10  Bruno Haible  <bruno@clisp.org>
47503
47504         Make it possible to #define gcd to an alias.
47505         * lib/gcd.c: Include config.h.
47506
47507 2006-10-10  Bruno Haible  <bruno@clisp.org>
47508
47509         Make it possible to #define c_isascii to an alias.
47510         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47511         defined. Undefine the macros before defining them, to avoid gcc
47512         warnings.
47513         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47514         define NO_C_CTYPE_MACROS early.
47515
47516 2006-10-10  Bruno Haible  <bruno@clisp.org>
47517
47518         Make it possible to #define set_program_name to an alias.
47519         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47520         ENABLE_RELOCATABLE early.
47521
47522 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47523
47524         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47525         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47526         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47527         More generally, don't assume that 64-bit signed int is available
47528         if unsigned int is, and vice versa.
47529         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47530         unsigned symbols, not on their signed counterparts.
47531         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47532         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47533         (UINT64_C, UINTMAX_C):
47534         Likewise.
47535         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47536         unsigned counterparts.
47537         (Have_long_long, Unsigned): New macros.
47538         (Int): Renamed from INT.
47539         (strtoimax): Use the new macros.
47540         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47541         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47542         * modules/inttypes (inttypes.h): Substitute
47543         HAVE_UNSIGNED_LONG_LONG_INT.
47544         * modules/stdint (stdint.h): Likewise.
47545         (Files): Add m4/ulonglong.m4.
47546
47547 2006-10-10  Bruno Haible  <bruno@clisp.org>
47548
47549         Fix a gcc -Wshadow warning.
47550         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47551         to 'bucket'.
47552         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47553         gl_linked_indexof_from_to): Likewise.
47554         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47555         Likewise.
47556         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47557         Likewise.
47558         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47559         Reported by Eric Blake.
47560
47561 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47562
47563         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47564         for NetBSD.  Problem reported by Bruno Haible.
47565
47566 2006-10-09  Jim Meyering  <jim@meyering.net>
47567
47568         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47569         Patch from Bruno Haible.
47570
47571 2006-10-09  Jim Meyering  <jim@meyering.net>
47572
47573         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47574         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47575         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47576
47577 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         Don't include <config.h> twice; this doesn't work in some cases,
47580         e.g., when config.h has "#define intmax_t long long int" and
47581         we include <config.h>, <inttypes.h>, <config.h> in that order.
47582         Problem reported by Matthew Woehlke in:
47583         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47584         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47585         * lib/fts-cycle.c: Don't include config.h.
47586         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47587         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47588         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47589         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47590         inttypes.h.
47591         * lib/xstrtoumax.c: Likewise.
47592         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47593         __strtol and the like, so that this module is more like its siblings.
47594         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47595         Remove; no longer needed now that we assume gnulib inttypes.h.
47596
47597 2006-10-08  Bruno Haible  <bruno@clisp.org>
47598
47599         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47600         option.
47601
47602 2006-10-07  Jim Meyering  <jim@meyering.net>
47603
47604         * modules/inttypes (inttypes.h): Revert what seems to have been
47605         an inadvertent part of today's change: use "|", not "/" in the
47606         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47607
47608 2006-10-07  Bruno Haible  <bruno@clisp.org>
47609
47610         * modules/sublist: New file.
47611
47612 2006-10-07  Bruno Haible  <bruno@clisp.org>
47613
47614         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47615         * modules/argz (argz.h): Likewise.
47616         * modules/arpa_inet (arpa/inet.h): Likewise.
47617         * modules/byteswap (byteswap.h): Likewise.
47618         * modules/configmake (configmake.h): Likewise.
47619         * modules/fcntl (fcntl.h): Likewise.
47620         * modules/fnmatch (fnmatch.h): Likewise.
47621         * modules/getopt (getopt.h): Likewise.
47622         * modules/glob (glob.h): Likewise.
47623         * modules/inttypes (inttypes.h): Likewise.
47624         * modules/netinet_in (netinet/in.h): Likewise.
47625         * modules/poll (poll.h): Likewise.
47626         * modules/stdbool (stdbool.h): Likewise.
47627         * modules/stdint (stdint.h): Likewise.
47628         * modules/sys_select (sys/select.h): Likewise.
47629         * modules/sys_socket (sys/socket.h): Likewise.
47630         * modules/sys_stat (sys/stat.h): Likewise.
47631         * modules/sysexits (sysexits.h): Likewise.
47632         * modules/unistd (unistd.h): Likewise.
47633         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47634         Add a "DO NOT EDIT" comment to the generated file.
47635         (func_import): Likewise for gnulib-comp.m4.
47636
47637 2006-10-07  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/gl_sublist.h: New file.
47640         * lib/gl_sublist.c: New file.
47641
47642 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47643
47644         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47645         name (relative to the original working directory) and the file
47646         name component (relative to the temporary working directory).  All
47647         callers changed.
47648         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47649         * lib/mkdir-p.c (make_dir_parents): Likewise.
47650         * lib/mkdir-p.h (make_dir_parents): Likewise.
47651
47652 2006-10-06  Eric Blake  <ebb9@byu.net>
47653
47654         Define several macros for use by the clean-temp module.
47655         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47656         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47657         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47658
47659         * lib/clean-temp.h (close_stream_temp): New declaration.
47660         * lib/clean-temp.c (includes): Pull in headers according to what
47661         other modules are in use.
47662         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47663
47664 2006-10-06  Bruno Haible  <bruno@clisp.org>
47665
47666         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47667         instead of fopen, fwriteerror.
47668
47669 2006-10-06  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47672         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47673         int.
47674         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47675         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47676         Return an error indicator.
47677         Suggested by Eric Blake.
47678
47679 2006-10-06  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47682         Reported by Eric Blake.
47683
47684 2006-10-06  Bruno Haible  <bruno@clisp.org>
47685
47686         * modules/closeout (Description): Mention stderr too.
47687
47688 2006-10-06  Bruno Haible  <bruno@clisp.org>
47689         and Paul Eggert  <eggert@cs.ucla.edu>
47690
47691         * lib/closeout.c (close_stdout): Also close stderr.
47692         * lib/closeout.h: Update comment.
47693
47694 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47695
47696         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47697         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47698         * lib/dirchownmod.c: Include lchown.h.
47699         * lib/lchown.c: Don't include files that lchown.h now includes.
47700         Don't declare chown, since lchown.h now does that.
47701         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47702         (lchown): Define to rpl_chown if lchown is declared but
47703         does not exist.  Declare using a prototype if lchown is not
47704         declared.  Add a copyright notice.
47705         * lib/mkstemp.h: Include <unistd.h>.
47706         * lib/openat.c: Include lchown.h.
47707
47708         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47709         we now test for that separately.
47710         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47711         rather than O_NOFOLLOW, when testing whether it's possible to
47712         avoid a race condition reliably.
47713         * lib/savewd.c (savewd_chdir): Likewise.
47714
47715         Remove macros that are no longer needed now that stdint.h is
47716         reliable.
47717         * lib/fsusage.c (UINTMAX_MAX): Remove.
47718         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47719         * lib/utimecmp.c (SIZE_MAX): Remove.
47720
47721         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47722
47723         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47724         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47725         O_NOATIME works.
47726
47727 2006-10-05  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/gl_list.h (gl_sortedlist_search_from_to,
47730         gl_sortedlist_indexof_from_to): New declarations.
47731         (gl_list_implementation): New fields sortedlist_search_from_to,
47732         sortedlist_indexof_from_to.
47733         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47734         inline functions.
47735         * lib/gl_list.c (gl_sortedlist_search_from_to,
47736         gl_sortedlist_indexof_from_to): New functions.
47737         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47738         function.
47739         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47740         (gl_array_sortedlist_search_from_to): New function.
47741         (gl_array_list_implementation): Update.
47742         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47743         function.
47744         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47745         (gl_carray_sortedlist_search_from_to): New function.
47746         (gl_carray_list_implementation): Update.
47747         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47748         gl_linked_sortedlist_indexof_from_to): New functions.
47749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47751         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47752         gl_tree_sortedlist_indexof_from_to): New functions.
47753         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47754         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47755         Update.
47756         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47757         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47758         Update.
47759
47760 2006-10-05  Bruno Haible  <bruno@clisp.org>
47761
47762         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47763         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47764         (struct gl_list_implementation): Add fields search_from_to,
47765         indexof_from_to. Remove fields search, indexof.
47766         (gl_list_search): Use the search_from_to method.
47767         (gl_list_search_from, gl_list_search_from_to): New functions.
47768         (gl_list_indexof): Use the indexof_from_to method.
47769         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47770         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47771         (gl_list_search_from, gl_list_search_from_to): New functions.
47772         (gl_list_indexof): Use the indexof_from_to method.
47773         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47774         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47775         gl_array_indexof. Add start_index, end_index arguments.
47776         (gl_array_search_from_to): Renamed from gl_array_search. Add
47777         start_index, end_index arguments.
47778         (gl_array_remove, gl_array_list_implementation): Update.
47779         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47780         gl_carray_indexof. Add start_index, end_index arguments.
47781         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47782         start_index, end_index arguments.
47783         (gl_carray_remove, gl_carray_list_implementation): Update.
47784         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47785         gl_linked_search. Add start_index, end_index arguments.
47786         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47787         start_index, end_index arguments.
47788         (gl_linked_remove): Update.
47789         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47790         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47791         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47792         field to 'size_t'.
47793         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47794         gl_tree_search. Add start_index, end_index arguments.
47795         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47796         start_index, end_index arguments.
47797         (gl_tree_remove): Update.
47798         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47799         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47800         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47801         function.
47802         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47803         gl_tree_search. Add start_index, end_index arguments.
47804         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47805         start_index, end_index arguments.
47806         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47807         Update.
47808         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47809
47810 2006-10-05  Bruno Haible  <bruno@clisp.org>
47811
47812         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47813
47814         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47815         fwriteerror_temp): New declarations.
47816         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47817         (descriptors): New variable.
47818         (cleanup): First, close the descriptors.
47819         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47820         fclose_temp, fwriteerror_temp): New functions.
47821
47822 2006-10-04  Jim Meyering  <jim@meyering.net>
47823
47824         * lib/fts.c (fts_open): Tiny comment change.
47825
47826 2006-10-04  Bruno Haible  <bruno@clisp.org>
47827
47828         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47829         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47830         gl_LOCK_BODY.
47831         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47832         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47833         gl_LOCK_EARLY_BODY.
47834         (gl_LOCK): Require gl_LOCK_BODY.
47835
47836 2006-10-04  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47839         (gl_oset_search_atleast): New declaration.
47840         (struct gl_oset_implementation): Add field 'search_atleast'.
47841         (gl_oset_search_atleast): New inline function.
47842         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47843         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47844         (gl_array_oset_implementation): Update.
47845         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47846         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47847         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47848
47849 2006-10-04  Bruno Haible  <bruno@clisp.org>
47850
47851         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47852
47853 2006-10-03  Bruno Haible  <bruno@clisp.org>
47854
47855         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47856         from gl_avltreehash_list_implementation.
47857
47858 2006-10-03  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/gl_oset.c (gl_oset_add): Fix return type.
47861
47862 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47863
47864         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47865
47866 2006-10-02  Eric Blake  <ebb9@byu.net>
47867
47868         * modules/strnlen (Depends-on): Add extensions.
47869
47870 2006-10-02  Eric Blake  <ebb9@byu.net>
47871
47872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47873         definition in 2.60+.
47874
47875 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47876
47877         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47878         checks.
47879
47880 2006-10-02  Bruno Haible  <bruno@clisp.org>
47881
47882         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47883         to the AUTOMAKE_OPTIONS.
47884         Reported by Jim Meyering.
47885
47886 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         Work around bug in Solaris 10 /proc file system:
47889         /proc/self/fd/NNN/.. isn't the parent directory of
47890         the directory whose file descriptor is NNN.  This needs to
47891         be worked around at run time, not compile time, since a
47892         program might be built on Solaris 8, where things work, and
47893         run on Solaris 10.
47894         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47895         to use the following interface instead:
47896         (OPENAT_BUFFER_SIZE): New macro.
47897         (openat_proc_name): New function.
47898         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47899         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47900         Likewise.
47901         * lib/openat-proc.c: New file.
47902         * modules/openat (Files): Add lib/openat-proc.c.
47903         (Depends-on): Add same-inode, stdbool.
47904         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47905
47906 2006-09-29  Bruno Haible  <bruno@clisp.org>
47907
47908         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47909         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47910         argument. Set stdout_closed before testing for ferror, not after.
47911         (fwriteerror, fwriteerror_no_ebadf): New functions.
47912
47913 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47914
47915         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47916
47917 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47918
47919         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47920         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47921
47922 2006-09-28  Jim Meyering  <jim@meyering.net>
47923
47924         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47925         Include <unistd.h>.
47926
47927 2006-09-28  Bruno Haible  <bruno@clisp.org>
47928
47929         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47930         * modules/linkedhash-list (Depends-on): Likewise.
47931         * modules/rbtreehash-list (Depends-on): Likewise.
47932
47933 2006-09-28  Bruno Haible  <bruno@clisp.org>
47934
47935         * lib/strndup.h: Simplify the redefinition of strndup.
47936         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47937         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47938
47939 2006-09-28  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47942         * lib/gl_linkedhash_list.c: Likewise.
47943         * lib/gl_rbtreehash_list.c: Likewise.
47944
47945 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47948         getaddrinfo.
47949
47950         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47951         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47952         it causes <stdio_ext.h> to cause a compile-time error.
47953         Problem reported by Nelson H. F. Beebe.
47954         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47955         of HAVE_DECL___PENDING.
47956
47957         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47958         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47959         declaration.
47960
47961 2006-09-27  Jim Meyering  <jim@meyering.net>
47962
47963         This file could end up with a definition for a function
47964         named __strndup, rather than rpl_strndup on a system with
47965         incomplete weak_alias support.
47966         * lib/strndup.c (strndup): Rename from __strndup.
47967         Remove #defines that used to map __strndup to strndup.
47968         Don't use K&R prototypes.
47969         Remove LIBC-related code, since this file is not sync'd with glibc.
47970         * lib/strndup.h: Revamp, accordingly.
47971         * m4/strndup.m4: Modernize.
47972
47973 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47974
47975         * modules/savewd (Depends-on): Add 'raise'.
47976         * lib/savewd.c: Include <signal.h>, for 'raise'.
47977
47978 2006-09-26  Jim Meyering  <jim@meyering.net>
47979
47980         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47981         when we detect Darwin 8.7.0's acl_get_file bug.
47982         Rearrange to perform the new (below) run-test while $LIBS
47983         contains any acl-related library.  Set USE_ACL at the end.
47984         (gl_ACL_GET_FILE): New function.
47985
47986 2006-09-26  Eric Blake  <ebb9@byu.net>
47987
47988         * lib/verror.c: Include <config.h> unconditionally.
47989
47990 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47991
47992         * modules/clock-time (Maintainer): Add self.
47993         * modules/getlogin_r (Depends-on): Add extensions.
47994
47995 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47996
47997         * modules/clock-time: New module.
47998         * modules/nanosleep (Depends-on): Add clock-time.
47999         * modules/gethrxtime (Depends-on): Likewise.
48000         * modules/gettime (Depends-on): Likewise.
48001         * modules/settime (Depends-on): Likewise.
48002
48003         * modules/fts-lgpl: Depend on openat.
48004         * modules/mkancesdirs: Depend on savewd.
48005         * modules/mkdir-p: Likewise.
48006
48007 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48008
48009         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48010
48011         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48012         `gl_have_arbitrary_file_name_length_limit' to
48013         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48014         actually works between configure runs.
48015
48016 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48017             Bruno Haible  <bruno@clisp.org>
48018
48019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48020
48021 2006-09-25  Jim Meyering  <jim@meyering.net>
48022
48023         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48024         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48025
48026 2006-09-25  Eric Blake  <ebb9@byu.net>
48027
48028         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48029         exec's in 2006-09-18 patch when shuffling fds.
48030
48031 2006-09-25  Bruno Haible  <bruno@clisp.org>
48032
48033         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48034         Reported by Jim Meyering.
48035
48036 2006-09-24  Jim Meyering  <jim@meyering.net>
48037
48038         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48039         compare a pointer against a literal "0".  That caused failures with
48040         at least HP-UX's hpcc.
48041
48042 2006-09-22  Simon Josefsson  <jas@extundo.com>
48043
48044         * modules/gc-sha1:
48045         * modules/gc-md4:
48046         * modules/gc-hmac-sha1:
48047         * modules/gc-hmac-md5:
48048         * modules/gc-des:
48049         * modules/gc-arcfour: Distribute more files.
48050
48051 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48052
48053         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48054         (gl_linked_iterator_from_to): Initialize struct completely.
48055         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48056         (gl_tree_iterator_from_to): Likewise
48057         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48058         * lib/gl_array_list.c [lint] (gl_array_iterator)
48059         (gl_array_iterator_from_to): Likewise.
48060         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48061         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48062         (gl_carray_iterator_from_to): Likewise.
48063
48064         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48065         * lib/md4.c (md4_process_block): Remove unused variable.
48066         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48067         parentheses for clarity.
48068
48069 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48070
48071         * modules/bison-i18n (Depends-on): Add gettext.
48072
48073 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48074
48075         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48076         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48077         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48078         also add missing comma that caused broken test.
48079         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48080         stdlib.h, for `abort'.
48081         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48082         variables.
48083         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48084         include unistd.h if present, for `rmdir'.
48085         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48086         variables.
48087         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48088         in the process include standard headers for prototypes.
48089         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48090         gets declared on GNU/Linux.
48091         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48092         unistd.h, for `rmdir'.
48093         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48094
48095         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48096         always true.
48097         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48098
48099         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48100
48101 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48102
48103         * gnulib-tool (func_version): Create output all at once.  This
48104         may help avoid triggering unnecessary SIGPIPEs, and at any
48105         rate it doesn't hurt.
48106
48107 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48108             Bruno Haible  <bruno@clisp.org>
48109
48110         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48111         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48112         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48113
48114         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48115         (gl_FUNC_VASPRINTF): Invoke it.
48116
48117 2006-09-22  Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48120         getloadavg.c as first argument.
48121
48122 2006-09-22  Bruno Haible  <bruno@clisp.org>
48123
48124         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48125         at the beginning of the gl_INIT macro.
48126         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48127         gl_GETLOADAVG.
48128
48129 2006-09-22  Bruno Haible  <bruno@clisp.org>
48130
48131         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48132         module.
48133         Suggested by Ralf Wildenhues.
48134
48135 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48136
48137         Import this patch from libc:
48138
48139         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48140
48141         * lib/regex_internal.c (re_string_reconstruct): Handle
48142         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48143         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48144         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48145         re_string_context_at.
48146
48147         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48148         now requires it.
48149         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48150         gl_REGEX now does it for us.
48151         (gl_REGEX): Add test taken from
48152         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48153
48154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48155         Check that large offsets work.  Modernize Autoconf usages.
48156         Prefer "yes" to mean a good thing rather than a bad.
48157         Don't put "#define mkstemp" in config.h, as this might interfere
48158         with standard system headers that "#define mkstemp mkstemp64".
48159
48160         * modules/mkstemp (Depends-on): Add extensions, so that
48161         mkstemp is visible on some platforms.
48162         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48163         (Include): Change to "mkstemp.h" from <stdlib.h>.
48164         (Files): Add mkstemp.h.
48165
48166         * lib/mkstemp.h: New file, since some standard headers
48167         #define mkstemp.
48168         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48169         Include "mkstemp.h".
48170         Make the _LIBC code resemble glibc original more,
48171         e.g., use K&R style.
48172         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48173         (mkstemp): Remove, since mkstemp.h does this for us.
48174         * lib/stdlib--.h: Include mkstemp.h.
48175
48176         Import this patch from libc:
48177
48178         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48179
48180         * lib/tempname.c (__gen_tempname): Change attempts_min
48181         into a macro.  Use preprocessor to decide how to initialize
48182         attempts [Coverity CID 67].
48183
48184 2006-09-20  Bruno Haible  <bruno@clisp.org>
48185
48186         * lib/mkdtemp.c: Import from libc.
48187         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48188                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48189                 attempts_min into a macro.  Use preprocessor to decide how to
48190                 initialize attempts [Coverity CID 67].
48191         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48192                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48193                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48194
48195 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48196
48197         * gnulib-tool (func_exit): New function, to allow to pass the
48198         exit status portably through the trap.  Use everywhere.
48199         (--help, --version): Signal a write error.
48200         (trap): catch SIGPIPE, for write errors.
48201         Exit at the end of the trap, with the correct exit status.
48202
48203 2006-09-19  Karl Berry  <karl@gnu.org>
48204
48205         * doc/gnulib.texi: note about the license texinfo files.
48206
48207 2006-09-19  Eric Blake  <ebb9@byu.net>
48208
48209         * gnulib-tool: Avoid space-tab.
48210
48211 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48214         that prevented coreutils 6.1 from building.  Problem reported
48215         by Petter Reinholdtsen.
48216
48217 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * gnulib-tool (avoidlist): Fix typo that broke options like
48220         --avoid=lock that are used by coreutils bootstrap.
48221
48222 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48223
48224         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48225         more systematically.
48226
48227 2006-09-18  Jim Meyering  <jim@meyering.net>
48228
48229         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48230
48231 2006-09-18  Bruno Haible  <bruno@clisp.org>
48232
48233         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48234
48235 2006-09-18  Bruno Haible  <bruno@clisp.org>
48236
48237         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48238         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48239         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48240         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48241         * m4/gettext.m4: Require autoconf >= 2.52.
48242         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48243         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48244         of gl_cv_header_inttypes_h.
48245
48246 2006-09-18  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/javaversion.c: Include configmake.h.
48249
48250 2006-09-18  Bruno Haible  <bruno@clisp.org>
48251
48252         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48253         avoid that the while loops be executed in a subshell.
48254
48255 2006-09-18  Bruno Haible  <bruno@clisp.org>
48256
48257         * MODULES.html.sh (func_module): Break long lines.
48258         Suggested by Bruce Korb <bkorb@gnu.org>.
48259
48260 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48261
48262         Speed up by a factor of 1.12.
48263         * gnulib-tool (nl): New variable.
48264         (func_import): Rewrite include directive extraction to only read each
48265         directive once.
48266
48267 2006-09-17  Bruno Haible  <bruno@clisp.org>
48268
48269         * modules/javaversion (Makefile.am): Remove DEFS setting.
48270         (Depends-on): Add configmake, for PKGDATADIR definition.
48271
48272 2006-09-17  Bruno Haible  <bruno@clisp.org>
48273
48274         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48275
48276 2006-09-17  Bruno Haible  <bruno@clisp.org>
48277
48278         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48279         (func_modules_transitive_closure, func_modules_add_dummy,
48280         func_modules_to_filelist, func_import, func_create_testdir,
48281         func_create_megatestdir, ...): Use it wherever possible.
48282         Suggested by Ralf Wildenhues.
48283
48284 2006-09-16  Karl Berry  <karl@gnu.org>
48285
48286         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48287         to avoid sectioning errors.
48288         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48289         [ifinfo]: blank line after @center-ed titles.
48290         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48291         Spell FSF address consistently with others.
48292         (These changes approved by rms.)
48293
48294 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48295
48296         Speed up by a factor of 1.61.
48297         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48298         already checked module names again.
48299
48300 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48301
48302         Speed up by a factor of 1.13.
48303         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48304         for new_files, and the input to func_add_or_update.
48305
48306 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48307
48308         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48309         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48310
48311 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         * modules/mkancesdirs (Depends-on): Add fcntl.
48314         * modules/savewd: New file.
48315         * MODULES.html.sh (File system functions): Add savewd.
48316
48317         * modules/configmake (Makefile.am): Add support for the
48318         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48319
48320 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48321
48322         * m4/savewd.m4: New file.
48323
48324 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48325
48326         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48327         (dirchownmod): New arg FD.  All callers changed.
48328         Use FD rather than opening the directory ourself, as opening is
48329         now the caller's responsibility.
48330         * lib/dirchownmod.h: Likewise.
48331         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48332         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48333         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48334         (test_dir): Remove.
48335         (mkancesdirs): Return length of prefix of FILE that has already
48336         been made, or -2 if there is a child doing the work.  Redo
48337         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48338         ".", and treat ".." specially since it might stray back into
48339         already-created areas.  Use a subprocess if necessary.  New arg
48340         WD; all users changed.  MAKE_DIR function should now return 1
48341         if it creates a directory that is not readable.  Return -2 if
48342         a child process is spun off.
48343         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48344         Adjust signature to match code.
48345         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48346         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48347         all users changed.
48348         * lib/savewd.c, lib/savewd.h: New files.
48349
48350 2006-09-15  Jim Meyering  <jim@meyering.net>
48351
48352         * modules/rename-dest-slash: New module.
48353         * MODULES.html.sh (posix_compat): Add it here.
48354
48355         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48356
48357 2006-09-15  Jim Meyering  <jim@meyering.net>
48358
48359         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48360         file.
48361
48362         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48363
48364 2006-09-15  Jim Meyering  <jim@meyering.net>
48365
48366         * lib/rename-dest-slash.c (has_trailing_slash): Use
48367         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48368         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48369         test before testing whether SRC is a directory.
48370         Suggestions from Bruno Haible.
48371
48372         Avoid a warning about an unused variable.
48373         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48374         into the #ifdef block where it's used.
48375
48376         * lib/rename-dest-slash.c: New file.
48377
48378 2006-09-14  Bruno Haible  <bruno@clisp.org>
48379
48380         * lib/allocsa.c: Include <config.h> unconditionally.
48381         * lib/asnprintf.c: Likewise.
48382         * lib/asprintf.c: Likewise.
48383         * lib/c-strcasecmp.c: Likewise.
48384         * lib/c-strcasestr.c: Likewise.
48385         * lib/c-strncasecmp.c: Likewise.
48386         * lib/c-strstr.c: Likewise.
48387         * lib/classpath.c: Likewise.
48388         * lib/clean-temp.c: Likewise.
48389         * lib/concatpath.c: Likewise.
48390         * lib/copy-file.c: Likewise.
48391         * lib/csharpcomp.c: Likewise.
48392         * lib/csharpexec.c: Likewise.
48393         * lib/execute.c: Likewise.
48394         * lib/fatal-signal.c: Likewise.
48395         * lib/findprog.c: Likewise.
48396         * lib/fwriteerror.c: Likewise.
48397         * lib/gl_array_list.c: Likewise.
48398         * lib/gl_array_oset.c: Likewise.
48399         * lib/gl_avltree_list.c: Likewise.
48400         * lib/gl_avltree_oset.c: Likewise.
48401         * lib/gl_avltreehash_list.c: Likewise.
48402         * lib/gl_carray_list.c: Likewise.
48403         * lib/gl_linked_list.c: Likewise.
48404         * lib/gl_linkedhash_list.c: Likewise.
48405         * lib/gl_list.c: Likewise.
48406         * lib/gl_oset.c: Likewise.
48407         * lib/gl_rbtree_list.c: Likewise.
48408         * lib/gl_rbtree_oset.c: Likewise.
48409         * lib/gl_rbtreehash_list.c: Likewise.
48410         * lib/imaxabs.c: Likewise.
48411         * lib/imaxdiv.c: Likewise.
48412         * lib/javacomp.c: Likewise.
48413         * lib/javaexec.c: Likewise.
48414         * lib/javaversion.c: Likewise.
48415         * lib/linebreak.c: Likewise.
48416         * lib/localcharset.c: Likewise.
48417         * lib/lock.c: Likewise.
48418         * lib/mbchar.c: Likewise.
48419         * lib/mbswidth.c: Likewise.
48420         * lib/mkdtemp.c: Likewise.
48421         * lib/pipe.c: Likewise.
48422         * lib/printf-args.c: Likewise.
48423         * lib/printf-parse.c: Likewise.
48424         * lib/progname.c: Likewise.
48425         * lib/progreloc.c: Likewise.
48426         * lib/readlink.c: Likewise.
48427         * lib/sh-quote.c: Likewise.
48428         * lib/stpcpy.c: Likewise.
48429         * lib/stpncpy.c: Likewise.
48430         * lib/strcasecmp.c: Likewise.
48431         * lib/strcasestr.c: Likewise.
48432         * lib/strcspn.c: Likewise.
48433         * lib/striconv.c: Likewise.
48434         * lib/strncasecmp.c: Likewise.
48435         * lib/strnlen1.c: Likewise.
48436         * lib/strstr.c: Likewise.
48437         * lib/strtok_r.c: Likewise.
48438         * lib/tls.c: Likewise.
48439         * lib/tmpdir.c: Likewise.
48440         * lib/unicodeio.c: Likewise.
48441         * lib/unsetenv.c: Likewise.
48442         * lib/vasnprintf.c: Likewise.
48443         * lib/vasprintf.c: Likewise.
48444         * lib/wait-process.c: Likewise.
48445         * lib/xallocsa.c: Likewise.
48446         * lib/xsetenv.c: Likewise.
48447         * lib/xstriconv.c: Likewise.
48448
48449 2006-09-13  Simon Josefsson  <jas@extundo.com>
48450
48451         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48452         that internally, suggested by Ralf Wildenhues
48453         <Ralf.Wildenhues@gmx.de>.
48454
48455 2006-09-13  Simon Josefsson  <jas@extundo.com>
48456
48457         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48458         @LIBOBJS@.
48459         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48460
48461 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48464         longer worry about uses that don't define HAVE_CONFIG_H.
48465         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48466         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48467         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48468         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48469         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48470         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48471         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48472         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48473         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48474         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48475         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48476         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48477         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48478         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48479         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48480         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48481         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48482         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48483         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48484         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48485         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48486         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48487         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48488         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48489         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48490         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48491         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48492         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48493         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48494         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48495         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48496         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48497         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48498         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48499         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48500         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48501         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48502         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48503         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48504         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48505         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48506         Likewise.
48507
48508 2006-09-13  Eric Blake  <ebb9@byu.net>
48509
48510         * lib/getopt.c: Fix typo in last commit.
48511
48512 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48513
48514         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48515         dgettext.
48516
48517 2006-09-12  Jim Meyering  <jim@meyering.net>
48518
48519         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48520         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48521         Reported by Nelson H. F. Beebe.
48522
48523 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48524
48525         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48526         program_invocation_name and program_invocation_short_name are
48527         initialized.
48528         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48529         and program_invocation_short_name to argp.h, so they are visible
48530         to user programs.
48531         * lib/argp.h: Likewise
48532
48533 2006-09-10  Bruno Haible  <bruno@clisp.org>
48534
48535         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48536         m4/inttypes_h.m4, m4/uintmax_t.m4.
48537
48538 2006-09-10  Bruno Haible  <bruno@clisp.org>
48539
48540         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48541         gl_AC_TYPE_UINTMAX_T.
48542
48543 2006-09-10  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48546
48547 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48548
48549         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48550         convention.  Text proposed by Bruno Haible.
48551         (struct argp_option): Document the use of N_() wrappers.
48552
48553         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48554         '\v', and translate the two parts separately, instead of feeding
48555         the whole string to gettext.  This allows to exclude
48556         '\v' from the strings visible to the translator by writing doc
48557         strings as N_("..") "\v" N_("..").
48558
48559 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48560
48561         * config/srclist.txt: Undo latest change; the bug was fixed.
48562
48563 2006-09-09  Bruno Haible  <bruno@clisp.org>
48564
48565         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48566         assignments if building a library without libtool.
48567         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48568         in func_emit_lib_Makefile_am.
48569         (func_import): When building a static library libfoo.a, arrange to
48570         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48571         (func_create_testdir): Likewise.
48572         * modules/gc (configure.ac, Makefile.am): If building statically,
48573         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48574         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48575         * modules/striconv (configure.ac, Makefile.am): Likewise.
48576         Based on a suggestion by Ralf Wildenhues.
48577
48578 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48579
48580         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48581         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48582         Also:
48583
48584         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48585         Add year_2050_test to catch glibc bug 2821
48586         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48587
48588         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48589         Prefer #ifdef to #if.
48590
48591         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48592         Return from 'main' instead of calling 'exit'.
48593
48594 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48595
48596         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48597         returned the maximum time_t value rather than (time_t) -1.
48598         Problem originally reported by William Bardwell
48599         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48600
48601         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48602         Moved to here ...
48603         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48604         ... from here.
48605
48606 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48607
48608         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48609         2821 is fixed.
48610
48611 2006-09-08  Jim Meyering  <jim@meyering.net>
48612
48613         Don't make generated files read-only.  That would bother too many
48614         people.  However, do retain the ability to work when targets are
48615         read-only: remove the destination and temporary files before writing
48616         them (when generated via sed or echo), or by using the -f option for
48617         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48618         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48619         * modules/byteswap, modules/configmake, modules/fcntl:
48620         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48621         * modules/localcharset, modules/netinet_in, modules/poll:
48622         * modules/stdbool, modules/stdint, modules/sys_select:
48623         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48624
48625 2006-09-08  Jim Meyering  <jim@meyering.net>
48626
48627         Avoid new build failure on FreeBSD 6.0.
48628         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48629         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48630         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48631
48632 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48633
48634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48635
48636 2006-09-07  Jim Meyering  <jim@meyering.net>
48637
48638         Fix global typo in last change: use chmod u-w, not chmod u-x.
48639         Spotted by Paul Eggert and Bruce Korb.
48640         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48641         * modules/byteswap, modules/configmake, modules/fcntl:
48642         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48643         * modules/localcharset, modules/netinet_in, modules/poll:
48644         * modules/stdbool, modules/stdint, modules/sys_select:
48645         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48646
48647 2006-09-06  Jim Meyering  <jim@meyering.net>
48648
48649         Make generated files be read-only.
48650         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48651         Ensure that each generated file is now read-only.
48652         * modules/argz: Likewise.
48653         * modules/arpa_inet: Likewise.
48654         * modules/byteswap: Likewise.
48655         * modules/configmake: Likewise.
48656         * modules/fcntl: Likewise.
48657         * modules/fnmatch: Likewise.
48658         * modules/getopt: Likewise.
48659         * modules/glob: Likewise.
48660         * modules/inttypes: Likewise.
48661         * modules/netinet_in: Likewise.
48662         * modules/poll: Likewise.
48663         * modules/stdbool: Likewise.
48664         * modules/stdint: Likewise.
48665         * modules/sys_select: Likewise.
48666         * modules/sys_socket: Likewise.
48667         * modules/sys_stat: Likewise.
48668         * modules/sysexits: Likewise.
48669         * modules/localcharset: Same as above, but continue using temporary
48670         file named "t-$@" (why different?) rather than the "$@-t" used
48671         everywhere else.
48672
48673         * modules/sysexits (Makefile.am): Replace literal occurrences
48674         of "sysexit.h" more readable, and more consistent, "$@".
48675
48676 2006-09-06  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/striconv: New file.
48679         * modules/xstriconv: New file.
48680         * MODULES.html.sh (Internationalization functions): Add striconv,
48681         xstriconv.
48682
48683 2006-09-06  Bruno Haible  <bruno@clisp.org>
48684
48685         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48686         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48687         not using libtool correctly.
48688
48689 2006-09-06  Bruno Haible  <bruno@clisp.org>
48690
48691         * lib/striconv.h: New file.
48692         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48693         iconvstring.c.
48694         * lib/xstriconv.h: New file.
48695         * lib/xstriconv.c: New file.
48696
48697 2006-09-06  Bruno Haible  <bruno@clisp.org>
48698
48699         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48700         lib_..._LDFLAGS.
48701
48702 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48703
48704         * lib/argz_.h: Sync from Libtool.
48705
48706         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48707                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48708
48709         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48710
48711 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48712
48713         * modules/trim: New file.
48714
48715 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48716
48717         * lib/trim.h: New file.
48718         * lib/trim.c: New file.
48719
48720 2006-09-05  Bruno Haible  <bruno@clisp.org>
48721
48722         * MODULES.html.sh (String handling): Add trim.
48723
48724 2006-09-04  Karl Berry  <karl@gnu.org>
48725
48726         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48727         until next release.
48728
48729 2006-09-03  Bruno Haible  <bruno@clisp.org>
48730
48731         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48732         correctly.
48733
48734 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48735
48736         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48737         not gl_GETLOADAVG.  Omit unneeded semicolons.
48738         Problems reported by Ralf Wildenhues in
48739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48740         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48741         at the end, which is the usual gnulib style.
48742
48743         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48744         of doing all the work ourselves.
48745         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48746         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48747
48748 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48749
48750         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48751         Problem reported by Ralf Wildenhues in
48752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48753
48754         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48755         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48756
48757 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48758
48759         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48760         yesterday's patch by changing test -n to test -z.
48761
48762 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48765         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48766         the former is now obsolescent.
48767
48768         * modules/chdir-long (Depends-on): Add fcntl.
48769
48770 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48771
48772         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48773         obsolescent, and programs should use gnulib instead.
48774         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48775         but with prefixes changed.
48776
48777 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48778
48779         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48780         or stdbool.h, because they might not exist while configuring.
48781
48782         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48783         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48784         does that for us.
48785         (O_DIRECTORY): Remove.
48786
48787 2006-08-31  Eric Blake  <ebb9@byu.net>
48788
48789         * gnulib-tool: Don't let emacs change spaces to TAB.
48790
48791 2006-08-31  Bruno Haible  <bruno@clisp.org>
48792
48793         * gnulib-tool: When calling func_import more than once, do it in a
48794         subshell.
48795         Reported by Eric Blake <ebb9@byu.net>.
48796
48797 2006-08-31  Bruno Haible  <bruno@clisp.org>
48798
48799         * gnulib-tool (nl): Remove variable.
48800         (sed_transform_lib_file): Use more robust test for config-h module.
48801         (func_import): Fix typo in 2006-08-25 patch.
48802
48803 2006-08-31  Bruno Haible  <bruno@clisp.org>
48804
48805         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48806         specified, augment Makefile.am variables instead of assigning them.
48807
48808 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48809
48810         Work around a bug in both the Linux and SunOS 64-bit kernels:
48811         nanosleep mishandles sleeps for longer than 2**31 seconds.
48812         Problem reported by Frank v Waveren in
48813         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48815         Check for nanosleep bug.
48816         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48817
48818 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         Work around a bug in both the Linux and SunOS 64-bit kernels:
48821         nanosleep mishandles sleeps for longer than 2**31 seconds.
48822         Problem reported by Frank v Waveren in
48823         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48824         * lib/nanosleep.c (BILLION): New constant.
48825         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48826         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48827         implementation.
48828
48829 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48830
48831         * modules/nanosleep (Depends-on): Add gettime.
48832
48833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48834         and Simon Josefsson  <jas@extundo.com>
48835         and Oskar Liljeblad  <oskar@osk.mine.nu>
48836
48837         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48838         * gnulib-tool (func_import): New license type 'unmodifiable license
48839         text'.
48840         * modules/fdl: Use it.  Longer description.
48841         * module/gpl, module/lgpl: New files.
48842
48843 2006-08-30  Jim Meyering  <jim@meyering.net>
48844
48845         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48846         shadowing the parameter.
48847
48848 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48849
48850         Sync from Libtool:
48851
48852         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48853
48854         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48855         sharing with gnulib.  Report by Eric Blake.
48856
48857 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48858
48859         * modules/isapipe: New file.
48860         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48861
48862 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         * modules/configmake (Makefile.am): Add a comment, and omit
48865         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48866         by Bruno Haible.
48867
48868 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48869
48870         * m4/isapipe.m4: New file.
48871
48872 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48873
48874         * lib/isapipe.c, lib/isapipe.h: New files.
48875
48876 2006-08-29  Jim Meyering  <jim@meyering.net>
48877
48878         * modules/configmake (Makefile.am): Make configmake.h depend on
48879         Makefile.  Otherwise, a stale configmake.h could hang around.
48880
48881 2006-08-29  Eric Blake  <ebb9@byu.net>
48882
48883         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48884         resolution of upstream bug 3044.
48885
48886 2006-08-29  Bruno Haible  <bruno@clisp.org>
48887
48888         * modules/localcharset (Depends-on): Add configmake.
48889         (Makefile.am): Remove setting of LIBDIR through DEFS.
48890
48891 2006-08-29  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48894         defined.
48895
48896 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48897
48898         * modules/fcntl: New file.
48899         * modules/chdir-safer (Depends-on): Add fcntl.
48900         * modules/fts: Likewise.
48901         * modules/mkdir-p: Likewise.
48902
48903         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48904         This undoes the most recent change, since we're now addressing the
48905         problem in a different way.
48906
48907         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48908         into output, since the output might be called Makefile.am even
48909         if $makefile_name is something different.
48910         (func_import): Use $makefile_am rather than
48911         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48912         empty.
48913
48914         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48915
48916 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48917
48918         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48919         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48920         recent change to stdint.m4, since we're now addressing the problem in a
48921         different way.
48922
48923 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48924
48925         * m4/fcntl_h.m4: New file.
48926
48927 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48928
48929         * lib/fcntl_.h: New file.
48930         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48931         the fcntl module.
48932         * lib/dirchownmod.c: Likewise.
48933         * lib/fts.c: Likewise.
48934
48935         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48936         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48937         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48938         just before including <inttypes.h>, to avoid circular inclusion.
48939
48940 2006-08-28  Jim Meyering  <jim@meyering.net>
48941
48942         * doc/visibility.texi: Actually read and correct the grammar of the
48943         sentence affected by yesterday's change.
48944
48945 2006-08-28  Eric Blake  <ebb9@byu.net>
48946
48947         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48948         needs wrapper.
48949
48950 2006-08-28  Eric Blake  <ebb9@byu.net>
48951
48952         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48953
48954 2006-08-28  Eric Blake  <ebb9@byu.net>
48955
48956         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48957
48958 2006-08-28  Bruno Haible  <bruno@clisp.org>
48959
48960         * modules/c-strstr: New file, from GNU gettext.
48961         * MODULES.html.sh (String handling): Add c-strstr.
48962
48963 2006-08-28  Bruno Haible  <bruno@clisp.org>
48964
48965         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48966         macros.
48967         Reported by Eric Blake.
48968
48969 2006-08-28  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48972         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48973         * lib/vasprintf.c: Include errno.h, limits.h.
48974         (EOVERFLOW): New fallback definition.
48975         (vasprintf): Test here whether the string length is > INT_MAX.
48976         * lib/vsnprintf.c: Include errno.h, limits.h.
48977         (EOVERFLOW): New fallback definition.
48978         (vsnprintf): Fix bug when generated string was too long for the buffer.
48979         Test here whether the string length is > INT_MAX.
48980
48981 2006-08-28  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/inttypes_.h (SCNX*): Remove definitions.
48984         Reported by Eric Blake.
48985
48986 2006-08-28  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/c-strstr.h: New file, from GNU gettext.
48989         * lib/c-strstr.c: New file, from GNU gettext.
48990
48991 2006-08-28  Bruno Haible  <bruno@clisp.org>
48992
48993         * gnulib-tool: Reorder some statements.
48994
48995 2006-08-28  Bruno Haible  <bruno@clisp.org>
48996
48997         * gnulib-tool: New option --makefile-name.
48998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48999         $makefile_name.
49000         (func_import): Write $makefile_name to the cache file, and read it from
49001         there unless explicitly specified. Use $makefile_name as file name
49002         instead of Makefile.am. Adjust the recommendations accordingly.
49003
49004 2006-08-28  Bruno Haible  <bruno@clisp.org>
49005
49006         * gnulib-tool (func_verify_module): Check against misapplying patch.
49007
49008 2006-08-28  Bruno Haible  <bruno@clisp.org>
49009
49010         * gnulib-tool (func_relativize, func_relconcat): New functions.
49011         Give an error if --local-dir is given with --update.
49012         Remove trailing slashes from $local_gnulib_dir.
49013         (func_import): Store the relativized $local_gnulib_dir in
49014         gnulib-cache.m4, and read it from there if not specified explicitly.
49015
49016 2006-08-28  Bruno Haible  <bruno@clisp.org>
49017
49018         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49019         is the current directory. Respect also $local_gnulib_dir.
49020
49021 2006-08-28  Bruno Haible  <bruno@clisp.org>
49022             Simon Josefsson  <jas@extundo.com>
49023
49024         BeOS portability.
49025         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49026
49027 2006-08-27  Jim Meyering  <jim@meyering.net>
49028
49029         * doc/visibility.texi: Remove duplicate word: "pointer".
49030
49031 2006-08-26  Bruno Haible  <bruno@clisp.org>
49032
49033         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49034         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49035         (Makefile.am): Create inttypes.h from inttypes_.h.
49036         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49037
49038         * modules/imaxabs: New file.
49039
49040         * modules/imaxdiv: New file.
49041
49042 2006-08-26  Bruno Haible  <bruno@clisp.org>
49043
49044         * m4/inttypes.m4: New file.
49045         * m4/_inttypes_h.m4: Remove file.
49046         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49047         PRI_MACROS_BROKEN.
49048         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49049
49050         * m4/imaxabs.m4: New file.
49051
49052         * m4/imaxdiv.m4: New file.
49053
49054 2006-08-26  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/inttypes_.h: New file.
49057         * lib/inttypes.h: Remove file.
49058         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49059
49060         * lib/imaxabs.c: New file.
49061
49062         * lib/imaxdiv.c: New file.
49063
49064 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49065
49066         New config-h module, so that "make" output needn't be cluttered
49067         by -DHAVE_CONFIG_H.
49068         * MODULES.html.sh (Support for building libraries and executables):
49069         Add config-h.
49070         * modules/config-h: New file.
49071         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49072         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49073         the config-h module is used.
49074
49075         New configmake module, so that "make" output needn't be cluttered
49076         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49077         * MODULES.html.sh (Support for building libraries and executables):
49078         Add configmake.
49079         * modules/configmake: New file.
49080
49081 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49082
49083         * m4/config-h.m4: New file.
49084
49085 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49086
49087         * config/srclist.txt: Add elisp-comp.
49088
49089 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49090
49091         * MODULES.html.sh (Support for building libraries and executables):
49092         Add elisp-comp.
49093         * build-aux/elisp-comp: New file.
49094         * modules/elisp-comp: New file.
49095
49096 2006-08-24  Bruno Haible  <bruno@clisp.org>
49097
49098         * gnulib-tool (func_create_testdir): Use non-default values of
49099         sourcebase and m4base.
49100
49101 2006-08-24  Bruno Haible  <bruno@clisp.org>
49102
49103         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49104         HTML structure.
49105
49106 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49107
49108         * modules/openat (Depends-on): Add lchown.
49109
49110 2006-08-23  Bruno Haible  <bruno@clisp.org>
49111
49112         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49113         of gl_LOCK_EARLY instead of gl_LOCK.
49114
49115 2006-08-23  Bruno Haible  <bruno@clisp.org>
49116
49117         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49118         on OSF/1 to no.
49119         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49120
49121 2006-08-23  Bruno Haible  <bruno@clisp.org>
49122
49123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49124         as unusable.
49125
49126         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49127         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49128         (gl_LOCK): New macro.
49129
49130 2006-08-22  Simon Josefsson  <jas@extundo.com>
49131
49132         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49133         to md5 module.
49134
49135 2006-08-22  Simon Josefsson  <jas@extundo.com>
49136
49137         * MODULES.html.sh: Add "Support for maintaining and release
49138         projects".
49139
49140         * build-aux/gnupload: New file, from coreutils.
49141
49142 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         Avoid the need for AC_LIBSOURCES in m4 macros.
49145         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49146         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49147         * modules/check-version (EXTRA_DIST): Add check-version.h.
49148         * modules/crc (EXTRA_DIST): Add crc.h.
49149         * modules/des (EXTRA_DIST): Add des.h.
49150         * modules/gc (EXTRA_DIST): Add gc.h.
49151         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49152         * modules/getline (EXTRA_DIST): Add getline.h.
49153         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49154         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49155         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49156         * modules/md2 (EXTRA_DIST): Add md2.h.
49157         * modules/md4 (EXTRA_DIST): Add md4.h.
49158         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49159         * modules/read-file (EXTRA_DIST): Add read-file.h.
49160         * modules/readline (EXTRA_DIST): Add readline.h.
49161         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49162         rijndael-api-fst.h.
49163
49164 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49165
49166         * m4/rijndael.m4 (gl_ARCFOUR):
49167         * m4/arctwo.m4 (gl_ARCTWO):
49168         * m4/check-version.m4 (gl_CHECK_VERSION):
49169         * m4/crc.m4 (gl_CRC):
49170         * m4/des.m4 (gl_DES):
49171         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49172         * m4/gc.m4 (gl_GC):
49173         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49174         * m4/getline.m4 (gl_FUNC_GETLINE):
49175         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49176         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49177         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49178         * m4/md2.m4 (gl_MD2):
49179         * m4/md4.m4 (gl_MD4):
49180         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49181         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49182         * m4/readline.m4 (gl_FUNC_READLINE):
49183         * m4/rijndael.m4 (gl_RIJNDAEL):
49184         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49185         to get the necessary .h files and whatnot.
49186
49187 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49188
49189         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49190         gnulib rather than the other way around.
49191         * config/srclistvars.sh (COREUTILS): Remove.
49192
49193 2006-08-22  Jim Meyering  <jim@meyering.net>
49194
49195         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49196
49197         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49198
49199 2006-08-22  Eric Blake  <ebb9@byu.net>
49200
49201         * modules/regexprops-generic: New file.
49202         * MODULES.html.sh (Support for building documentation): List it.
49203
49204 2006-08-22  Eric Blake  <ebb9@byu.net>
49205
49206         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49207         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49208         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49209         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49210
49211 2006-08-22  Bruno Haible  <bruno@clisp.org>
49212
49213         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49214         and lib_LTLIBRARIES like the other lib_* variables.
49215
49216 2006-08-22  Bruno Haible  <bruno@clisp.org>
49217
49218         * build-aux/x-to-1.in: New file, from GNU gettext.
49219
49220 2006-08-22  Bruno Haible  <bruno@clisp.org>
49221
49222         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49223         <utmpx.h> exists.
49224
49225 2006-08-22  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49228         <utmpx.h> exists.
49229
49230 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         BeOS portability.
49233         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49234         exist.
49235         Problem reported by Bruno Haible.
49236
49237 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49238
49239         Avoid the need for AC_LIBSOURCES in m4 macros.
49240         * modules/acl (EXTRA_DIST): Add acl.h.
49241         * modules/argmatch (Files): Add m4/argmatch.m4.
49242         (configure.ac): Add gl_ARGMATCH.
49243         (EXTRA_DIST): Renamed from lib_SOURCES, for
49244         consistency with the other modules.  Remove argmatch.c.
49245         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49246         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49247         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49248         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49249         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49250         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49251         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49252         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49253         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49254         * modules/closeout (EXTRA_DIST): Add closeout.h.
49255         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49256         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49257         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49258         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49259         dirname.h; remove basename.c and stripslash.c.
49260         * modules/exclude (EXTRA_DIST): Add exclude.h.
49261         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49262         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49263         * modules/file-type (EXTRA_DIST): Add file-type.h.
49264         * modules/filemode (EXTRA_DIST): Add filemode.h.
49265         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49266         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49267         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49268         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49269         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49270         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49271         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49272         * modules/getdate (EXTRA_DIST): Add getdate.c.
49273         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49274         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49275         * modules/getpass (EXTRA_DIST): Add getpass.h.
49276         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49277         * modules/group-member (EXTRA_DIST): Add group-member.h.
49278         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49279         * modules/hash (EXTRA_DIST): Add hash.h.
49280         * modules/human (EXTRA_DIST): Add human.h.
49281         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49282         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49283         * modules/lchown (EXTRA_DIST): Add lchown.h.
49284         * modules/long-options (EXTRA_DIST): Add long-options.h.
49285         * modules/lstat (EXTRA_DIST): Add lstat.h.
49286         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49287         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49288         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49289         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49290         * modules/memxor (EXTRA_DIST): Add memxor.h.
49291         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49292         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49293         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49294         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49295         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49296         * modules/physmem (EXTRA_DIST): Add physmem.h.
49297         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49298         * modules/posixver (EXTRA_DIST): Add posixver.h.
49299         * modules/quote (EXTRA_DIST): Add quote.h.
49300         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49301         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49302         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49303         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49304         regex_internal.h regexec.c.
49305         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49306         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49307         * modules/same (EXTRA_DIST): Add same.h.
49308         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49309         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49310         * modules/savedir (EXTRA_DIST): Add savedir.h.
49311         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49312         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49313         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49314         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49315         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49316         * modules/strdup (EXTRA_DIST): Add strdup.h.
49317         * modules/strftime (EXTRA_DIST): Add strftime.h.
49318         * modules/strndup (EXTRA_DIST): Add strndup.h.
49319         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49320         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49321         * modules/time_r (EXTRA_DIST): Add time_r.h.
49322         * modules/timespec (EXTRA_DIST): Add timespec.h.
49323         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49324         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49325         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49326         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49327         * modules/userspec (EXTRA_DIST): Add userspec.h.
49328         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49329         * modules/utimens (EXTRA_DIST): Add utimens.h.
49330         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49331         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49332         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49333         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49334         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49335         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49336         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49337         * modules/yesno (EXTRA_DIST): Add yesno.h.
49338
49339 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49340
49341         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49342
49343         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49344         * m4/dev-ino.m4, same-inode.m4: Remove.
49345
49346         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49347         * m4/acl.m4 (AC_FUNC_ACL):
49348         * m4/backupfile.m4 (gl_BACKUPFILE):
49349         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49350         * m4/canon-host.m4 (gl_CANON_HOST):
49351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49352         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49353         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49354         * m4/cloexec.m4 (gl_CLOEXEC):
49355         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49356         * m4/closeout.m4 (gl_CLOSEOUT):
49357         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49358         * m4/dirname.m4 (gl_DIRNAME):
49359         * m4/exclude.m4 (gl_EXCLUDE):
49360         * m4/exitfail.m4 (gl_EXITFAIL):
49361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49362         * m4/file-type.m4 (gl_FILE_TYPE):
49363         * m4/filemode.m4 (gl_FILEMODE):
49364         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49365         * m4/fpending.m4 (gl_FUNC_FPENDING):
49366         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49367         * m4/fts.m4 (gl_FUNC_FTS):
49368         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49369         * m4/getdate.m4 (gl_GETDATE):
49370         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49371         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49372         * m4/getpass.m4 (gl_FUNC_GETPASS):
49373         * m4/gettime.m4 (gl_GETTIME):
49374         * m4/getugroups.m4 (gl_GETUGROUPS):
49375         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49376         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49377         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49378         * m4/hash.m4 (gl_HASH):
49379         * m4/idcache.m4 (gl_IDCACHE):
49380         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49381         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49382         * m4/long-options.m4 (gl_LONG_OPTIONS):
49383         * m4/lstat.m4 (gl_FUNC_LSTAT):
49384         * m4/md5.m4 (gl_MD5):
49385         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49386         * m4/memcoll.m4 (gl_MEMCOLL):
49387         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49388         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49389         * m4/memxor.m4 (gl_MEMXOR):
49390         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49391         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49392         * m4/modechange.m4 (gl_MODECHANGE):
49393         * m4/mountlist.m4 (gl_MOUNTLIST):
49394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49395         * m4/openat.m4 (gl_FUNC_OPENAT):
49396         * m4/pathmax.m4 (gl_PATHMAX):
49397         * m4/physmem.m4 (gl_PHYSMEM):
49398         * m4/posixtm.m4 (gl_POSIXTM):
49399         * m4/posixver.m4 (gl_POSIXVER):
49400         * m4/quote.m4 (gl_QUOTE):
49401         * m4/quotearg.m4 (gl_QUOTEARG):
49402         * m4/readtokens.m4 (gl_READTOKENS):
49403         * m4/readutmp.m4 (gl_READUTMP):
49404         * m4/regex.m4 (gl_REGEX):
49405         * m4/safe-read.m4 (gl_SAFE_READ):
49406         * m4/safe-write.m4 (gl_SAFE_WRITE):
49407         * m4/same.m4 (gl_SAME):
49408         * m4/save-cwd.m4 (gl_SAVE_CWD):
49409         * m4/savedir.m4 (gl_SAVEDIR):
49410         * m4/settime.m4 (gl_SETTIME):
49411         * m4/sha1.m4 (gl_SHA1):
49412         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49413         * m4/stat-macros.m4 (gl_STAT_MACROS):
49414         * m4/stat-time.m4 (gl_STAT_TIME):
49415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49416         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49417         * m4/strdup.m4 (gl_FUNC_STRDUP):
49418         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49419         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49420         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49421         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49422         * m4/time_r.m4 (gl_TIME_R):
49423         * m4/timespec.m4 (gl_TIMESPEC):
49424         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49425         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49426         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49427         * m4/userspec.m4 (gl_USERSPEC):
49428         * m4/utimecmp.m4 (gl_UTIMECMP):
49429         * m4/utimens.m4 (gl_UTIMENS):
49430         * m4/xalloc.m4 (gl_XALLOC):
49431         * m4/xgetcwd.m4 (gl_XGETCWD):
49432         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49433         * m4/xreadlink.m4 (gl_XREADLINK):
49434         * m4/xstrtod.m4 (gl_XSTRTOD):
49435         * m4/yesno.m4 (gl_YESNO):
49436         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49437         to get the necessary .h files and whatnot.
49438
49439 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49440             Bruno Haible  <bruno@clisp.org>
49441
49442         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49443         /bin/sh understanding of '!' conditional negation.
49444
49445 2006-08-21  Jim Meyering  <jim@meyering.net>
49446
49447         * modules/openat (Depends-on): Really alphabetize.
49448
49449         * modules/acl (Depends-on): Add error and quote.
49450
49451         * check-module (find_included_lib_files): Add at-func.c to the
49452         ok-to-include-more-than-once white list.
49453
49454         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49455
49456 2006-08-21  Bruno Haible  <bruno@clisp.org>
49457
49458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49459         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49460         Reported by Martin Lambers <marlam@marlam.de>.
49461
49462 2006-08-21  Bruno Haible  <bruno@clisp.org>
49463
49464         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49465         specify an installation location, don't emit a noinst_LIBRARIES or
49466         noinst_LTLIBRARIES assignment.
49467
49468 2006-08-21  Bruno Haible  <bruno@clisp.org>
49469
49470         BeOS portability.
49471         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49472         BeOS has mbrtowc() but no <wctype.h>.
49473
49474 2006-08-21  Bruno Haible  <bruno@clisp.org>
49475
49476         BeOS portability.
49477         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49478         exist.
49479
49480 2006-08-21  Bruno Haible  <bruno@clisp.org>
49481
49482         BeOS portability.
49483         * lib/mbchar.h: Include <wctype.h> only if it exists.
49484
49485 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49486
49487         Remove files that are no longer needed by their respective modules.
49488         * m4/obstack.m4: Remove.
49489         * m4/strerror_r.m4: Remove.
49490         * m4/uint32_t.m4: Remove.
49491         * m4/uintptr_t.m4: Remove.
49492         * m4/ullong_max.m4: Remove.
49493         * m4/xstrtoimax.m4: Remove.
49494         * m4/xstrtoumax.m4: Remove.
49495
49496         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49497         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49498         dependencies now capture this.
49499
49500         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49501         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49502         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49503         * m4/human.m4 (gl_HUMAN): Likewise.
49504         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49505         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49506
49507         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49508
49509         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49510         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49511         stdint.
49512         * m4/human.m4 (gl_HUMAN): Likewise.
49513         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49514         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49515         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49516         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49517         * m4/xstrtol (gl_XSTRTOL): Likewise.
49518
49519         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49520         AC_TYPE_LONG_LONG_INT.
49521         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49522         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49523         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49524         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49525
49526         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49527         on stdbool.
49528
49529         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49530         (gl_PREREQ_XSTRTOUL): Remove.
49531
49532         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49533
49534         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49535         mode.
49536
49537 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49538
49539         Add and change modules to make it easier for coreutils to use
49540         gnulib-tool.
49541         * modules/backupfile (Files): Remove m4/d-ino.m4.
49542         (Depends-on): Add d-ino.
49543         * modules/cycle-check (Depends-on): Add stdint.
49544         (lib_SOURCES): Add cycle-check.h.
49545         * modules/d-ino: New module.
49546         * modules/d-type: New module.
49547         * modules/error (Files): Remove m4/strerror_r.m4.
49548         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49549         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49550         m4/inttypes_h.m4, m4/uintmax_t.m4.
49551         (Depends-on): Add stdint.
49552         (lib_SOURCES): Add fsusage.h.
49553         * modules/getcwd (Files): Remove d-ino.m4.
49554         (Depends-on): Add d-ino.
49555         * modules/getndelim2 (Depends-on): Add stdint.
49556         * modules/glob (Files): Remove m4/d-type.m4.
49557         (Depends-on): Add d-type.
49558         * modules/host-os: New module.
49559         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49560         m4/inttypes_h.m4, m4/uintmax_t.m4.
49561         * Depends-on: Add stdint.
49562         (lib_SOURCES): Add human.h.
49563         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49564         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49565         m4/uintmax_t.m4, m4/ulonglong.m4.
49566         (Depends-on): Add stdint.
49567         (EXTRA_DIST): Add inttostr.h.
49568         * modules/lchmod: New module.
49569         * modules/link-follow: New module.
49570         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49571         (Depends-on): Add lchmod.
49572         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49573         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49574         (Depends-on): Add stdint.
49575         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49576         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49577         (Depends-on): Add stdint.
49578         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49579         * modules/perl: New module.
49580         * modules/regex (Depends-on): Add stdint.
49581         * modules/rmdir-errno: New module.
49582         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49583         m4/intmax_t.m4.
49584         (Depends-on): Add stdint.
49585         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49586         m4/uintmax_t.m4.
49587         (Depends-on): Add stdint.
49588         * modules/unlink-busy: New module.
49589         * modules/utimecmp (Depends-on): Add stdint.
49590         * modules/uptime: New module.
49591         * modules/winsz-ioctl: New module.
49592         * modules/winsz-termios: New module.
49593         * modules/xnanosleep (Depends-on): Add nanosleep.
49594         * modules/ullong_max: Remove.
49595         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49596         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49597         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49598         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49599         (Depends-on): Add inttypes.
49600         (lib_SOURCES): Add xstrtol.h.
49601         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49602         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49603         * MODULES.html.sh: Move 'assert' into the assert section.
49604         Move 'dummy' into the linking section.
49605         Remove ullong_max.
49606         Add section for compatibility checks for POSIX:2001 functions,
49607         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49608         winsz-ioctl, and winsz-termios into it.
49609         Add lchmod.
49610         Add top-level Misc section and put host-os, perl, and uptime
49611         into it.
49612
49613 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49614
49615         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49616         now assume the stdint module.  Do not include inttypes.h.
49617         * lib/fsusage.h: Likewise.
49618         * lib/getndelim2.c: Likewise.
49619         * lib/human.h: Likewise.
49620         * lib/inttostr.h: Likewise.
49621         * lib/obstack.c: Likewise.
49622         * lib/regex_internal.h: Likewise.
49623         * lib/tempname.c: Likewise.
49624         * lib/utimecmp.c: Likewise.
49625         * lib/xstrtol.h: Likewise.
49626
49627         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49628
49629         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49630         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49631         * lib/xtime.h: Likewise.
49632
49633 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * modules/openat (Files): Add lib/fchmodat.c.
49636         Fixes problem reported by Jay Youngman.
49637
49638 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49639
49640         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49641         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49642
49643 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49644             Bruno Haible  <bruno@clisp.org>
49645
49646         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49647         and is a script that invokes bison. Tighten the code. Add comments.
49648
49649 2006-08-18  Jim Meyering  <jim@meyering.net>
49650
49651         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49652         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49653         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49654         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49655
49656 2006-08-18  Bruno Haible  <bruno@clisp.org>
49657
49658         * modules/bison-i18n: New file.
49659         * MODULES.html.sh (Internationalization functions): Add it.
49660
49661 2006-08-18  Bruno Haible  <bruno@clisp.org>
49662
49663         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49664         sys/statvfs.h. When getmntinfo was found, check its declaration and
49665         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49666
49667 2006-08-18  Bruno Haible  <bruno@clisp.org>
49668
49669         * m4/bison-i18n.m4: New file, from bison.
49670
49671 2006-08-18  Bruno Haible  <bruno@clisp.org>
49672
49673         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49674         (ME_DUMMY): Treat "kernfs" as a dummy.
49675         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49676
49677 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49678
49679         Update from coreutils.
49680
49681         2006-08-15  Jim Meyering  <jim@meyering.net>
49682
49683         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49684
49685         2006-01-17  Jim Meyering  <jim@meyering.net>
49686
49687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49688
49689         2006-01-11  Jim Meyering  <jim@meyering.net>
49690
49691         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49692         Check for the lchmod function.
49693
49694 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49695
49696         Update from coreutils.
49697
49698         * lib/__fpending.h: Add copyright notice.
49699         * lib/fprintftime.h: Likewise.
49700         * lib/savedir.c: Use (C) in copyright notice.
49701         * lib/savedir.h: Likewise.
49702
49703         2006-08-15  Jim Meyering  <jim@meyering.net>
49704
49705         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49706         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49707         in support of the EXPECTED_ERRNO macro.
49708         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49709         definitions.  Instead, define the appropriate symbols and include
49710         "at-func.c".
49711         * lib/mkdirat.c (mkdirat): Likewise.
49712         * lib/fchmodat.c (fchmodat): Likewise.
49713         (ENOSYS): Remove definition.
49714         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49715         it.  Don't include "unistd--.h" -- it wasn't ever used.
49716
49717         2006-01-17  Jim Meyering  <jim@meyering.net>
49718
49719         Rewrite fts.c not to change the current working directory,
49720         by using openat, fstatat, fdopendir, etc..
49721
49722         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49723         (HAVE_OPENAT_SUPPORT): Define.
49724         [_LIBC] (fchdir): Don't undef or define; no longer used.
49725         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49726         Now, this `function' always succeeds, and consumes its file descriptor
49727         parameter -- so callers must not close such FDs.  Update callers.
49728         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49729         (diropen): Add parameter, SP.  Adjust all callers.
49730         Implement using diropen_fd, rather than open.
49731         (fts_open): Initialize new member, fts_cwd_fd.
49732         Remove fts_rft-setting code.
49733         (fts_close): Close fts_cwd_fd, if necessary.
49734         (__opendir2): Define in terms of opendir or opendirat,
49735         depending on whether the FST_NOCHDIR flag is set.
49736         (fts_build): Since fts_safe_changedir consumes its FD, and since
49737         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49738         and close the dup'd file descriptor upon failure.
49739         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49740         (fts_safe_changedir): Tweak semantics to reflect that this function
49741         now calls cwd_advance_fd and hence consumes its FD argument.
49742         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49743         [struct FTS] (fts_rft): Remove now-unused member.
49744         [struct FTS] (fts_cycle.state): Improve comment.
49745
49746         * lib/openat.c (openat_needs_fchdir): New function.
49747         * lib/openat.h (openat_needs_fchdir): Declare it.
49748
49749 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49752         Problem and fix reported by Pádraig Brady in
49753         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49754
49755 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49758
49759 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49760
49761         * lib/memcoll.c (memcoll): Optimize for the common case where the
49762         arguments are bytewise equal.
49763
49764 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49765
49766         * doc/regexprops-generic.texi: Add a copyright notice.
49767
49768 2006-08-15  Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/tmpdir (License): Change to LGPL.
49771
49772 2006-08-15  Bruno Haible  <bruno@clisp.org>
49773
49774         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49775         module.
49776
49777 2006-08-14  Simon Josefsson  <jas@extundo.com>
49778
49779         * config/srclist.txt: Add gnupload.
49780
49781 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49782
49783         Change copyright notice from LGPL 2 to GPL 2, since that's the
49784         standard form used in the gnulib repository.
49785         * tests/test-lock.c: Likewise.
49786         * tests/test-stdint.c: Likewise.
49787         * tests/test-tls.c: Likewise.
49788
49789         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49790         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49791         Add copyright notice.
49792
49793         * check-module: Add copyright notice.  Output a copyright
49794         notice if "--version" is specified.
49795         * modules/COPYING: New file.
49796         * tests/test-getaddrinfo.c: Add copyright notice.
49797         * tests/test-verify.c: Likewise.
49798
49799 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49800
49801         Change copyright notice from LGPL 2 to GPL 2, since that's the
49802         standard form used in the gnulib repository.
49803         * lib/lock.c: LGPL -> GPL.
49804         * lib/lock.h: Likewise.
49805         * lib/strnlen1.c: Likewise.
49806         * lib/strnlen1.h: Likewise.
49807         * lib/tls.c: Likewise.
49808         * lib/tls.h: Likewise.
49809         * lib/tmpdir.c: Likewise.
49810
49811         * lib/TODO: Remove; this belongs only in coreutils.
49812
49813 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49814
49815         Add copyright notices to long-enough files that lack them, since
49816         otherwise the files aren't clearly free.  Use the same notice that
49817         getdate.texi already uses.
49818         * doc/alloca-opt.texi: Add copyright notice.
49819         * doc/alloca.texi: Likewise.
49820         * doc/ctime.texi: Likewise.
49821         * doc/functions.texi: Likewise.
49822         * doc/gcd.texi: Likewise.
49823         * doc/gnulib-tool.texi: Likewise.
49824         * doc/inet_ntoa.texi: Likewise.
49825         * doc/visibility.texi: Likewise.
49826
49827         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49828         * doc/quote.texi: Add copyright notice.
49829
49830         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49831         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49832         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49833         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49834         is now obsolete, and give a pointer to the Sun list.
49835         Add copyright notice.
49836
49837 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49838
49839         * config/srclistvars.sh: Add copyright notice.
49840
49841 2006-08-14  Eric Blake  <ebb9@byu.net>
49842
49843         Import the following change from libc:
49844
49845         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49846
49847         Upstream bug 2997.
49848         * lib/misc/error.c: Add space between program name and message if file
49849         name is missing.
49850
49851 2006-08-12  Karl Berry  <karl@gnu.org>
49852
49853         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49854         remove, these originate in gnulib now.
49855
49856 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49857
49858         * doc/Makefile (standards.info standards.html standards.dvi):
49859         Also depend on make-stds.texi.
49860
49861 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49862
49863         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49864         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49865
49866         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49867         in wchar_t.  Problem reported by Eric Blake.
49868
49869         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49870         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49871         Also, help the compiler to keep LEN in a register.
49872
49873 2006-08-11  Eric Blake  <ebb9@byu.net>
49874
49875         * users.txt: Sort.  Add tar.
49876
49877 2006-08-11  Bruno Haible  <bruno@clisp.org>
49878
49879         * users.txt: New file.
49880
49881 2006-08-11  Bruno Haible  <bruno@clisp.org>
49882
49883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49884         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49885
49886 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * modules/snprintf (Depends-on): Remove minmax.
49889         (Maintainer): Add self and Bruno.
49890
49891 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49892
49893         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49894         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49895         (EOVERFLOW): Define if the system does not.
49896         Do not include "minmax.h"; it wasn't used.
49897         (snprintf): Don't assume size_t promotes to an unsigned type.
49898         Fix bug when generated string was too long for the buffer: the
49899         buffer's contents are supposed to be the initial prefix of the
49900         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49901         exceeds INT_MAX; do the check ourselves.
49902
49903         Import the following changes from libc:
49904
49905         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49906
49907         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49908         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49909         set wc to the byte which couldn't be converted.
49910         (re_string_reconstruct): Don't clear valid_raw_len before calling
49911         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49912         tip_context using re_string_context_at.
49913
49914         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49915
49916         * lib/posix/regex.h: g++ still cannot handled [restrict].
49917
49918         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49919
49920         * lib/posix/regex.h: Remove special handling for VMS.
49921
49922 2006-08-10  Jim Meyering  <jim@meyering.net>
49923
49924         * modules/same-inode: New module.
49925         * modules/dev-ino: New module.
49926         * modules/cycle-check: Depend on these modules, rather than simply
49927         including their .h files.
49928         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49929         required via m4/cycle-check.m4.
49930         * modules/same: Depend on new same-inode module, rather than
49931         including same-inode.h.
49932         * modules/chdir-safer: New file.
49933
49934         * modules/chown (Depends-on): Add stat-macros.
49935
49936 2006-08-10  Jim Meyering  <jim@meyering.net>
49937
49938         * m4/cycle-check.m4: New file.
49939         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49940         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49941
49942 2006-08-10  Eric Blake  <ebb9@byu.net>
49943
49944         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49945         in from original proposal.
49946
49947 2006-08-10  Eric Blake  <ebb9@byu.net>
49948         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49949
49950         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49951         namespace.
49952
49953 2006-08-10  Bruno Haible  <bruno@clisp.org>
49954
49955         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49956         as well.
49957
49958 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49959
49960         Sync from coreutils.
49961
49962         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49963
49964         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49965         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49966
49967 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         * modules/restrict: Remove; no longer needed now that we assume
49970         Autoconf 2.59 or later.
49971         * MODULES.html.sh: Remove 'restrict'.
49972         * modules/argp (Depends-on): Remove 'restrict'.
49973         * modules/base64 (Depends-on): Likewise.
49974         * modules/gc (Depends-on): Likewise.
49975         * modules/getaddrinfo (Depends-on): Likewise.
49976         * modules/glob (Depends-on): Likewise.
49977         * modules/inet_ntop (Depends-on): Likewise.
49978         * modules/inet_pton (Depends-on): Likewise.
49979         * modules/memxor (Depends-on): Likewise.
49980         * modules/regex (Depends-on): Likewise.
49981         * modules/strtok_r (Depends-on): Likewise.
49982         * modules/time_r (Depends-on): Likewise.
49983
49984 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49985
49986         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49987         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49988         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49989         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49990         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49991         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49992         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49993         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49994
49995         Merge from coreutils.
49996         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49997         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49999         * m4/time_r.m4 (gl_TIME_R): Likewise.
50000
50001 2006-08-09  Karl Berry  <karl@gnu.org>
50002
50003         * config/srclist.txt: no more gettext-tools, per Bruno.
50004
50005 2006-08-08  Eric Blake  <ebb9@byu.net>
50006
50007         * modules/verror: New module.
50008         * MODULES.html.sh: Document it.
50009
50010 2006-08-08  Eric Blake  <ebb9@byu.net>
50011
50012         * lib/verror.h, lib/verror.c: New files.
50013
50014 2006-08-08  Eric Blake  <ebb9@byu.net>
50015
50016         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50017         verror_at_line output complies with GNU Coding Standards even when
50018         file is NULL.
50019
50020 2006-08-07  Bruno Haible  <bruno@clisp.org>
50021
50022         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50023         versions of AIX.
50024         Reported by Ralf Wildenhues.
50025
50026 2006-08-07  Bruno Haible  <bruno@clisp.org>
50027
50028         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50029         in an AC_DEFUN. Needed so that the autoconf snippets can use
50030         AC_REQUIRE.
50031
50032 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50033
50034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50035         Initialize pkgdata_DATA.
50036         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50037         overriding it.
50038
50039 2006-08-06  Eric Blake  <ebb9@byu.net>
50040
50041         * lib/error.h: Fold in some upstream changes from glibc.
50042         * lib/error.c: Likewise.
50043
50044 2006-08-04  Bruno Haible  <bruno@clisp.org>
50045
50046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50047         Make the mostlyclean-local rule depend on mostlyclean-generic.
50048         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50049
50050 2006-07-31  Bruno Haible  <bruno@clisp.org>
50051
50052         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50053         <stdlib.h>, <string.h>.
50054
50055 2006-07-30  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/readlink (License): Change to LGPL.
50058
50059 2006-07-30  Bruno Haible  <bruno@clisp.org>
50060
50061         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50062         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50063         set PKGDATADIR to point to it.
50064
50065 2006-07-30  Bruno Haible  <bruno@clisp.org>
50066
50067         * modules/csharpexec (configure.ac): Comment out macro invocation.
50068         * modules/javaexec (configure.ac): Likewise.
50069         * modules/javacomp-script (configure.ac): Likewise.
50070
50071         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50072
50073 2006-07-30  Bruno Haible  <bruno@clisp.org>
50074
50075         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50076         linked-list.
50077
50078 2006-07-30  Bruno Haible  <bruno@clisp.org>
50079
50080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50081
50082 2006-07-30  Bruno Haible  <bruno@clisp.org>
50083
50084         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50085         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50086         get removed.
50087
50088 2006-07-29  Bruno Haible  <bruno@clisp.org>
50089
50090         Make it possible for gnulib-tool to work with locally modified or
50091         augmented gnulib repositories.
50092         * gnulib-tool (func_usage): Document --local-dir option.
50093         (local_gnulib_dir): New variable.
50094         Handle --local-dir option.
50095         (func_lookup_file): New function.
50096         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50097         (func_get_description, func_get_filelist, func_get_description,
50098         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50099         func_get_automake_snippet, func_get_include_directive,
50100         func_get_license, func_get_maintainer): Use func_lookup_file.
50101         (func_import, func_create_testdir): Use func_lookup_file.
50102
50103 2006-07-29  Bruno Haible  <bruno@clisp.org>
50104
50105         * modules/setenv (Depends-on): Add unistd.
50106
50107 2006-07-29  Bruno Haible  <bruno@clisp.org>
50108
50109         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50110
50111 2006-07-29  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50114
50115 2006-07-29  Bruno Haible  <bruno@clisp.org>
50116
50117         * gnulib-tool (import, update): If there is no Makefile.am, look at
50118         aclocal.m4, instead of bailing out.
50119
50120 2006-07-29  Bruno Haible  <bruno@clisp.org>
50121
50122         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50123         Categorize the options by when they are useful.
50124
50125 2006-07-29  Bruno Haible  <bruno@clisp.org>
50126
50127         * gnulib-tool (func_usage): Document option --no-libtool.
50128         Handle option --no-libtool.
50129         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50130         for changed semantics of $libtool variable.
50131         (func_import): Likewise. If libtool is not used, show this through
50132         an option --no-libtool.
50133         (func_create_testdir): Update.
50134
50135 2006-07-29  Bruno Haible  <bruno@clisp.org>
50136
50137         * gnulib-tool (func_import): Extend error message about missing
50138         --doc-base.
50139
50140 2006-07-29  Bruno Haible  <bruno@clisp.org>
50141
50142         * gnulib-tool (func_import): Don't create the $docbase directory if
50143         there is no file to store there.
50144
50145 2006-07-29  Bruno Haible  <bruno@clisp.org>
50146
50147         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50148         relevant, look for configure.ac there, not in the current directory.
50149         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50150
50151 2006-07-29  Bruno Haible  <bruno@clisp.org>
50152
50153         * gnulib-tool (SORT): New variable.
50154         (func_usage): Undocument --assume-autoconf option.
50155         Remove --assume-autoconf option handling.
50156         (autoconf_minversion): Determine from the contents of configure.ac.
50157         (func_import): Remove autoconf_minversion handling.
50158         Suggested by Eric Blake.
50159
50160 2006-07-29  Bruno Haible  <bruno@clisp.org>
50161
50162         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50163
50164 2006-07-29  Bruno Haible  <bruno@clisp.org>
50165
50166         * config/srclist.txt (*setenv.[ch]): Remove rules.
50167
50168 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50169
50170         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50171
50172 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50173
50174         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50175         arpa/inet.h.
50176
50177 2006-07-28  Simon Josefsson  <jas@extundo.com>
50178
50179         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50180         * modules/inet_pton (Depends-on): Likewise.
50181
50182 2006-07-28  Simon Josefsson  <jas@extundo.com>
50183
50184         * m4/netinet_in_h.m4: New file.
50185
50186 2006-07-28  Simon Josefsson  <jas@extundo.com>
50187
50188         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50189         #include's.
50190
50191 2006-07-28  Simon Josefsson  <jas@extundo.com>
50192
50193         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50194         #include's.
50195
50196 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50197
50198         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50199         setgid on directories only if they set these bits.
50200         * lib/modechange.h: Remove obsolete comment about masks.
50201
50202 2006-07-28  Eric Blake  <ebb9@byu.net>
50203
50204         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50205         macro expansion.
50206
50207 2006-07-28  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50210
50211 2006-07-28  Bruno Haible  <bruno@clisp.org>
50212
50213         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50214
50215 2006-07-28  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50218         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50219         Define fallbacks.
50220         Avoids link error on FreeBSD 4.x.
50221         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50222
50223         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50224         encoding.
50225         * lib/mbswidth.c (iswcntrl): Likewise.
50226
50227 2006-07-27  Bruno Haible  <bruno@clisp.org>
50228
50229         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50230         test.
50231
50232 2006-07-27  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50235         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50236         defined.
50237
50238 2006-07-26  Eric Blake  <ebb9@byu.net>
50239
50240         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50241
50242 2006-07-26  Eric Blake  <ebb9@byu.net>
50243
50244         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50245         like mingw that lack mkstemp.
50246         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50247         avoid compilation warning on mingw.
50248
50249 2006-07-26  Bruno Haible  <bruno@clisp.org>
50250
50251         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50252         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50253         INT_FAST*_MIN, INTPTR_MIN.
50254
50255 2006-07-25  Bruno Haible  <bruno@clisp.org>
50256
50257         * modules/version-etc (Depends-on): Add stdarg.
50258
50259 2006-07-25  Bruno Haible  <bruno@clisp.org>
50260
50261         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50262         complex commands.
50263
50264 2006-07-25  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50267         defined in <stdarg.h> or config.h.
50268
50269 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50272         (gl_STDIO_SAFER): Remove.
50273
50274 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50275
50276         * MODULES.html.sh (File stream based Input/Output):
50277         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50278         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50279         * modules/fopen-safer, modules/tmpfile-safer: New files.
50280         * modules/stdio-safer: Remove.
50281
50282 2006-07-24  Bruno Haible  <bruno@clisp.org>
50283
50284         * modules/tmpdir: New file.
50285         * MODULES.html.sh (File system functions): Add it.
50286
50287 2006-07-24  Bruno Haible  <bruno@clisp.org>
50288
50289         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50290         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50291
50292 2006-07-24  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/clean-temp: New file.
50295
50296 2006-07-24  Bruno Haible  <bruno@clisp.org>
50297
50298         * m4/tmpdir.m4: New file, from GNU gettext.
50299
50300 2006-07-24  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/tmpdir.h: New file, from GNU gettext.
50303         * lib/tmpdir.c: New file, from GNU gettext.
50304
50305 2006-07-24  Bruno Haible  <bruno@clisp.org>
50306
50307         * lib/clean-temp.h: New file, from GNU gettext.
50308         * lib/clean-temp.c: New file, from GNU gettext.
50309
50310 2006-07-23  Eric Blake  <ebb9@byu.net>
50311
50312         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50313         (Depends-on): Add binary-io.
50314
50315 2006-07-23  Eric Blake  <ebb9@byu.net>
50316
50317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50318
50319 2006-07-23  Eric Blake  <ebb9@byu.net>
50320
50321         * lib/tmpfile-safer.c: New file.
50322         * lib/stdio-safer.h (fopen_safer): Add prototype.
50323         * lib/stdio--.h (tmpfile): Make safer.
50324
50325 2006-07-23  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50328         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50329         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50330         gl_linked_remove_at): Use it.
50331
50332 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50333         and Simon Josefsson <jas@extundo.com>
50334
50335         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50336
50337         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50338
50339 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         * modules/close-stream: New file.
50342         * modules/closeout (Description): Make it clear that it exits
50343         with a diagnostic on error.
50344         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50345         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50346
50347 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50348
50349         * m4/close-stream.m4: New file.
50350
50351 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50352
50353         * lib/close-stream.c, lib/close-stream.h: New files.
50354
50355 2006-07-22  Bruno Haible  <bruno@clisp.org>
50356
50357         Merge from GNU gettext 0.15.
50358
50359         2006-05-01  Bruno Haible  <bruno@clisp.org>
50360
50361                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50362
50363         2006-07-22  Bruno Haible  <bruno@clisp.org>
50364
50365                 * modules/javaversion: New file.
50366                 * MODULES.html.sh (Java): Add javaversion.
50367
50368         2006-03-12  Bruno Haible  <bruno@clisp.org>
50369
50370                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50371
50372         2005-12-04  Bruno Haible  <bruno@clisp.org>
50373
50374                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50375                 (untested).
50376
50377         2006-06-21  Bruno Haible  <bruno@clisp.org>
50378
50379                 Avoid warnings from recent versions of mcs.
50380                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50381                 -o, -L, -r any more. Use options documented since mcs-1.0
50382                 instead. Similarly for -g.
50383
50384         2005-12-04  Bruno Haible  <bruno@clisp.org>
50385
50386                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50387                 .resources, not .resource.
50388
50389         2005-07-09  Bruno Haible  <bruno@clisp.org>
50390
50391                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50392                 add a .dll suffix.
50393                 Reported by Mark Junker <mjscod@gmx.de>.
50394
50395         2006-07-22  Bruno Haible  <bruno@clisp.org>
50396
50397                 * modules/gettext: Upgrade to gettext-0.15.
50398                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50399                 m4/visibility.m4.
50400                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50401
50402 2006-07-22  Bruno Haible  <bruno@clisp.org>
50403
50404         Merge from GNU gettext 0.15.
50405
50406         2006-03-25  Bruno Haible  <bruno@clisp.org>
50407
50408                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50409
50410         2006-07-21  Bruno Haible  <bruno@clisp.org>
50411
50412                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50413                 "1.1".
50414
50415         2006-05-09  Bruno Haible  <bruno@clisp.org>
50416
50417                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50418                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50419                 for the conftestver execution.
50420
50421         2006-05-01  Bruno Haible  <bruno@clisp.org>
50422
50423                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50424                 optional target-version argument. Verify that the compiler
50425                 groks source of the specified source-version, or add -source
50426                 option as necessary. Verify that the compiler produces
50427                 bytecode in the specified target-version, or add -target and
50428                 -source options as necessary. Make the result of the test
50429                 available as variable CONF_JAVAC. Also log error output in
50430                 config.log.
50431
50432         2006-03-11  Bruno Haible  <bruno@clisp.org>
50433
50434                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50435
50436         2006-05-09  Bruno Haible  <bruno@clisp.org>
50437
50438                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50439                 CLASSPATH_SEPARATOR to a semicolon.
50440
50441         2006-03-12  Bruno Haible  <bruno@clisp.org>
50442
50443                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50444                 available as variable CONF_JAVA, for subsequent autoconf
50445                 tests. Also log error output in config.log.
50446
50447         2006-07-19  Bruno Haible  <bruno@clisp.org>
50448
50449                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50450                 that getline works on glibc2 systems. Needed to avoid trouble
50451                 in relocatable.c.
50452                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50453
50454         2005-12-04  Bruno Haible  <bruno@clisp.org>
50455
50456                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50457                 launcher (untested).
50458
50459         2005-12-04  Bruno Haible  <bruno@clisp.org>
50460
50461                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50462
50463         2006-07-22  Bruno Haible  <bruno@clisp.org>
50464
50465                 * gettext.m4: Update from GNU gettext-0.15.
50466                 * nls.m4: Likewise.
50467                 * po.m4: Likewise.
50468                 * inttypes-pri.m4: Likewise.
50469                 * inttypes-h.m4: Renamed from inttypes.m4.
50470                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50471
50472 2006-07-22  Bruno Haible  <bruno@clisp.org>
50473
50474         Merge from GNU gettext 0.15.
50475
50476         2005-07-05  Bruno Haible  <bruno@clisp.org>
50477
50478                 * printf-args.c (printf_fetchargs): Work around broken
50479                 definition of wint_t on mingw.
50480
50481         2005-02-12  Bruno Haible  <bruno@clisp.org>
50482
50483                 * xallocsa.h: Add extern "C" for C++.
50484
50485         2006-05-17  Bruno Haible  <bruno@clisp.org>
50486
50487                 Cygwin portability.
50488                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50489
50490         2006-04-30  Bruno Haible  <bruno@clisp.org>
50491
50492                 * progreloc.c: Include <mach-o/dyld.h> if available.
50493                 (find_executable): Use _NSGetExecutablePath when possible.
50494
50495         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50496
50497                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50498                 function.
50499
50500         2005-12-29  Bruno Haible  <bruno@clisp.org>
50501
50502                 * progreloc.c (set_program_name_and_installdir): Fix
50503                 compilation error.
50504
50505         2005-12-04  Bruno Haible  <bruno@clisp.org>
50506
50507                 Cygwin portability.
50508                 * progreloc.c: Include <windows.h> also on Cygwin.
50509                 (find_executable): Add support for Cygwin.
50510                 (set_program_name_and_installdir): Handle also platforms with
50511                 nonempty EXEEXT.
50512
50513         2006-07-11  Bruno Haible  <bruno@clisp.org>
50514
50515                 * javacomp.c: Fix a comment.
50516                 Reported by Jim Meyering.
50517
50518         2006-04-30  Bruno Haible  <bruno@clisp.org>
50519
50520                 * javacomp.h (compile_java_class): Add source_version,
50521                 target_version arguments.
50522                 * javacomp.c: Rewritten to choose only a compiler that
50523                 respects the specified source_version and target_version.
50524
50525         2006-06-27  Bruno Haible  <bruno@clisp.org>
50526
50527                 Assume correct S_ISDIR macro.
50528                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50529
50530         2006-07-22  Bruno Haible  <bruno@clisp.org>
50531
50532                 * javaversion.h: New file, from GNU gettext.
50533                 * javaversion.c: New file, from GNU gettext.
50534                 * javaversion.java: New file, from GNU gettext.
50535                 * javaversion.class: New file, from GNU gettext.
50536
50537         2006-05-17  Bruno Haible  <bruno@clisp.org>
50538
50539                 Cygwin portability.
50540                 * javaexec.c (execute_java_class): Test for jview program
50541                 also on Cygwin.
50542
50543         2006-04-09  Bruno Haible  <bruno@clisp.org>
50544
50545                 * fatal-signal.c: Don't include string.h.
50546                 (at_fatal_signal): Use a copying loop instead of memcpy.
50547
50548         2005-12-04  Bruno Haible  <bruno@clisp.org>
50549
50550                 * csharpexec.c: Add support for 'clix' launcher (untested).
50551                 (execute_csharp_using_sscli): New function.
50552                 (execute_csharp_program): Call it.
50553
50554         2006-06-21  Bruno Haible  <bruno@clisp.org>
50555
50556                 Avoid warnings from recent versions of mcs.
50557                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50558                 -o, -L, -r any more. Use options documented since mcs-1.0
50559                 instead. Similarly for -g.
50560
50561         2005-07-09  Bruno Haible  <bruno@clisp.org>
50562
50563                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50564                 add a .dll suffix.
50565                 Reported by Mark Junker <mjscod@gmx.de>.
50566
50567         2006-06-17  Bruno Haible  <bruno@clisp.org>
50568
50569                 * config.charset: Update for NetBSD 3.0.
50570
50571         2006-05-17  Bruno Haible  <bruno@clisp.org>
50572
50573                 Cygwin portability.
50574                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50575
50576         2006-05-16  Bruno Haible  <bruno@clisp.org>
50577
50578                 * localcharset.c [CYGWIN]: Include <windows.h>.
50579                 (get_charset_aliases): For Cygwin, return the same CPxxx
50580                 aliases list as under WIN32.
50581                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50582                 the environment variables. Fall back to GetACP().
50583
50584         2006-04-05  Bruno Haible  <bruno@clisp.org>
50585
50586                 * config.charset: Update Juan Manuel Guerrero's address.
50587
50588         2005-02-12  Bruno Haible  <bruno@clisp.org>
50589
50590                 * allocsa.h: Add extern "C" for C++.
50591
50592         2005-02-10  Bruno Haible  <bruno@clisp.org>
50593
50594                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50595                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50596
50597         2006-07-22  Bruno Haible  <bruno@clisp.org>
50598
50599                 * gettext.h: Update to GNU gettext-0.15.
50600
50601 2006-07-22  Bruno Haible  <bruno@clisp.org>
50602
50603         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50604         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50605         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50606
50607 2006-07-21  Eric Blake  <ebb9@byu.net>
50608
50609         * modules/stdlib-safer: New file.
50610         * MODULES.html.sh (File stream based Input/Output): Add
50611         stdlib-safer.
50612
50613 2006-07-21  Eric Blake  <ebb9@byu.net>
50614
50615         * lib/stdlib-safer.h: New file from coreutils, required by
50616         stdlib--.h.
50617
50618 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50619
50620         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50621
50622 2006-07-20  Bruno Haible  <bruno@clisp.org>
50623
50624         * gnulib-tool: Recognize new option --assume-autoconf.
50625         (autoconf_minversion): New variable.
50626         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50627
50628 2006-07-20  Bruno Haible  <bruno@clisp.org>
50629
50630         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50631
50632 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50633
50634         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50635         Reindent and repaginate.
50636
50637 2006-07-19  Derek Price  <derek@ximbiot.com>
50638
50639         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50640         Correct grammar.
50641
50642 2006-07-17  Bruno Haible  <bruno@clisp.org>
50643
50644         * modules/list: New file.
50645         * modules/array-list: New file.
50646         * modules/carray-list, modules/carray-list-tests: New files.
50647         * modules/linked-list, modules/linked-list-tests: New files.
50648         * modules/avltree-list, modules/avltree-list-tests: New files.
50649         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50650         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50651         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50652         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50653         * modules/oset: New file.
50654         * modules/array-oset: New file.
50655         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50656         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50657         * tests/test-carray_list.c: New file.
50658         * tests/test-linked_list.c: New file.
50659         * tests/test-avltree_list.c: New file.
50660         * tests/test-rbtree_list.c: New file.
50661         * tests/test-linkedhash_list.c: New file.
50662         * tests/test-avltreehash_list.c: New file.
50663         * tests/test-rbtreehash_list.c: New file.
50664         * tests/test-avltree_oset.c: New file.
50665         * tests/test-rbtree_oset.c: New file.
50666         * MODULES.html.sh (Container data structures): New section.
50667
50668 2006-07-17  Bruno Haible  <bruno@clisp.org>
50669
50670         * m4/gl_list.m4: New file.
50671
50672 2006-07-17  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/gl_list.h: New file.
50675         * lib/gl_list.c: New file.
50676         * lib/gl_array_list.h: New file.
50677         * lib/gl_array_list.c: New file.
50678         * lib/gl_carray_list.h: New file.
50679         * lib/gl_carray_list.c: New file.
50680         * lib/gl_linked_list.h: New file.
50681         * lib/gl_linked_list.c: New file.
50682         * lib/gl_anylinked_list1.h: New file.
50683         * lib/gl_anylinked_list2.h: New file.
50684         * lib/gl_avltree_list.h: New file.
50685         * lib/gl_avltree_list.c: New file.
50686         * lib/gl_anyavltree_list1.h: New file.
50687         * lib/gl_anyavltree_list2.h: New file.
50688         * lib/gl_rbtree_list.h: New file.
50689         * lib/gl_rbtree_list.c: New file.
50690         * lib/gl_anyrbtree_list1.h: New file.
50691         * lib/gl_anyrbtree_list2.h: New file.
50692         * lib/gl_anytree_list1.h: New file.
50693         * lib/gl_anytree_list2.h: New file.
50694         * lib/gl_linkedhash_list.h: New file.
50695         * lib/gl_linkedhash_list.c: New file.
50696         * lib/gl_anyhash_list1.h: New file.
50697         * lib/gl_anyhash_list2.h: New file.
50698         * lib/gl_avltreehash_list.h: New file.
50699         * lib/gl_avltreehash_list.c: New file.
50700         * lib/gl_rbtreehash_list.h: New file.
50701         * lib/gl_rbtreehash_list.c: New file.
50702         * lib/gl_anytreehash_list1.h: New file.
50703         * lib/gl_anytreehash_list2.h: New file.
50704
50705         * lib/gl_oset.h: New file.
50706         * lib/gl_oset.c: New file.
50707         * lib/gl_array_oset.h: New file.
50708         * lib/gl_array_oset.c: New file.
50709         * lib/gl_avltree_oset.h: New file.
50710         * lib/gl_avltree_oset.c: New file.
50711         * lib/gl_rbtree_oset.h: New file.
50712         * lib/gl_rbtree_oset.c: New file.
50713         * lib/gl_anytree_oset.h: New file.
50714
50715 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         * m4/mkancesdirs.m4: New file.
50718         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50719         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50720         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50721         it.
50722
50723 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50726         * lib/mkancesdirs.h: New files.
50727         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50728         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50729         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50730         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50731         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50732         callers changed.  Revamp internals significantly, by not
50733         attempting to create directories that are temporarily more
50734         permissive than the final results.  Do not attempt to use
50735         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50736         This removes some race conditions, fixes some bugs, and simplifies
50737         things.  Use new dirchownmod function to do owner and mode changes.
50738         * lib/mkdir-p.h: Likewise.
50739         * lib/modechange.c (octal_to_mode): New function.
50740         (struct mode_change): New member mentioned.
50741         (make_node_op_equals): New arg mentioned.  All callers changed.
50742         (mode_compile): Keep track of which mode bits the user has explicitly
50743         mentioned.
50744         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50745         New arg PMODE_BITS, to keep track of which mode bits the user
50746         mentioned; it treats S_ISUID and S_ISGID speciall.
50747         All callers changed.
50748         * lib/modechange.h: Likewise.
50749
50750 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50751
50752         * MODULES.html.sh: Add mkancestors.
50753         * modules/mkancesdirs: New module.
50754         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50755         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50756         The chdir-safer and afs files are now orphans; I'll remove them
50757         unless someone speaks up.
50758         Add lib/dirchownmod.c, lib/dirchownmod.h.
50759         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50760         Add lchown, mkancesdirs.
50761         (Maintainer): Add self.
50762
50763 2006-07-15  Karl Berry  <karl@gnu.org>
50764
50765         * gnulib-tool: help message wording/arrangement.
50766
50767 2006-07-14  Simon Josefsson  <jas@extundo.com>
50768
50769         * doc/gnulib.texi (Libtool and Windows): New section.
50770
50771 2006-07-12  Simon Josefsson  <jas@extundo.com>
50772
50773         * modules/gendocs (License): Fix license, approved by Karl.
50774
50775 2006-07-12  Eric Blake  <ebb9@byu.net>
50776
50777         * MODULES.html.sh: Add gendocs.
50778
50779 2006-07-11  Eric Blake  <ebb9@byu.net>
50780
50781         * modules/fdl: New module, to install doc/fdl.texi.
50782         * MODULES.html.sh: Add new section for documentation modules.
50783         * gnulib-tool: Avoid space-tab.
50784         (--doc-base): New option, to manage files from doc.
50785
50786 2006-07-11  Eric Blake  <ebb9@byu.net>
50787
50788         * m4/absolute-header.m4: Fix comments to match recent change.
50789
50790 2006-07-11  Eric Blake  <ebb9@byu.net>
50791
50792         * gnulib-tool: List --doc-base before --tests-base.
50793
50794 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50795
50796         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50797
50798 2006-07-11  Bruno Haible  <bruno@clisp.org>
50799
50800         * README: Mention where to put documentation.
50801
50802 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50803
50804         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50805
50806 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50807
50808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50809         to stdint.m4.
50810
50811 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50812
50813         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50814         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50815         "no/such/file/stdint.h" when there is no such file, so that
50816         the resulting C code can be parsed by dodgy compilers.
50817         Problems reported by Bob Proulx.
50818
50819 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50820
50821         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50822         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50823         macros into the GNU _D_EXACT_NAMLEN.
50824         * lib/savedir.c:  Likewise.
50825         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50826
50827 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50828         and Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50831         * m4/savedir.m4:
50832         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50833         macros into the GNU _D_EXACT_NAMLEN.
50834
50835 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50836
50837         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50838         around the absolute name, to work around a problem with the HP-UX
50839         11.23 native C compiler, reported by Bob Proulx.
50840
50841 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50842
50843         * doc/maintain.texi, make-stds.texi: Sync from
50844         <http://savannah.gnu.org/projects/gnustandards>.
50845
50846 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50847
50848         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50849
50850 2006-07-09  Jim Meyering  <jim@meyering.net>
50851
50852         * m4/glob.m4: Remove a doubled word in a comment.
50853
50854 2006-07-09  Jim Meyering  <jim@meyering.net>
50855
50856         * lib/argp-pv.c: Remove a doubled word in a comment.
50857         * lib/check-version.c (check_version): Likewise.
50858         * lib/javacomp.c (compile_java_class): Likewise.
50859
50860 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50861
50862         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50863         for the benefit of people using Autoconf 2.60.  If you want to
50864         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50865         (or m4/onceonly.m4, if pre-2.57) manually.
50866
50867 2006-07-08  Jim Meyering  <jim@meyering.net>
50868
50869         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50870         comment.
50871         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50872         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50873         comment.
50874
50875 2006-07-08  Jim Meyering  <jim@meyering.net>
50876
50877         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50878
50879 2006-07-07  Simon Josefsson  <jas@extundo.com>
50880
50881         * tests/test-crc.c: Change expected crc value, the test vector
50882         were probably computed using the old broken crc.c?
50883
50884 2006-07-06  Simon Josefsson  <jas@extundo.com>
50885
50886         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50887         now the canonical place for the M4 file).
50888
50889         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50890         from the sys_socket dependency now.
50891
50892         * modules/inet_pton (Files): Ditto.
50893
50894         * modules/inet_ntop (Files): Ditto.
50895
50896 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50897
50898         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50899         not gl_PREREQ_GETUSERSHELL.
50900
50901 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50902
50903         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50904         with only one argument, for Autoconf 2.60.
50905         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50906         expand to nothing, so add a shell command to avoid syntax error.
50907         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50908
50909 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50910
50911         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50912
50913 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50914
50915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50916         no longer needed.  Check for isblank decl.
50917         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50918         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50919         of existence.
50920
50921 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50922
50923         * lib/getloadavg.c: Use __VMS, not VMS.
50924         * lib/getopt.c: Likewise.
50925         * lib/getpagesize.h: Likewise.
50926         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50927         and probably does not work.
50928
50929 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * lib/.cppi-disable: Add wcwidth.
50932         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50933         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50934         (ISGRAPH): Remove.  All uses changed to isgraph.
50935         (FOLD) [!defined _LIBC]: Remove special case.
50936         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50937         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50938         HAVE_ISBLANK.
50939         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50940         case.
50941
50942 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50943
50944         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50945         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50946         brackets.  Other minor changes to suppress some compiler
50947         warnings.
50948
50949 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50950         and Paul Eggert  <eggert@cs.ucla.edu>
50951
50952         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50953         of invoking obsolescent AC_HEADER_DIRENT macro.
50954         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50955         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50956         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50957         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50958         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50959         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50960         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50961         * m4/readdir.m4: Remove; no longer needed.
50962
50963 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50964         and Paul Eggert  <eggert@cs.ucla.edu>
50965
50966         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50967         Don't worry about this obsolete case any more.
50968         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50969         directories.
50970         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50971         worry about this obsolete case any more.
50972         * lib/fts.c: Likewise.
50973         * lib/getcwd.c: Likewise.
50974         * lib/glob.h: Likewise.
50975         * lib/savedir.c: Likewise.
50976
50977 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50980         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50981         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50982         needed.
50983         All uses removed.
50984         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50985         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50986         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50987         needed.
50988         * m4/getdate.m4 (gl_GETDATE): Likewise.
50989         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50990         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50991         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50992         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50993         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50994         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50995         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50996         needed.
50997
50998 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         * lib/memcasecmp.c: Include <limits.h>.
51001         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51002         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51003         Don't assume isdigit succeeds only on '0' through '9'.
51004
51005 2006-07-05  Eric Blake  <ebb9@byu.net>
51006
51007         * modules/getaddrinfo (Depends-on): Add snprintf.
51008
51009 2006-07-05  Eric Blake  <ebb9@byu.net>
51010
51011         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51012         to avoid 'header present but could not be compiled' on cygwin.
51013
51014 2006-07-05  Eric Blake  <ebb9@byu.net>
51015
51016         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51017         missing from netdb.h.
51018         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51019
51020 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51021
51022         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51023         no longer needed.
51024         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51025         * m4/getdate.m4 (gl_GETDATE): Likewise.
51026         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51027         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51028         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51029         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51030         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51031
51032 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51033
51034         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51035         All uses of is_space replaced by isspace.
51036         * lib/exit.h: Don't talk about STDC_HEADERS.
51037         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51038         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51039         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51040         replaced by isprint etc.
51041         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51042         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51043         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51044         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51045         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51046         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51047
51048 2006-07-05  Bruno Haible  <bruno@clisp.org>
51049
51050         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51051         the function exists, before testing against AIX.
51052         Reported by Martin Lambers <marlam@marlam.de>.
51053
51054 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51057         From Mark D. Baushke.
51058
51059 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51060
51061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51062         to the absolute name, not just one, to bypass Sun C 5.8's
51063         "warning: #include of /usr/include/... may be non-portable".
51064
51065 2006-07-04  Eric Blake  <ebb9@byu.net>
51066
51067         * modules/dirname-tests: New test module.
51068         * tests/test-dirname.c: New file, replacing dirname.c
51069         TEST_DIRNAME section that was recently deleted.
51070
51071 2006-07-04  Bruno Haible  <bruno@clisp.org>
51072
51073         Assume ANSI C header files and <ctype.h> functions.
51074         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51075         (mbsnwidth): Use isprint, iscntrl instead.
51076
51077 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51078
51079         Merge from coreutils.
51080         * MODULES.html.sh: Add xstrtold.
51081         * modules/xstrtold: New file.
51082         * modules/cycle-check (Files): Add lib/same-inode.h.
51083         * modules/dirname (Files): Add m4/double-slash-root.m4.
51084         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51085         * modules/mkdir-p (Files): Add lib/same-inode.h.
51086         * modules/same (Files): Add lib/same-inode.h.
51087
51088 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51089
51090         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51091         This is to keep the terminology clean; POSIX talks about
51092         "absolute pathnames", not "full pathnames", but the GNU
51093         Coding Standards say to use "path" for something else;
51094         so use "absolute" to keep both sides happy.
51095         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51096         Set gl_absolute_header, not gl_full_header_path.
51097         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51098         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51099         All uses changed.
51100
51101         Merge from coreutils.
51102
51103         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51106         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51107         want to require the building of c-strtod.o.
51108         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51109         needs -lm directly.
51110         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51111
51112         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51115         --as-needed option if available.  Problem reported by Albert Chin in
51116         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51117         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51118         cc merely issues a bunch of annoying warnings for --as-needed
51119         (this problem was reported by Bob Proulx).  Also, try linking with
51120         -lm to detect a bug in binutils 2.16 (this problem was reported
51121         by Ralf Wildenhues).
51122
51123         2006-06-18  Jim Meyering  <jim@meyering.net>
51124
51125         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51126         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51127         macro.
51128         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51129         also check for glibc-2.4's abort-inducing bug.
51130
51131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51132         Low-probability clean-up should be to use rmdir to get rid of
51133         the just-created directory, not unlink.
51134
51135         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51136         configure fail, and request a bug report to inform us about it.
51137         Add a comment that, barring reports to the contrary, in 2007 we'll
51138         assume ftruncate is universally available.
51139
51140         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51141
51142         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51143
51144         2006-03-12  Jim Meyering  <jim@meyering.net>
51145
51146         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51147         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51148         * m4/same.m4 (gl_SAME): Likewise.
51149         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51150
51151         2006-03-11  Eric Blake  <ebb9@byu.net>
51152
51153         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51154         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51155         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51156         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51157
51158 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51159
51160         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51161         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51162         reported by Mark D. Baushke, one in
51163         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51164
51165         Merge from coreutils.
51166
51167         * lib/.cppi-disable: Add stdint_.h.
51168         * lib/.cvsignore: Add stdint.h.
51169
51170         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51171
51172         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51173         both double and long double versions.
51174         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51175         * lib/xstrtold.c: New file.
51176         * lib/xstrtod.h (xstrtold): New decl.
51177
51178         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51179
51180         * lib/filemode.c (setst): Remove.
51181         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51182         (arguably) clearer, and the generated code is a bit smaller on my
51183         Debian GNU/Linux stable x86 host.
51184
51185         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51186
51187         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51188         Assume that filemode.h includes sys/types.h and sys/stat.h.
51189         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51190         (ftypelet): Reorder to put common cases first, for efficiency.
51191         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51192         to do 'M'.
51193         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51194         of 10, for compatibility with FreeBSD.  All callers changed.
51195         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51196         types that can't be deduced solely from st_mode.  First arg is now a
51197         const pointer.
51198         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51199         (strmode): Renamed from mode_string.
51200         (filemodestring): New decl.
51201         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51202         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51203         needed.
51204         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51205
51206         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51207
51208         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51209         fsusage.h now does that.  Include fsusage.h first, to test interface.
51210         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51211         at most one method (the old code could have generated decls that
51212         didn't conform to C89, not that this was ever exercised).
51213         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51214
51215         2006-03-19  Jim Meyering  <jim@meyering.net>
51216
51217         Work even in a chroot where d_ino values for entries in "/"
51218         don't match the stat.st_ino values for the same names.
51219         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51220         number, iterate through all entries again, using lstat instead.
51221         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51222         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51223
51224         * lib/getcwd.c (__getcwd): Clarify a comment.
51225         Use memcpy in place of a call to strcpy.
51226
51227         2006-03-12  Jim Meyering  <jim@meyering.net>
51228
51229         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51230         matches that of the current directory (which we're about to chdir ".."
51231         out of), then save the dev-ino of the parent, instead.
51232
51233         * lib/same-inode.h (SAME_INODE): New file/macro.
51234         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51235         Include "same-inode.h", instead.
51236         * lib/same.c: Likewise.
51237         * lib/cycle-check.h: Include "same-inode.h".
51238         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51239         * lib/cycle-check.c (SAME_INODE): Remove definition.
51240         * lib/root-dev-ino.h: Include "same-inode.h".
51241
51242         2006-03-11  Eric Blake  <ebb9@byu.net>
51243
51244         * lib/same.c (same_name): s/base_name/last_component/
51245         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51246         * lib/filenamecat.c (file_name_concat): Likewise.
51247
51248         2006-03-11  Eric Blake  <ebb9@byu.net>,
51249                     Paul Eggert  <eggert@cs.ucla.edu>
51250
51251         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51252         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51253         drive prefix.
51254         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51255         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51256         (last_component): New method.
51257         * lib/dirname.c (dir_len): Determine when drive letters need a
51258         subsequent slash.  Preserve // when it is special.
51259         (dir_name): Don't append dot when drive letter is absolute.
51260         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51261         * lib/basename.c (base_name): New semantics - malloc the result.
51262         Preserve // when it is special.  Preserve relative files that look
51263         like drive letters.
51264         (base_len): Preserve // when it is special.
51265         (last_component): New method, similar to old base_name semantics.
51266         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51267         base_name.  Strip redundant slashes from ///.
51268
51269 2006-07-03  Jim Meyering  <jim@meyering.net>
51270
51271         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51272         macro is used before the first cycle_check call.
51273
51274 2006-07-03  Eric Blake  <ebb9@byu.net>
51275
51276         * modules/dirname (Depends-on): Add xstrndup.
51277
51278 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51281         test cases, so that config.log is a bit easier to follow.
51282
51283 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51284
51285         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51286         both are 64 bits, since this seems to be the tradition, and this
51287         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51288         we ever run into a host that prefers long long to long in this
51289         case, we'll need another configure-time test.  Problem reported by
51290         Jim Meyering.
51291
51292 2006-07-02  Eric Blake  <ebb9@byu.net>
51293
51294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51295
51296 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51297
51298         * modules/inttypes (Depends-on): No longer depends on stdint.
51299         * modules/stdint (Description): Say more about assumptions.
51300         Say that the fast types might differ.  Say macros are used.
51301         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51302         (Makefile.am): Revise list of substituted symbols to match
51303         new stdint.m4.
51304         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51305         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51306         * tests/test-stdint.c (verify_same_types)
51307         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51308         the code conforms to C99/C89.
51309         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51310         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51311
51312 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51313
51314         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51315         but fix a bug, by requiring at least 64 bits.
51316         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51317         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51318         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51319         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51320
51321         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51322         changes.  Make 2.59 a prerequisite.  Check and substitute for
51323         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51324         inttypes.h.  Do not use special include files; just use the
51325         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51326         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51327         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51328         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51329         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51330         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51331         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51332         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51333         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51334         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51335         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51336         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51337         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51338         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51339         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51340         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51341         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51342         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51343         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51344         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51345         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51346         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51347         not check for things that C99 does not require, e.g., int8_t.  If
51348         a test isn't needed unless <stdint.h> isn't working, and is
51349         unlikely to be needed for any other reason, then don't do it
51350         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51351         size_t, since we assume C89 freestanding at least.  Do not check
51352         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51353         the right thing even if the types are not defined.  Instead use:
51354         (gl_STDINT_TYPE_PROPERTIES): New macro.
51355         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51356         testing whether <sys/types.h> clashes, as Autoconf does this for
51357         us now.  All uses removed.
51358         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51359         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51360         (gl_CHECK_TYPE_SAME):
51361         Remove; no longer needed.
51362         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51363         exists, since we'll return 0 anyway in that case.
51364         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51365
51366 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51367
51368         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51369         possible collision with system files.
51370         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51371         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51372         WCHAR_MIN and WCHAR_MAX in this case.
51373         (<stddef.h>): Do not include; no longer needed.
51374         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51375         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51376         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51377         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51378         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51379         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51380         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51381         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51382         !defined(__c99))]: Include in this case too, since it's harmless
51383         now.
51384         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51385         dangerous to do so.
51386         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51387         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51388         (_STDINT_MIN, _STDINT_MAX): New macros.
51389         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51390         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51391         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51392         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51393         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51394         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51395         macros, not typedefs; this simplifies things quite a bit.
51396         Use long int for all types narrower than int64_t.
51397         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51398         Define in terms of long long int or int64_t or long int,
51399         not int64_t or int32_t.  This saves some compile-time testing.
51400         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51401         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51402         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51403         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51404         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51405         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51406         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51407         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51408         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51409         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51410         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51411         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51412         undef any previous version and define our own version, for
51413         simplicity and consistency with the new macros for types.
51414         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51415         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51416         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51417         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51418         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51419         @WINT_T_SUFFIX@ to keep things simple here.
51420         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51421         Simplify by assuming typical 8/16/32/64 host, since we're
51422         already doing that elsewhere anyway.
51423         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51424         and assume long long int is 64 bits if available.  This
51425         speeds up 'configure'.
51426
51427 2006-07-01  Eric Blake  <ebb9@byu.net>
51428
51429         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51430         Reported by Andreas Buening.
51431
51432 2006-07-01  Eric Blake  <ebb9@byu.net>
51433
51434         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51435
51436 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51437
51438         * lib/getaddrinfo.c: fixed typo
51439
51440 2006-06-29  Jim Meyering  <jim@meyering.net>
51441
51442         * modules/strftime (Maintainer): Add my name, since with the
51443         FPRINTFTIME changes strftime.c has forked from glibc.
51444
51445 2006-06-29  Eric Blake  <ebb9@byu.net>
51446
51447         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51448
51449 2006-06-29  Eric Blake  <ebb9@byu.net>
51450
51451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51452
51453 2006-06-29  Eric Blake  <ebb9@byu.net>
51454
51455         * lib/stat_.h: New file.
51456
51457 2006-06-29  Eric Blake  <ebb9@byu.net>
51458
51459         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51460         unused static function.
51461
51462 2006-06-29  Eric Blake  <ebb9@byu.net>
51463
51464         * doc/functions.texi (Function Portability): Document missing lstat
51465         on mingw.
51466
51467 2006-06-29  Eric Blake  <ebb9@byu.net>
51468
51469         * MODULES.html.sh: Add sys_stat.
51470         * modules/sys_stat: New module.
51471         * modules/mkstemp (Depends-on): Add sys_stat.
51472
51473 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51474
51475         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51476
51477 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51478
51479         * m4/c-bs-a.m4: Removed.
51480
51481 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51482
51483         * lib/strftime.c: Assume strftime() exists.
51484
51485 2006-06-29  Derek Price  <derek@ximbiot.com>
51486
51487         * modules/c-bs-a: Removed - \a is C89.
51488         * MODULES.html.sh: Remove c-bs-a.
51489
51490 2006-06-29  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/wcwidth (License): Change to LGPL.
51493
51494 2006-06-28  Simon Josefsson  <jas@extundo.com>
51495
51496         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51497         on _WIN32.
51498
51499         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51500         getnameinfo.
51501
51502 2006-06-28  Simon Josefsson  <jas@extundo.com>
51503
51504         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51505
51506 2006-06-28  Simon Josefsson  <jas@extundo.com>
51507
51508         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51509         functions there.  It will succeed on Windows XP, but on Windows
51510         2000 and (presumably) earlier, it will fail, and use the internal
51511         re-implementation.
51512         (use_win32_p): New function.
51513         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51514         Support AI_NUMERICSERV to disable getservbyname.
51515         (getnameinfo): New function, only supports
51516         NI_NUMERICHOST|NI_NUMERICSERV for now.
51517
51518         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51519         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51520         getnameinfo.
51521
51522 2006-06-28  Eric Blake  <ebb9@byu.net>
51523
51524         * modules/wcwidth: New file.
51525         * modules/mbchar (Depends-on): Add wcwidth.
51526         * modules/mbswidth (Depends-on): Add wcwidth.
51527         * MODULES.html.sh: Add wcwidth.
51528
51529 2006-06-28  Eric Blake  <ebb9@byu.net>
51530
51531         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51533
51534 2006-06-28  Eric Blake  <ebb9@byu.net>
51535
51536         * lib/xvasprintf.h: Fix comments.
51537
51538 2006-06-28  Eric Blake  <ebb9@byu.net>
51539
51540         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51541         * lib/mbswidth.c (wcwidth): Move from here...
51542         * lib/wcwidth.h: ...to this new file.
51543
51544 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51545
51546         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51547
51548         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51549         it's obsolete.
51550         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51551
51552 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51553
51554         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51555         Autoconf 2.60 says this stuff was obsolete.
51556
51557 2006-06-28  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51560
51561 2006-06-28  Bruno Haible  <bruno@clisp.org>
51562
51563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51564         gt_TYPE_WCHAR_T.
51565
51566 2006-06-28  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51569         declaration for wcwidth.
51570         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51571
51572 2006-06-28  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51575         (mkdir): Define using _mkdir.
51576
51577 2006-06-28  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/getaddrinfo.h: Fix POSIX URL.
51580         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51581         _WIN32.
51582         (use_win32_p): Make static.
51583         (getaddrinfo): Reject service name if it is empty or does not consist
51584         solely of decimal digits, or if its value is > 65535.
51585         (getnameinfo): Remove useless casts.
51586
51587 2006-06-27  Simon Josefsson  <jas@extundo.com>
51588
51589         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51590         Eggert and Martin Lambers.
51591
51592 2006-06-27  Simon Josefsson  <jas@extundo.com>
51593
51594         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51595         Eggert and Martin Lambers.
51596
51597 2006-06-27  Bruno Haible  <bruno@clisp.org>
51598
51599         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51600         result to 0, not to empty.
51601         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51602
51603 2006-06-27  Bruno Haible  <bruno@clisp.org>
51604
51605         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51606
51607 2006-06-26  Simon Josefsson  <jas@extundo.com>
51608
51609         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51610         present.
51611
51612 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51613
51614         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51615         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51617
51618 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51619
51620         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51621
51622 2006-06-26  Bruno Haible  <bruno@clisp.org>
51623
51624         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51625
51626 2006-06-26  Bruno Haible  <bruno@clisp.org>
51627
51628         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51629
51630 2006-06-26  Bruno Haible  <bruno@clisp.org>
51631
51632         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51633         SGI C compiler in pre-C99 mode.
51634         Suggested by Mark D. Baushke and Larry Jones.
51635
51636 2006-06-26  Bruno Haible  <bruno@clisp.org>
51637
51638         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51639         WCHAR_MAX.
51640         Reported by Mark D. Baushke and Larry Jones.
51641
51642 2006-06-26  Bruno Haible  <bruno@clisp.org>
51643
51644         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51645         in pre-C99 mode.
51646         Suggested by Mark D. Baushke and Larry Jones.
51647
51648 2006-06-23  Simon Josefsson  <jas@extundo.com>
51649             Bruno Haible  <bruno@clisp.org>
51650
51651         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51652         Emit mostlyclean-local rule.
51653         (func_emit_tests_Makefile_am): Likewise.
51654         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51655
51656 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51657
51658         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51659
51660 2006-06-23  Bruno Haible  <bruno@clisp.org>
51661
51662         * tests/test-stdint.c: Update to match ISO C 99 Technical
51663         Corrigendum 1.
51664
51665 2006-06-23  Bruno Haible  <bruno@clisp.org>
51666
51667         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51668
51669 2006-06-23  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/stdint_.h: Treat IRIX like OpenBSD.
51672
51673 2006-06-23  Bruno Haible  <bruno@clisp.org>
51674
51675         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51676         ISO C 99 Technical Corrigendum 1.
51677
51678 2006-06-22  Simon Josefsson  <jas@extundo.com>
51679
51680         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51681         MinGW.
51682
51683 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51686         needed.  Some compiler complained about some of them.  Problem reported
51687         by Larry Jones in
51688         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51689
51690 2006-06-21  Simon Josefsson  <jas@extundo.com>
51691
51692         * tests/test-getaddrinfo.c: New file.
51693
51694         * modules/getaddrinfo-tests: New file.
51695
51696         * MODULES.html.sh: Add inet_pton.
51697
51698         * modules/inet_pton: New file.
51699
51700 2006-06-21  Simon Josefsson  <jas@extundo.com>
51701
51702         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51703         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51704         of using the (limited) gnulib implementation on Windows XP.
51705
51706         * m4/inet_pton.m4: New file.
51707
51708 2006-06-21  Simon Josefsson  <jas@extundo.com>
51709
51710         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51711         variable.
51712
51713         * lib/socket_.h: Don't define WINVER.
51714
51715         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51716         slightly modified to work in gnulib.
51717
51718 2006-06-21  Simon Josefsson  <jas@extundo.com>
51719
51720         * doc/gnulib.texi (Windows sockets): Add.
51721
51722 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * lib/read-file.c (fread_file): Start with buffer allocation of
51725         0 bytes rather than 1 byte; this simplifies the code.
51726         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51727         code to free buffer and save/restore errno.
51728         (internal_read_file): Remove unused local.
51729
51730 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51731
51732         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51733         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51734         Problem reported by Denis Excoffier in
51735         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51736
51737 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51738
51739         * modules/sys_socket, modules/socklen: Include sys/types since
51740         FreeBSD 4.x's sys/socket.h needs it.
51741
51742 2006-06-19  Simon Josefsson  <jas@extundo.com>
51743
51744         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51745
51746 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51749
51750 2006-06-19  Bruno Haible  <bruno@clisp.org>
51751
51752         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51753         and FULL_PATH_INTTYPES_H in angle brackets.
51754         Reported by Mark D. Baushke <mdb@gnu.org>.
51755
51756 2006-06-17  Eric Blake  <ebb9@byu.net>
51757
51758         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51759         errno.
51760
51761 2006-06-17  Bruno Haible  <bruno@clisp.org>
51762
51763         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51764         <sys/inttypes.h>.
51765
51766 2006-06-17  Bruno Haible  <bruno@clisp.org>
51767
51768         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51769         whether errno is declared. Assume <errno.h> declares errno.
51770
51771 2006-06-17  Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51774
51775 2006-06-17  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51778         problem on Solaris 2.5.1.
51779
51780 2006-06-16  Eric Blake  <ebb9@byu.net>
51781
51782         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51783         * lib/unicodeio.c [!defined errno]: Likewise.
51784         * lib/strtol.c [!defined errno]: Likewise.
51785         * lib/strtod.c [!defined errno]: Likewise.
51786
51787 2006-06-15  Eric Blake  <ebb9@byu.net>
51788
51789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51790
51791 2006-06-15  Eric Blake  <ebb9@byu.net>
51792
51793         * config/srclist.txt (ssize_t.m4): Lose sync.
51794
51795 2006-06-15  Bruno Haible  <bruno@clisp.org>
51796
51797         * modules/stdint (Files): Include m4/full-header-path.m4,
51798         m4/size_max.m4, m4/wchar_t.m4.
51799         (Makefile.am): Many more substitutions.
51800         * modules/stdint-tests: New file.
51801         * tests/test-stdint.c: New file.
51802
51803 2006-06-15  Bruno Haible  <bruno@clisp.org>
51804
51805         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51806         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51807         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51808         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51809         gl_CHECK_TYPE_SAME): New macros.
51810
51811 2006-06-15  Bruno Haible  <bruno@clisp.org>
51812
51813         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51814
51815 2006-06-15  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/stdint_.h: Rewritten to be fully auto-configured.
51818         Fixes bug on HP-UX/IA64.
51819
51820 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51821
51822         * lib/getdate.y (__attribute__): Don't define if already defined.
51823         Problem reported by Larry Jones.
51824         * lib/utimens.c (__attribute__): Likewise.
51825
51826 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51829         reported by Andreas Schwab.
51830
51831 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51832             Bruno Haible  <bruno@clisp.org>
51833
51834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51835         check for the declaration of strnlen and a run test that exposes the
51836         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51837         rpl_strndup.
51838
51839 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51840             Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51843
51844 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51845
51846         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51847         compile test, for Tru64 4.0D.
51848
51849 2006-05-28  Karl Berry  <karl@gnu.org>
51850
51851         * config/srclist.txt (printf-args.c): lose sync.
51852
51853 2006-05-26  Martin Lambers  <marlam@marlam.de>
51854
51855         * lib/getpass.c: Updates the test for the native W32 API, and adds
51856         missing includes, thus fixing compilation warnings.
51857
51858 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51859
51860         * lib/exclude.c (exclude_fnmatch): New function.
51861         (excluded_file_name): Call exclude_fnmatch.
51862         * lib/exclude.h (excluded_file_name): New prototype
51863
51864 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         * lib/tempname.c (small_open, large_open): New macros.
51867         (__open, __open64) [!_LIBC]: Remove.
51868         (__gen_tempname): Use small_open and large_open instead of __open
51869         and __open64.  This fixes a portability bug on HP-UX 11.11i
51870         reported by Simon Wing-Tang in
51871         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51872
51873 2006-05-24  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51876         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51877         Reported by Thorsten Maerz <torte@netztorte.de> via
51878         Aaron Stone <aaron@serendipity.cx>.
51879
51880 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51881
51882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51883         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51884         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51885         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51886         not really conditional on the cache.
51887         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51888
51889 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51892         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51893         (my_usleep): Don't mishandle maximum value.
51894
51895 2006-05-19  Jim Meyering  <jim@meyering.net>
51896
51897         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51898
51899 2006-05-17  Bruno Haible  <bruno@clisp.org>
51900
51901         Cygwin portability.
51902         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51903
51904 2006-05-17  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/stdint_.h: Fix recognition of Cygwin.
51907
51908 2006-05-15  Bruno Haible  <bruno@clisp.org>
51909
51910         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51911         on libtool patch by Ralf Wildenhues.
51912
51913 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51916         test for C99 conformance; (bool) 0.5 is an integer constant
51917         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51918         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51919
51920 2006-05-11  Simon Josefsson  <jas@extundo.com>
51921
51922         * m4/xvasprintf.m4: Fix obvious typo.
51923
51924 2006-05-11  Jim Meyering  <jim@meyering.net>
51925
51926         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51927         James Lemley.
51928
51929 2006-05-10  Simon Josefsson  <jas@extundo.com>
51930
51931         * lib/md4.c: Typo fix, update copyright years.
51932         (K1, K2): Don't use L because it turn computations into 64-bit on
51933         64-bit platforms.
51934
51935 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51938         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51939         unwanted sign propagation, e.g., on hosts with 64-bit int.
51940         There still are some problems with reeelly weird theoretical hosts
51941         (e.g., 33-bit int) but it's not worth worrying about now.
51942         * lib/sha1.c (rol): Likewise.
51943         (K1, K2, K3, K4): Remove unnecessary L suffix.
51944
51945 2006-05-10  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/des.c: Cast to avoid warnings.
51948
51949 2006-05-09  Bruno Haible  <bruno@clisp.org>
51950
51951         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51952         (Depends-on): Depend also on xsize, stdarg.
51953         (configure.ac): Add gl_XVASPRINTF.
51954
51955 2006-05-09  Bruno Haible  <bruno@clisp.org>
51956
51957         * m4/xvasprintf.m4: New file.
51958
51959 2006-05-09  Bruno Haible  <bruno@clisp.org>
51960
51961         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51962         (EOVERFLOW): Define fallback value.
51963         (xstrcat): New function.
51964         (xvasprintf): Recognize the special case of a string concatenation.
51965
51966 2006-05-08  Eric Blake  <ebb9@byu.net>
51967
51968         * gnulib-tool (func_version): Base copyright year on CVS date.
51969         (func_emit_copyright_notice): New function.
51970         (func_emit_lib_Makefile_am): Use it.
51971         (func_emit_tests_Makefile_am): Likewise.
51972         (func_import): Likewise.
51973
51974 2006-05-08  Bruno Haible  <bruno@clisp.org>
51975
51976         * modules/stdarg: New file.
51977         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51978
51979 2006-05-08  Bruno Haible  <bruno@clisp.org>
51980
51981         * m4/stdarg.m4: New file, from GNU gettext.
51982
51983 2006-05-08  Bruno Haible  <bruno@clisp.org>
51984
51985         * config/srclist.txt (build-aux/config.rpath): different from latest
51986         release.
51987
51988 2006-05-08  Bruno Haible  <bruno@clisp.org>
51989
51990         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51991
51992 2006-05-05  Jim Meyering  <jim@meyering.net>
51993
51994         * m4/warning.m4: New file, derived from bison's file by the same name.
51995
51996 2006-05-03  Bruno Haible  <bruno@clisp.org>
51997
51998         * lib/stdint_.h: Shorter URL.
51999         * lib/inttypes.h: Likewise.
52000
52001 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52002
52003         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52004
52005 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52006
52007         * lib/verify.h: Document the internals better.  Most of this change
52008         was written by Bruno Haible.
52009
52010 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52011
52012         * doc/verify.texi: New file, partly based on a proposal by
52013         Bruno Haible.
52014
52015 2006-05-02  Bruno Haible  <bruno@clisp.org>
52016
52017         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52018         test from here...
52019         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52020
52021 2006-04-29  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52024         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52025
52026 2006-04-29  Bruno Haible  <bruno@clisp.org>
52027
52028         * gnulib-tool: Make --update option actually work.
52029
52030 2006-04-29  Bruno Haible  <bruno@clisp.org>
52031
52032         * doc/gcd.texi: New file.
52033         * doc/gnulib.texi: Include it.
52034
52035 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * lib/getdate.y (get_date): When adding relative date, start with the
52038         initial time, not with the result of the first mktime call.
52039
52040 2006-04-25  Bruno Haible  <bruno@clisp.org>
52041
52042         * gnulib-tool (func_import): Output the include directives in three
52043         blocks, sorted separately.
52044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52045
52046 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52047
52048         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52049         to define main with arguments, for C++.  Reported by Eric Blake.
52050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52051         Prefer 'int main ()' to 'int main (void)', for C++.
52052         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52053         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52054         for 'main', for C99 and C++.
52055
52056 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52059         Don't assume that exit status -1 is valid.
52060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52061         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52062         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52063         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52064         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52065         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52066         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52067         functions can be used without declaring them, or that you can
52068         exit with status -1.
52069         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52070
52071 2006-04-24  Karl Berry  <karl@gnu.org>
52072
52073         * config/srclist.txt (longdouble.m4): sync lost.
52074
52075 2006-04-24  Eric Blake  <ebb9@byu.net>
52076
52077         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52078
52079 2006-04-24  Bruno Haible  <bruno@clisp.org>
52080
52081         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52082         poll() implementation in AIX.
52083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52084
52085 2006-04-24  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52088         assigned exactly once.
52089
52090 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52091             Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52094         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52095         for AM_CPPFLAGS.
52096
52097 2006-04-23  Bruno Haible  <bruno@clisp.org>
52098
52099         * modules/copy-file: Depend on unistd.
52100         * modules/execute: Likewise.
52101         * modules/fatal-signal: Likewise.
52102         * modules/findprog: Likewise.
52103         * modules/mkdtemp : Likewise.
52104         * modules/pipe: Likewise.
52105         * modules/wait-process: Likewise.
52106
52107 2006-04-23  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52110         condition was already detected.
52111         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52112
52113 2006-04-23  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/copy-file.c: Include <unistd.h> unconditionally.
52116         * lib/execute.c: Likewise.
52117         * lib/fatal-signal.c: Likewise.
52118         * lib/findprog.c: Likewise.
52119         * lib/mkdtemp.c: Likewise.
52120         * lib/pipe.h: Likewise.
52121         * lib/pipe.c: Likewise.
52122         * lib/wait-process.h: Likewise.
52123
52124 2006-04-23  Bruno Haible  <bruno@clisp.org>
52125
52126         * gnulib-tool (func_usage): Fix --import description. Document
52127         --update.
52128         (func_import): Create temporary file in a temporary directory, if
52129         --dry-run is specified. Silence errors from 'grep' when there are no
52130         m4 files in $m4dir.
52131         (func_create_testdir): Silence errors from 'grep' when there are no
52132         m4 files in $m4dir.
52133         Reported by Karl Berry <karl@freefriends.org>.
52134
52135 2006-04-20  Bruno Haible  <bruno@clisp.org>
52136
52137         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52138         one argument, so that the code will be portable to Autoconf 2.60.
52139         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52140         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52141         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52142
52143 2006-04-19  Derek Price  <derek@ximbiot.com>
52144             Eric Blake  <ebb9@byu.net>
52145
52146         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52147         rather than "/full/path.h".  Update comment to match.  Shorten &
52148         generalize m4_translit call via AS_TR_CPP.
52149
52150 2006-04-19  Derek Price  <derek@ximbiot.com>
52151             Eric Blake  <ebb9@byu.net>
52152
52153         * lib/inttypes.h: Correct grammar in comment.
52154
52155 2006-04-18  Derek Price  <derek@ximbiot.com>
52156             Paul Eggert  <eggert@cs.ucla.edu>
52157
52158         * modules/inttypes: New file.
52159         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52160
52161 2006-04-18  Derek Price  <derek@ximbiot.com>
52162             Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52165         New files.
52166
52167 2006-04-18  Derek Price  <derek@ximbiot.com>
52168             Paul Eggert  <eggert@cs.ucla.edu>
52169
52170         * lib/inttypes.h: New file.
52171         * lib/strtoimax.c: Assume <inttypes.h>.
52172
52173 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52174
52175         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52176         isn't mounted.  Problem reported by Kir Kolyshkin.
52177
52178 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52181         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52182         Derek R. Price.
52183         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52184         implementation.
52185
52186 2006-04-12  Eric Blake  <ebb9@byu.net>
52187
52188         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52189         is now done automatically by the corresponding Autoconf macro.
52190
52191 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52194         time_r.h.
52195
52196 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52197
52198         Merge regex changes from libc, removing some of our
52199         POSIX-conformance changes that were rejected and redoing them in a
52200         less-intrusive way.
52201
52202         * lib/regcomp.c (re_compile_internal, init_dfa):
52203         Length arg is now size_t, not Idx.  All uses changed.
52204         (peek_token): Forward decl now says internal_function.
52205         (__re_error_msgid, __re_error_msgid_idx):
52206         Now static rather than extern with attribute_hidden.
52207         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52208         For some reason libc prefers K&R style defns for external functions.
52209         (regerror) [!defined _LIBC]: Likewise.
52210         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52211         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52212         (build_range_exp, build_collating_symbol):
52213         Use K&R-style defn.
52214         (re_compile_fastmap): Use '\0' to memset, not 0.
52215         (utf8_sb_map): Make the calculations more obvious.
52216         (init_dfa, parse_bracket_exp, build_charclass_op):
52217         Call calloc and cast result, as glibc does.
52218         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52219         (build_range_exp, build_collating_symbol):
52220         Now internal functions.
52221
52222         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52223
52224         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52225         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52226         Don't depend on VMS; depend on __VMS instead, for POSIX
52227         namespace cleanness.
52228         (regoff_t): Define to ssize_t, not long int.
52229
52230         Remove the REG_ macros named below.  Instead, make the old names
52231         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52232         __USE_GNU_REGEX.
52233         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52234         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52235         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52236         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52237         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52238         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52239         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52240         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52241         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52242         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52243         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52244         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52245         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52246         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52247         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52248         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52249         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52250         (REG_NREGS):
52251         Remove.  All uses replaced by the old RE_* names.
52252         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52253         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52254         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52255         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52256         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52257         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52258         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52259         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52260         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52261         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52262         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52263         Don't bother having these macros be independent of each others'
52264         values, since they no longer exist in the POSIX name space.
52265
52266         Rename the following member names back to their old names,
52267         unless !__USE_GNU_REGEX.  All uses changed back.
52268         (buffer): Renamed from re_buffer.
52269         (allocated): Renamed from re_allocated.
52270         (used): Renamed from re_used.
52271         (syntax): Renamed from re_syntax.
52272         (fastmap): Renamed from re_fastmap.
52273         (translate): Renamed from re_translate.
52274         (can_be_null): Renamed from re_can_be_null.
52275         (regs_allocated): Renamed from re_regs_allocated.
52276         (fastmap_accurate): Renamed from re_fastmap_accurate.
52277         (no_sub): Renamed from re_no_sub.
52278         (not_bol): Renamed from re_not_bol.
52279         (not_eol): Renamed from re_not_eol.
52280         (newline_anchor): Renamed from re_newline_anchor.
52281         (num_regs): Renamed from rm_num_regs.
52282         (start): Renamed from rm_start.
52283         (end): Renamed from rm_end.
52284
52285         (free_state): Move up a bit.
52286
52287         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52288         #define to be empty.
52289         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52290         when that is what is intended.
52291         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52292         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52293         (MAX): New macro.
52294         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52295         All uses changed back to re_malloc, etc.  It's now the caller's
52296         responsibility to check for overflow; all callers changed.
52297         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52298         (re_x2nrealloc): Remove.
52299         (free_state): Remove decl.
52300
52301         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52302         (re_set_registers, re_exec):
52303         Use K&R-style defn.
52304
52305         2006-01-31  Roland McGrath  <roland@redhat.com>
52306
52307         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52308         Reported by Mike Frysinger <vapier@gentoo.org>.
52309
52310         2006-01-15  Andreas Jaeger  <aj@suse.de>
52311
52312         [BZ #1950]
52313         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52314         build_wcs_upper_buffer change.
52315         (build_wcs_upper_buffer): Change return type.
52316
52317         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52318
52319         * lib/regex_internal.h: Include <stdint.h> if available.
52320
52321         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52322
52323         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52324
52325         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52326
52327         * lib/regcomp.c: Adjust for changed secondary hash function.
52328
52329         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52330
52331         * lib/regex.h: Pretty printing.
52332         Clean up namespace a bit.
52333
52334         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52335
52336         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52337         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52338
52339         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52340                     Ulrich Drepper  <drepper@redhat.com>
52341
52342         [BZ #1302]
52343         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52344         changed.
52345         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52346
52347         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52348
52349         [BZ #281]
52350         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52351         * lib/regcomp.c: Remove unnecessary uses of
52352         unsigned RE_TRANSLATE_TYPE.
52353         * lib/regex_internal.h: Likewise.
52354         * lib/regex_internal.c: Likewise.
52355         * lib/regexec.c: Likewise.
52356         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52357
52358         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52359
52360         * lib/regexec.c (find_recover_state): Remove unnecessary
52361         initialization.
52362         (transit_state_bkref): Make DFA a const pointer.
52363         (get_subexp): Likewise.
52364         (check_arrival): Likewise.
52365         (update_cur_sifted_state): Likewise.
52366         (re_search_internal): Likewise.
52367         (prune_impossible_nodes): Likewise.
52368         (acquire_init_state_context): Likewise.
52369         (proceed_next_node): Likewise.
52370         (set_regs): Likewise.
52371         (free_fail_stack_return): Likewise.
52372         (check_arrival_expand_ecl): Mark DFA parameter as const.
52373         (check_arrival_expand_ecl_sub): Likewise.
52374         (check_subexp_limits): Likewise.
52375         (sub_epsilon_src_nodes):  Likewise.
52376         (add_epsilon_src_nodes):  Likewise.
52377         (merge_state_array): Likewise.
52378         (update_regs): Likewise.
52379         (build_trtable): Likewise.
52380         (sift_states_backward): Mark MCTX parameter as const.
52381         (build_sifted_states): Likewise.
52382         (update_cur_sifted_state): Likewise.
52383         (sift_states_mkref): Likewise.
52384         (check_arrival_expand_ecl): Mark eclosure as const.
52385         (check_dst_limits_calc_pos_1): Likewise.
52386         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52387         pointer.
52388
52389         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52390
52391         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52392         (transit_state_sb): Likewise.
52393         (transit_state_mb): Likewise.
52394         (sift_states_iter_mb): Likewise.
52395         (check_arrival_add_next_nodes): Likewise.
52396         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52397         [_LIBC] (re_search_2_stub): Use mempcpy.
52398
52399         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52400         mbrtowc for very simple UTF-8 case.
52401
52402         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52403         a pointer-to-const.
52404         (re_acquire_state_context): Likewise.
52405         * lib/regex_internal.h: Adjust prototypes.
52406
52407         * lib/regex.c: Prevent using C++ compilers.
52408
52409         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52410         (re_acquire_state_context): Likewise.
52411
52412 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * modules/regex (Depends-on): Add ssize_t.
52415
52416 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52417
52418         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52419         translation table.
52420
52421 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52424
52425 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52426             Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52429         <sys/types.h> and <inttypes.h>.
52430
52431 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52432
52433         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52434         `__error_t_defined', so argp.h will not typedef the former.
52435
52436 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52437
52438         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52439         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52440         glibc names.  Even if glibc is changed to conform to POSIX, the
52441         traditional names will be available anyway, since regex depends on
52442         the extensions module.  Also, fix a longstanding typo in the
52443         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52444         reported by Emanuele Giaquinta.  Also, change sense of cached
52445         variable, so that the message makes sense.
52446
52447 2006-03-24  Simon Josefsson  <jas@extundo.com>
52448
52449         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52450         including some doc fixes.
52451         (base64_encode_alloc): Fix +1 bug on allocation failures.
52452
52453 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52454
52455         * lib/base64.c (base64_encode): Do not read past end of array with
52456         unsanitized input on systems with CHAR_BIT > 8.
52457
52458 2006-03-24  Eric Blake  <ebb9@byu.net>
52459
52460         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52461
52462 2006-03-22  Karl Berry  <karl@gnu.org>
52463
52464         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52465         * config/srclistvars.sh (COREUTILS): new var.
52466
52467 2006-03-17  Jim Meyering  <jim@meyering.net>
52468
52469         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52470         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52471
52472 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52475         no longer needs it.  Instead, check that regoff_t is as least
52476         as wide as ptrdiff_t.
52477
52478         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52479         so that our regex.h stays compatible with the installed regex.
52480         This is helpful for installers who configure --without-included-regex.
52481         Problem reported by Emanuele Giaquinta.
52482
52483 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52484
52485         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52486         Typedef to long int, not to off_, as POSIX will likely change
52487         in that direction.
52488
52489 2006-03-15  Eric Blake  <ebb9@byu.net>
52490
52491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52492
52493 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52494
52495         * lib/argp-help.c (validate_uparams): Fix typo
52496         * lib/argp-parse.c (argp_default_options): Consistently begin help
52497         messages with a lowercase letter.
52498
52499 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52500
52501         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52502         overrun buffers and shouldn't be used (much as gets shouldn't be
52503         used).
52504         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52505
52506 2006-03-08  Simon Josefsson  <jas@extundo.com>
52507
52508         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52509         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52510
52511 2006-03-08  Simon Josefsson  <jas@extundo.com>
52512
52513         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52514         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52515
52516 2006-03-08  Simon Josefsson  <jas@extundo.com>
52517
52518         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52519         signal that configure disabled the device.
52520
52521 2006-03-08  Simon Josefsson  <jas@extundo.com>
52522
52523         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52524         languages.
52525
52526 2006-03-07  Simon Josefsson  <jas@extundo.com>
52527
52528         * modules/getopt (Depends-on): Add unistd.
52529
52530         * modules/unistd: New file.
52531
52532 2006-03-07  Simon Josefsson  <jas@extundo.com>
52533
52534         * modules/gc-random: New file.
52535
52536 2006-03-07  Simon Josefsson  <jas@extundo.com>
52537
52538         * m4/unistd_h.m4: New file.
52539
52540 2006-03-07  Simon Josefsson  <jas@extundo.com>
52541
52542         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52543         test to be side-effect free by storing the result in the cache
52544         variable gl_cv_lib_readline, and moving the assignment of
52545         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52546         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52547
52548 2006-03-07  Simon Josefsson  <jas@extundo.com>
52549
52550         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52551         error on missing devices (the functions will return an error).
52552
52553         * m4/gc.m4: Move random stuff to gc-random.m4
52554
52555 2006-03-07  Simon Josefsson  <jas@extundo.com>
52556
52557         * lib/unistd_.h: New file.
52558
52559 2006-03-07  Simon Josefsson  <jas@extundo.com>
52560
52561         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52562
52563 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52564
52565         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52566         Problem reported by Juan Manuel Guerrero.
52567
52568 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52571         the unistd module.
52572         * lib/getlogin_r.c: Likewise.
52573         * lib/getlogin_r.h: Likewise.
52574         * lib/glob.c: Likewise.
52575         * lib/pagealign_alloc.c: Likewise.
52576         * lib/unistd_.h: Remove; no longer needed.
52577
52578 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52581         Add unistd.
52582         * modules/c-stack (Depends-on): Add unistd.
52583         * modules/getlogin_r: Likewise.
52584         * modules/glob: Likewise.
52585         * modules/pagealign_alloc: Likewise.
52586         * modules/unistd (Files): Remove lib/unistd_.h.
52587         (EXTRA_DIST): Remove.
52588         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52589         need unistd_.h.
52590         (MOSTLYCLEANFILES): Remove unistd.h-t.
52591
52592 2006-03-03  Simon Josefsson  <jas@extundo.com>
52593
52594         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52595
52596 2006-03-03  Simon Josefsson  <jas@extundo.com>
52597
52598         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52599         libidn and bison.
52600
52601 2006-03-03  Simon Josefsson  <jas@extundo.com>
52602
52603         * build-aux/maint.mk: Add indent target.
52604
52605 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52606
52607         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52608         our replacement poll.h in any case, to avoid a differing
52609         declaration from a system header.  Seen on AIX.
52610
52611 2006-03-01  Simon Josefsson  <jas@extundo.com>
52612
52613         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52614         <kasal@ucw.cz>.
52615
52616 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52617
52618         * modules/gettime (Depends-on): Add extensions module.
52619         * modules/nanosleep (Depends-on): Likewise.
52620         * modules/settime (Depends-on): Likewise.
52621
52622 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52623
52624         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52625         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52626         pedantically.
52627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52628         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52629
52630         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52631         not "==".  Reported by Ralf Wildenhues.
52632
52633 2006-03-01  Karl Berry  <karl@gnu.org>
52634
52635         * doc/Copyright/request-*: new files, synced from gnuorg.
52636
52637 2006-03-01  Karl Berry  <karl@gnu.org>
52638
52639         * config/srclist.txt (Copyright/*): new entries.
52640
52641 2006-02-28  Simon Josefsson  <jas@extundo.com>
52642
52643         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52644
52645 2006-02-27  Simon Josefsson  <jas@extundo.com>
52646
52647         * lib/base64.h: Indent #define's.  From Jim Meyering
52648         <jim@meyering.net>.
52649
52650 2006-02-27  Jim Meyering  <jim@meyering.net>
52651
52652         Revert the change of 2006-02-24, so these files can continue
52653         to be sync'd from gettext.
52654         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52655         of `config.h'.
52656
52657 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * modules/intprops: New file.
52660         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52661         Add intprops.
52662         * modules/getloadavg (Files): Remove lib/intprops.h.
52663         (Depends-on): Add intprops.
52664         * modules/human: Likewise.
52665         * modules/inttostr: Likewise.
52666         * modules/openat: Likewise.
52667         * modules/sig2str: Likewise.
52668         * modules/userspec: Likewise.
52669         * modules/utimecmp: Likewise.
52670         * modules/xnanosleep: Likewise.
52671         * modules/xstrtol: Likewise.
52672
52673 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52674
52675         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52676         * modules/lock-tests (TESTS): Use $(EXEEXT).
52677         * modules/tls-tests: Likewise.
52678         * modules/argp-tests: Likewise.
52679         (check_PROGRAMS): New var, replacing...
52680         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52681
52682 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52683
52684         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52685         `config.h'.
52686
52687 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52688
52689         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52690
52691 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52692
52693         Sync from coreutils.
52694         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52695         gl_CHDIR_SAFER.
52696
52697 2006-02-22  Jim Meyering  <jim@meyering.net>
52698
52699         Sync from coreutils.
52700         * m4/chdir-safer.m4: New file.
52701
52702 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52703
52704         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52705         AT_FDCWD exceeds INT_MAX.
52706         * lib/openat.h (AT_FDCWD): Likewise.
52707
52708 2006-02-17  Eric Blake  <address@hidden>
52709
52710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52711
52712 2006-02-16  Simon Josefsson  <jas@extundo.com>
52713
52714         * modules/getaddrinfo (Depends-on): Add sys_socket.
52715
52716 2006-02-15  Simon Josefsson  <jas@extundo.com>
52717
52718         * build-aux/maint.mk: Add dsyntax-check rule.
52719
52720 2006-02-15  Eric Blake  <ebb9@byu.net>
52721
52722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52723         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52724         'present but cannot compile' warnings on cygwin.
52725         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52726         use ws2tcpip.h if sys/socket.h works.
52727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52728         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52729
52730 2006-02-14  Simon Josefsson  <jas@extundo.com>
52731
52732         * modules/maintainer-makefile (Files): Rename.
52733
52734         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52735         and (the local) Makefile.cfg to maint-cfg.mk.
52736
52737         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52738         to the latter.
52739
52740         * modules/maintainer-makefile: New module.
52741
52742         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52743         severaly stripped to make it possible to build it up from scratch
52744         with reliable tests.
52745
52746         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52747         fixes to permit overriding the default actions when configure and
52748         makefile are not available.
52749
52750 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52751
52752         Sync from coreutils.
52753         * modules/lstat (Depends-on): Don't depend on xalloc.
52754         (License): Change from GPL to LGPL, since this is now simply a
52755         replacement for a libc function.
52756
52757 2006-02-14  Jim Meyering  <jim@meyering.net>
52758
52759         Sync from coreutils.
52760
52761         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52762         failure on deficient systems, and simplify gnulib lgpl dependencies.
52763         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52764         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52765
52766         * lib/xalloc-die.c: Remove unused definition of N_.
52767
52768 2006-02-14  Jim Meyering  <jim@meyering.net>
52769
52770         Sync from coreutils.
52771         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52772         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52773         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52774         double-quote uses of that variable, to accommodate the rare case in
52775         which getmntent is available in none of the libraries checked.  This
52776         happens at least on FreeBSD 5.0.
52777
52778 2006-02-13  Simon Josefsson  <jas@extundo.com>
52779
52780         * gnulib-tool (Usage): Fix --import, from
52781         karl@freefriends.org (Karl Berry).
52782
52783 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52784
52785         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52786
52787 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52788
52789         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52790         "autoupdate" on 2005-12-12.
52791
52792 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         * modules/closeout (Depends-on): Remove atexit.
52795
52796 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52797
52798         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52799         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52800
52801 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52802
52803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52804         __EXTENSIONS__ if this causes compilation to fail.  Problem
52805         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52806         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52807
52808 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52811         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52813         All uses changed.
52814
52815 2006-01-26  Simon Josefsson  <jas@extundo.com>
52816
52817         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52818         prototype is visible on mingw32.
52819
52820         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52821         for mingw32.
52822
52823         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52824         mingw32).
52825
52826 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52827
52828         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52829         attempt to open for write; this always fails, at least on POSIX
52830         hosts.  This reinstates the 2006-01-09 change, which was
52831         inadvertently removed.
52832
52833 2006-01-26  Bruno Haible  <bruno@clisp.org>
52834
52835         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52836         Reported by Paul Eggert.
52837
52838 2006-01-26  Bruno Haible  <bruno@clisp.org>
52839             Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * lib/stdbool_.h (_Bool)
52842         [(! (defined __cplusplus || defined __BEOS__)
52843           && !defined __GNUC__
52844           && !(defined __HP_cc || defined __xlc__
52845                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52846                || defined __sgi))]:
52847         #define to signed char in these cases too; this simplifies
52848         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52849         etc., separately) and makes it more conservative.
52850
52851 2006-01-25  Simon Josefsson  <jas@extundo.com>
52852
52853         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52854         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52855         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52856
52857 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52858
52859         * lib/argp-namefrob.h: Bugfix. Remove stray #
52860
52861 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52864         so that we test the test.
52865         Check for yet another HP-UX cc bug involving *bool |= bool.
52866
52867 2006-01-25  Karl Berry  <karl@gnu.org>
52868
52869         * config/srclist.txt (vasnprintf.c): sync lost.
52870
52871 2006-01-25  Jim Meyering  <jim@meyering.net>
52872
52873         Sync from the stable (b5) branch of coreutils:
52874
52875         * lib/fts.c (fts_children): Don't let close() clobber errno from
52876         failed fchdir().
52877
52878         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52879         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52880         a dangling symlink.  That can also happen at least for ELOOP.
52881         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52882         FYI, this bug predates the inclusion of fts.c in coreutils.
52883
52884         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52885         in their own block, so pre-c99 compilers don't object.
52886
52887         Avoid the double-free (first in fts_read, second in fts_close) that
52888         would occur when an `active' directory is made inaccessible (e.g.,
52889         via chmod a-x) during a traversal.
52890         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52891         before returning.  Reproduce this failure by
52892         mkdir -p a/b; cd a; chmod a-x . b
52893         Reported by Stavros Passas.
52894
52895 2006-01-25  Jim Meyering  <jim@meyering.net>
52896
52897         * lib/fileblocks.c: Remove more useless parentheses.
52898         * lib/readutmp.h: Likewise.
52899
52900 2006-01-25  Bruno Haible  <bruno@clisp.org>
52901
52902         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52903         warnings.
52904         Reported by Paul Eggert.
52905
52906 2006-01-25  Bruno Haible  <bruno@clisp.org>
52907
52908         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52909         rid of a trap command. For Solaris sh.
52910         Reported by Mark D. Baushke <mdb@gnu.org>.
52911
52912 2006-01-24  Simon Josefsson  <jas@extundo.com>
52913
52914         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52915         Bruno.
52916
52917 2006-01-24  Karl Berry  <karl@gnu.org>
52918
52919         * config/srclist.txt (argp-namefrob.h): sync lost.
52920
52921 2006-01-24  Jim Meyering  <jim@meyering.net>
52922
52923         * modules/openat (Files): Add lib/intprops.h.
52924         From Mark D. Baushke.
52925
52926 2006-01-24  Jim Meyering  <jim@meyering.net>
52927
52928         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52929         Reported by Mark D. Baushke.
52930
52931 2006-01-24  Jim Meyering  <jim@meyering.net>
52932
52933         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52934
52935 2006-01-24  Bruno Haible  <bruno@clisp.org>
52936
52937         * modules/strnlen (Maintainer): Change from glibc to all.
52938
52939 2006-01-24  Bruno Haible  <bruno@clisp.org>
52940
52941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52942         Patch by Paul Eggert.
52943
52944 2006-01-24  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52947         already has it.
52948         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52949         2005-11-26.
52950
52951         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52952         'signed char' to avoid problems with the built-in _Bool type.
52953         Reported by Paul Eggert on 2005-11-26.
52954
52955 2006-01-24  Bruno Haible  <bruno@clisp.org>
52956
52957         * gnulib-tool (func_import): Avoid constructing complicated sed
52958         expressions inside backquote.
52959         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52960
52961 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52962
52963         These changes imported from libc.
52964         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52965         test and two separate function calls.
52966         * lib/strndup.c (__strndup): Add libc_hidden_def.
52967
52968 2006-01-23  Simon Josefsson  <jas@extundo.com>
52969
52970         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52971         Remove the test_*_SOURCES variable: automake infers it by default.
52972         * modules/tls-tests: Likewise.
52973
52974 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         Work around porting bugs reported by Dieter in
52977         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52978         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52979         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52980         Include "getopt.h" first, to check interface.
52981         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52982         !HAVE_DECL_GETENV.
52983         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52984         (__strndup): Revert to K&R-style function dfns, the glibc style.
52985         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52986         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52987         Include strnlen.h first, to get prototype properly.
52988         (strnlen): Renamed from __strnlen.
52989         Remove weak alias.
52990
52991 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52992
52993         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52994
52995 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52996
52997         * config/srclist.txt: Adjust to reflect glibc reorganization.
52998         This affects only comments.
52999
53000 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53001
53002          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53003          Reported by Bruce Korb <bkorb@gnu.org>.
53004
53005 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53006
53007         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53008         to pacify gcc -Wswitch-default.
53009
53010 2006-01-22  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53013         temporary buffer for sprintf, take into account the precision also
53014         for 'd', 'i', 'u', 'o', 'x', 'X'.
53015
53016 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53017
53018         * modules/argp-tests: New module
53019         * tests/test-argp.c: New file
53020         * tests/test-argp-2.sh: New file
53021
53022 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53023
53024         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53025         (__argp_base_name): Removed
53026         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53027         typo.
53028         (__argp_base_name): Provide macro definition or extern declaration
53029         depending on the configuration
53030
53031 2006-01-20  Simon Josefsson  <jas@extundo.com>
53032
53033         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53034
53035 2006-01-20  Simon Josefsson  <jas@extundo.com>
53036
53037         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53038
53039 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53040
53041         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53042         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53043         Suggested by Bruno Haible.
53044
53045 2006-01-20  Karl Berry  <karl@gnu.org>
53046
53047         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53048         until changes propagate, I guess.
53049
53050 2006-01-19  Simon Josefsson  <jas@extundo.com>
53051
53052         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53053
53054 2006-01-19  Simon Josefsson  <jas@extundo.com>
53055
53056         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53057
53058 2006-01-19  Simon Josefsson  <jas@extundo.com>
53059
53060         * gnulib-tool: Set check_PROGRAMS.
53061
53062         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53063         modules/des-tests, modules/gc-arcfour-tests,
53064         modules/gc-arctwo-tests, modules/gc-des-tests,
53065         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53066         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53067         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53068         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53069         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53070         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53071         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53072         test_*_SOURCES.
53073
53074 2006-01-18  Simon Josefsson  <jas@extundo.com>
53075
53076         * modules/socklen (Depends-on): Depend on sys_socket.
53077
53078 2006-01-18  Simon Josefsson  <jas@extundo.com>
53079
53080         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53081         modules/des-tests, modules/gc-arcfour-tests,
53082         modules/gc-arctwo-tests, modules/gc-des-tests,
53083         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53084         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53085         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53086         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53087         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53088         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53089         $(EXEEXT) to automake TESTS variable, for mingw32.
53090
53091 2006-01-17  Simon Josefsson  <jas@extundo.com>
53092
53093         * modules/socklen (Include): Need sys/socket.h.
53094
53095 2006-01-17  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/ssize_t (Include): Add <sys/types.h>.
53098
53099 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53100
53101         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53102         it's not portable and it doesn't work with cross-compiles.
53103         Problem reported by Bruno Haible.  Fix missing-$ typo in
53104         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53105         -zignore from being used with Sun's C compiler.
53106
53107 2006-01-12  Simon Josefsson  <jas@extundo.com>
53108
53109         * lib/base64.c: Fix warning, reported by Bruno Haible
53110         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53111
53112 2006-01-12  Bruno Haible  <bruno@clisp.org>
53113
53114         * modules/ldd: New file.
53115         * build-aux/ldd.sh.in: New file.
53116         * MODULES.html.sh (Support for building libraries and executables): Add
53117         ldd.
53118
53119 2006-01-12  Bruno Haible  <bruno@clisp.org>
53120
53121         * m4/ldd.m4: New file.
53122
53123 2006-01-12  Bruno Haible  <bruno@clisp.org>
53124
53125         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53126         endless loop while replacing $auxdir with build-aux.
53127
53128 2006-01-11  Simon Josefsson  <jas@extundo.com>
53129
53130         * lib/stdint_.h (SIZE_MAX): Add missing (.
53131
53132 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         Sync from coreutils.
53135         * lib/md5.c: Fix commentary typos.
53136         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53137         * lib/md5.h (__attribute__): Remove; unused.
53138         * lib/sha1.c: Fix commentary to match md5 better.
53139         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53140         so that we don't need to worry about alignment.  All uses changed.
53141         This merges the 2005-10-28 md5 change into sha1.
53142
53143 2006-01-11  Jim Meyering  <jim@meyering.net>
53144
53145         Sync from coreutils.
53146         * lib/md5.c (OP): Fix spacing.
53147
53148 2006-01-11  Bruno Haible  <bruno@clisp.org>
53149
53150         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53151         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53152         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53153
53154 2006-01-11  Bruno Haible  <bruno@clisp.org>
53155
53156         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53157         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53158         the "early" section as well.
53159
53160 2006-01-11  Bruno Haible  <bruno@clisp.org>
53161
53162         Avoid "ar: no archive members specified" error on MacOS X.
53163         * gnulib-tool (func_modules_add_dummy): New function.
53164         (func_import, func_create_testdir): Invoke it.
53165
53166 2006-01-11  Bruno Haible  <bruno@clisp.org>
53167
53168         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53169         with $auxdir in AC_CONFIG_FILES statements.
53170
53171 2006-01-11  Bruno Haible  <bruno@clisp.org>
53172
53173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53174         Initialize also noinst_HEADERS to empty.
53175
53176 2006-01-11  Bruno Haible  <bruno@clisp.org>
53177
53178         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53179         variables.
53180         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53181         autoreconf.
53182
53183 2006-01-11  Bruno Haible  <bruno@clisp.org>
53184
53185         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53186         overridable by the user.
53187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53188
53189 2006-01-10  Simon Josefsson  <jas@extundo.com>
53190
53191         * modules/sys_socket: New file.
53192
53193 2006-01-10  Simon Josefsson  <jas@extundo.com>
53194
53195         * m4/sys_socket_h.m4: New file.
53196
53197 2006-01-10  Simon Josefsson  <jas@extundo.com>
53198
53199         * lib/socket_.h: New file.
53200
53201 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         * modules/readutmp (Maintainer): Add myself.
53204
53205 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53206
53207         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53208         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53209         People who are still concerned with buggy memcmp implementations
53210         can invoke gl_FUNC_MEMCMP themselves.
53211
53212 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53213
53214         * lib/regex_internal.h (BITSET_WORD_BITS):
53215         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53216         preprocessor mishandles large unsigned values as if they were signed.
53217         Problem reported by Claudio Fontana in
53218         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53219
53220 2006-01-10  Jim Meyering  <jim@meyering.net>
53221
53222         Avoid the double-free (first in fts_read, second in fts_close) that
53223         would occur when an `active' directory is made inaccessible (e.g.,
53224         via chmod a-x) during a traversal.
53225         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53226         before returning.  Reproduce this failure by
53227         mkdir -p a/b; cd a; chmod a-x . b
53228         Reported by Stavros Passas.
53229
53230         Sync from coreutils.
53231         * lib/sha1.c: Tweak grammar in a comment.
53232
53233 2006-01-10  Jim Meyering  <jim@meyering.net>
53234
53235         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53236         Patch by Joerg Sonnenberger.
53237
53238 2006-01-10  Bruno Haible  <bruno@clisp.org>
53239
53240         * modules/readutmp: Depend on module free.
53241         * modules/strtok_r: Depend on module restrict.
53242
53243 2006-01-10  Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/gettext (configure.ac): Add an invocation of
53246         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53247
53248 2006-01-10  Bruno Haible  <bruno@clisp.org>
53249
53250         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53251         Reported by Werner Lemberg <wl@gnu.org>.
53252
53253 2006-01-10  Bruno Haible  <bruno@clisp.org>
53254
53255         * lib/localcharset.c: Update from GNU gettext.
53256
53257 2006-01-10  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/argp.h (__const): Remove macro. Use const instead.
53260         * lib/argp-fmtstream.h (__const): Likewise.
53261         * lib/glob_.h (__const): Remove macro.
53262         * lib/glob-libc.h: Use const instead of __const.
53263
53264 2006-01-10  Bruno Haible  <bruno@clisp.org>
53265
53266         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53267         variable.
53268         Needed to avoid an automake error regarding the 'gettext' module.
53269
53270 2006-01-09  Simon Josefsson  <jas@extundo.com>
53271
53272         * modules/inet_ntop (Depends-on): Add restrict.
53273
53274 2006-01-09  Simon Josefsson  <jas@extundo.com>
53275
53276         * modules/gc-rijndael-tests (License): Put under LGPL.
53277
53278         * modules/gc-des-tests (License): Likewise.
53279
53280         * modules/gc-arcfour-tests (License): Likewise.
53281
53282         * modules/gc-arctwo-tests (License): Likewise.
53283
53284         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53285
53286         * modules/gc-hmac-sha1-tests (Files): Likewise.
53287
53288         * modules/gc-hmac-md5-tests (License): Likewise.
53289
53290         * modules/gc-sha1-tests (License): Likewise.
53291
53292         * modules/gc-md5-tests (License): Likewise.
53293
53294         * modules/gc-md4-tests (License): Likewise.
53295
53296         * modules/gc-md2-tests (License): Likewise.
53297
53298         * modules/gc-tests (License): Likewise.
53299
53300         * modules/des-tests (License): Likewise.
53301
53302         * modules/md4-tests (License): Likewise.
53303
53304         * modules/md2-tests (License): Likewise.
53305
53306 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53307
53308         Sync from coreutils:
53309
53310         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53311         * modules/lib-ignore: New file.
53312         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53313         chdir-safer.m4, lchmod.m4.
53314         * modules/openat: Add mkdirat.c, openat-priv.h.
53315
53316 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         Sync from coreutils.
53319         * m4/lib-ignore.m4: New file.
53320         * m4/lchmod.m4: New file.
53321
53322 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         Sync from coreutils.
53325         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53326         for write access: POSIX says that must fail.
53327         * lib/fts.c (diropen): Likewise.
53328         * lib/save-cwd.c (save_cwd): Likewise.
53329         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53330         well, for minor improvements on hosts that lack O_DIRECTORY.
53331         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53332         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53333         Fall back on chown if open failed with EACCES.
53334
53335         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53336         Report an error at compile-time if only a 1-second nominal clock
53337         resolution is found.
53338
53339         * lib/lchmod.h: New file.
53340         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53341         (make_dir_parents): Use lchown rather than chown, and
53342         lchmod rather than chmod.
53343
53344         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53345         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53346         "proc" reported by n0dalus.
53347
53348         * lib/mountlist.c: Include <limits.h>.
53349         (dev_from_mount_options)
53350         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53351         New function.  It no longer assumes "dev=" has the System V meaning
53352         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53353         (read_file_system_list)
53354         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53355         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53356         dev= in that case.
53357
53358         * lib/posixtm.h (PDS_PRE_2000): New macro.
53359         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53360         allow_century.  All usages changed.  Reject dates outside the range
53361         1969-1999 if PDS_PRE_2000 is used.
53362
53363 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         Sync from coreutils.
53366         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53367         (Time of day items): Mention the possibility of leap seconds.
53368         Problem reported by Dr. David Alan Gilbert.
53369
53370 2006-01-09  Jim Meyering  <jim@meyering.net>
53371
53372         Sync from coreutils.
53373
53374         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53375
53376         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53377
53378         * lib/modechange.c (mode_compile): Reject an invalid mode string
53379         that starts with an octal digit.  From Andreas Gruenbacher.
53380
53381         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53382         and dup to open_safer and dup_safer, respectively.
53383         (openat_permissive): Fix typo in comment.
53384
53385         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53386         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53387         (_): Remove; no longer needed.
53388         (openat): Renamed from rpl_openat; no need for rpl_openat
53389         since openat.h renames openat for us.
53390         Replace most of the body with a call to openat_permissive,
53391         to avoid duplicate code.
53392         Port to (probably hypothetical) environments were mode_t is
53393         wider than int.
53394         (openat_permissive): Require mode arg, so that we can check
53395         types better.  Put it just after flags.  Change cwd failure
53396         indicator from pointer-to-bool to pointer-to-errno-value.
53397         All callers changed.
53398         Invoke openat_save_fail and/or openat_restore_fail if
53399         cwd_errno is null, so that openat can call us.
53400         (openat_permissive, fdopendir, fstatat, unlinkat):
53401         Simplify errno handling to avoid some duplicate code,
53402         as it's OK to set errno on success.
53403         * lib/openat.h: Revamp code so that function macros depend on
53404         __OPENAT_PREFIX only, not also on AT_FDCWD.
53405         (openat_ro): Remove.  Caller changed to use openat_permissive.
53406         (openat_permissive): Now a macro, if not a function.
53407         (openat_restore_fail, openat_save_fail): Now always functions,
53408         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53409
53410         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53411         and openat.c.
53412         * lib/mkdirat.c: Include openat-priv.h.
53413         Remove definitions of macros defined therein.
53414         * lib/openat.c: Likewise.
53415
53416         * lib/mkdirat.c (mkdirat): New file and function.
53417         * lib/openat.h (mkdirat): Declare.
53418
53419         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53420
53421         * lib/openat.h (openat_permissive): Declare.
53422         (openat_ro): Define.
53423
53424         * lib/openat.c (EXPECTED_ERRNO): New macro.
53425         (openat_permissive): New function -- used in remove.c rewrite.
53426         (all functions): Set errno just before returning, only if there
53427         was an actual failure.
53428         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53429
53430         Emulate openat-family functions using Linux's procfs, if possible.
53431         Idea and some code based on Ulrich Drepper's glibc changes.
53432
53433         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53434         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53435         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53436         before falling back on save_cwd and restore_cwd.
53437         (fdopendir, fstatat, unlinkat): Likewise.
53438
53439         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53440         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53441
53442         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53443         as second argument to va_arg.  Otherwise, some versions of gcc
53444         warn that `if this code is reached, the program will abort'.
53445
53446 2006-01-09  Jim Meyering  <jim@meyering.net>
53447
53448         Sync from coreutils.
53449         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53450         Require openat-priv.h.
53451
53452 2006-01-09  Bruno Haible  <bruno@clisp.org>
53453
53454         * modules/strnlen (Include): Use strnlen.h.
53455
53456 2006-01-09  Bruno Haible  <bruno@clisp.org>
53457
53458         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53459
53460 2006-01-09  Bruno Haible  <bruno@clisp.org>
53461
53462         * lib/sysexit_.h (EX_OK): New macro.
53463         Suggested by Martin Lambers <marlam@marlam.de>.
53464
53465 2006-01-09  Bruno Haible  <bruno@clisp.org>
53466
53467         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53468         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53469
53470 2006-01-09  Bruno Haible  <bruno@clisp.org>
53471
53472         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53473         numbers.
53474
53475 2006-01-09  Bruno Haible  <bruno@clisp.org>
53476
53477         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53478         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53479         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53480         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53481
53482 2006-01-09  Bruno Haible  <bruno@clisp.org>
53483
53484         * build-aux/javacomp.sh.in: New file, moved from lib/.
53485         * modules/javacomp-script (Files): Update.
53486         (configure.ac): Add AC_CONFIG_FILES invocation.
53487         (EXTRA_DIST): Remove variable.
53488
53489         * build-aux/javaexec.sh.in: New file, moved from lib/.
53490         * modules/javaexec (Files): Update.
53491         (configure.ac): Add AC_CONFIG_FILES invocation.
53492         (EXTRA_DIST): Remove javaexec.sh.in.
53493
53494         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53495         * modules/csharpcomp-script (Files): Update.
53496         (configure.ac): Add AC_CONFIG_FILES invocation.
53497         (EXTRA_DIST): Remove variable.
53498
53499         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53500         * modules/csharpexec (Files): Update.
53501         (configure.ac): Add AC_CONFIG_FILES invocation.
53502         (EXTRA_DIST): Remove csharpexec.sh.in.
53503
53504 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53505
53506         Sync from coreutils.
53507
53508         Add POSIX ACL support
53509         * lib/acl.h (copy_acl, set_acl): Add declarations.
53510         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53511         systems other than Linux.
53512         (chmod_or_fchmod): New function: use fchmod when possible,
53513         and chmod otherwise.
53514         (file_has_acl): Add a POSIX ACL implementation, with a
53515         Linux-specific subcase.
53516         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53517         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53518         acls are unsupported.
53519         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53520         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53521         are unsupported.
53522
53523 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53524
53525         Sync from coreutils.
53526         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53527
53528 2006-01-07  Bruno Haible  <bruno@clisp.org>
53529
53530         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53531         gl_EARLY.
53532
53533 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53536         Problem reported for Mingw by Mark Junker.
53537
53538 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53539
53540         * README: Gnulib normally doesn't generate a tarball.
53541
53542 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53543
53544         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53545         long int, not int, for nanosecond counts, so that people who are
53546         used to POSIX struct timespec won't be surprised.  Reported by Jim
53547         Meyering.
53548
53549 2005-12-28  Bruno Haible  <bruno@clisp.org>
53550
53551         * build-aux/config.rpath: Update from GNU gettext.
53552
53553 2005-12-16  Jim Meyering  <jim@meyering.net>
53554
53555         * modules/fprintftime: New module.
53556         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53557
53558 2005-12-16  Jim Meyering  <jim@meyering.net>
53559
53560         * m4/fprintftime.m4: New file.
53561
53562 2005-12-16  Jim Meyering  <jim@meyering.net>
53563
53564         * lib/fprintftime.c, lib/fprintftime.h: New files.
53565
53566 2005-12-15  Simon Josefsson  <jas@extundo.com>
53567
53568         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53569         new m4/socklen.m4.
53570
53571 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53572
53573         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53574         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53575
53576 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53577
53578         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53579         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53580         struct uparams is valid. Fall back to the default values if it is
53581         not.
53582
53583 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53584
53585         * modules/argp (Files): Add argp-pin.c
53586         (Depends-on): dirname
53587         (lib_SOURCES): Add argp-pin.c
53588
53589 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53590
53591         * m4/argp.m4:  Check if program_invocation_name and
53592         program_invocation_short_name are declared and define appropriate
53593         macros if they are not.
53594
53595 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53596
53597         * lib/argp-help.c (__argp_base_name): New function
53598         (__argp_short_program_name): Rewrite using __argp_base_name
53599         * lib/argp-namefrob.h: Define program_invocation_name and
53600         program_invocation_short_name if requested
53601         (__argp_base_name): Add prototype
53602         * lib/argp-parse.c (argp_def): Use gettext wrappers
53603         (argp_default_parser): Use __argp_base_name
53604         * lib/argp-pin.c: New file. Defines program_invocation_name and
53605         program_invocation_short_name on systems that lack them.
53606
53607 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53608
53609         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53610         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53611         porting problem reported by Georg Schwarz in
53612         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53613
53614 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53617         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53618         porting problem reported by Georg Schwarz in
53619         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53620
53621 2005-12-05  Bruno Haible  <bruno@clisp.org>
53622
53623         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53624         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53625         Reported by Mark Junker <mjscod@gmx.de>.
53626
53627 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53628
53629         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53630         Use implementation from Albert Chin, with some
53631         comments/corrections by Stepan Kasal and myself.
53632
53633 2005-12-02  Bruno Haible  <bruno@clisp.org>
53634
53635         * gnulib-tool (func_import): Accept GPLed build tool modules when
53636         --lgpl is given.
53637         * modules/csharpcomp-script: New file.
53638         * modules/csharpcomp: Depend on it.
53639         * modules/javacomp-script: New file.
53640         * modules/javacomp: Depend on it.
53641         Suggested by Simon Josefsson.
53642
53643 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53646         statement, to work around an HP-UX 10.20 compiler bug reported by
53647         Peter O'Gorman.
53648
53649 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * modules/savedir (Depends-on): Add openat.
53652
53653 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53654
53655         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53656         (uintmax_t) [defined uintmax_t]: Do not declare.
53657         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53658         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53659         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53660         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53661         sake of portability to weird hosts that C allows (though we don't
53662         know of any practical examples).
53663
53664         * lib/savedir.h (fdsavedir): New decl.
53665         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53666         contains most of the former guts of savedir.
53667         (savedir): Use savedirstream.
53668         Include "openat.h".
53669
53670 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * modules/obstack (Files): Add m4/ulonglong.m4.
53673         Problem reported by Davide Angelocola.
53674
53675 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53678         coreutils no longer futzes with rounding modes.
53679
53680 2005-11-14  Jim Meyering  <jim@meyering.net>
53681
53682         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53683         replacement of mkstemp.
53684
53685 2005-11-10  Simon Josefsson  <jas@extundo.com>
53686
53687         * lib/readline.c: Remove EOL.
53688
53689 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * modules/gethrxtime (Depends-on): Add gettime.
53692
53693 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53696         or gettimeofday; no longer needed.
53697
53698 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53699
53700         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53701         time business.
53702         (gethrxtime) [! (HAVE_NANOUPTIME
53703         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53704         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53705         our own approximation.
53706
53707 2005-11-08  Eric Blake  <ebb9@byu.net>
53708
53709         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53710
53711 2005-11-08  Eric Blake  <ebb9@byu.net>
53712
53713         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53714
53715 2005-11-04  Bruno Haible  <bruno@clisp.org>
53716
53717         * gnulib-tool: Implement --update mode.
53718
53719 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53720
53721         Fix porting problem reported by Theodoros V. Kalamatianos.
53722         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53723         Don't assume that futimes failing means we must fail.
53724
53725 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53726
53727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53728         variables to suggest the intended function of the PATH_MAX check.
53729
53730 2005-10-30  Kean Johnston  <jkj@sco.com>
53731
53732         Trivial changes to support SCO systems.
53733         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53734         as PATH_MAX.
53735         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53736         where __ptr is null when no I/O is pending.
53737
53738 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53739
53740         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53741         leave errno alone.  Problem reported by Dmitry V. Levin.
53742
53743 2005-10-28  Simon Josefsson  <jas@extundo.com>
53744
53745         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53746         Test more.
53747
53748         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53749
53750         * modules/md2, modules/md2-tests: New files.
53751
53752 2005-10-28  Simon Josefsson  <jas@extundo.com>
53753
53754         * m4/inet_ntop.m4: More tests.
53755
53756         * m4/gc-md2.m4, md2.m4: New file.
53757
53758 2005-10-28  Simon Josefsson  <jas@extundo.com>
53759
53760         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53761         "restrict" keywords, as per POSIX.  Protect the function
53762         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53763         Don't use K&R prototypes.  Check the sprintf return values.
53764         Re-define EAFNOSUPPORT if not present.  Indent.
53765
53766         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53767         suggested by Bruno Haible <bruno@clisp.org>.
53768
53769         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53770
53771         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53772
53773         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53774         libgcrypt).
53775
53776         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53777
53778         * lib/md2.h, lib/md2.c: New files.
53779
53780 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53783         errno alone.  Problem reported by Frederic Jolliton.
53784
53785 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * modules/verify (License): Change from GPL to LGPL.  This is a
53788         tiny module and there are apparently near-equivalents that are
53789         under the BSD license.
53790
53791 2005-10-24  Simon Josefsson  <jas@extundo.com>
53792
53793         * modules/sha1: Relicense to LGPL.
53794
53795 2005-10-24  Simon Josefsson  <jas@extundo.com>
53796
53797         * lib/md4.h: Shrink buffer size, now that we changed the type.
53798
53799 2005-10-23  Simon Josefsson  <jas@extundo.com>
53800
53801         * gnulib-tool (func_import): Fix --tests-base.
53802
53803 2005-10-22  Simon Josefsson  <jas@extundo.com>
53804
53805         * modules/arcfour (Depends-on): Need stdint.
53806
53807 2005-10-22  Simon Josefsson  <jas@extundo.com>
53808
53809         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53810         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53811
53812 2005-10-22  Simon Josefsson  <jas@extundo.com>
53813
53814         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53815         suggested by Bruno Haible <bruno@clisp.org>.
53816
53817 2005-10-22  Simon Josefsson  <jas@extundo.com>
53818
53819         * lib/crc.h: Include stddef.h, for size_t.
53820
53821 2005-10-22  Simon Josefsson  <jas@extundo.com>
53822
53823         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53824         arcfour_context struct (simplify test vector testing in GNU
53825         Shishi).
53826
53827 2005-10-21  Simon Josefsson  <jas@extundo.com>
53828
53829         * modules/des, modules/des-tests: New files.
53830
53831         * modules/gc-des, modules/gc-des-tests: New files.
53832
53833         * tests/test-des.c, tests/test-gc-des.c: New file.
53834
53835 2005-10-21  Simon Josefsson  <jas@extundo.com>
53836
53837         * modules/arctwo, modules/arctwo-tests: New files.
53838
53839         * tests/test-arctwo.c: New file.
53840
53841         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53842
53843         * tests/test-gc-arctwo.c: New file.
53844
53845 2005-10-21  Simon Josefsson  <jas@extundo.com>
53846
53847         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53848         Bruno Haible <bruno@clisp.org>.
53849
53850         * m4/gc-des.m4: New file.
53851
53852 2005-10-21  Simon Josefsson  <jas@extundo.com>
53853
53854         * m4/arctwo.m4: New file.
53855
53856         * m4/gc-arctwo.m4: New file.
53857
53858 2005-10-21  Simon Josefsson  <jas@extundo.com>
53859
53860         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53861         block.
53862
53863 2005-10-21  Simon Josefsson  <jas@extundo.com>
53864
53865         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53866         <bruno@clisp.org>.
53867
53868         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53869
53870         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53871         Bruno Haible <bruno@clisp.org>.
53872
53873         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53874         <bruno@clisp.org>.
53875
53876 2005-10-21  Simon Josefsson  <jas@extundo.com>
53877
53878         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53879
53880 2005-10-21  Simon Josefsson  <jas@extundo.com>
53881
53882         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53883
53884 2005-10-21  Simon Josefsson  <jas@extundo.com>
53885
53886         * lib/des.h, lib/des.c: New files.
53887
53888         * lib/gc-gnulib.c: Support DES.c
53889
53890 2005-10-21  Simon Josefsson  <jas@extundo.com>
53891
53892         * lib/arctwo.h, lib/arctwo.c: New files.
53893
53894         * lib/gc-gnulib.c: Support ARCTWO.
53895
53896 2005-10-21  Simon Josefsson  <jas@extundo.com>
53897
53898         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53899         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53900
53901 2005-10-21  Simon Josefsson  <jas@extundo.com>
53902
53903         * gnulib-tool (func_import, func_create_testdir): Define automake
53904         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53905         Makefile.am snippet),
53906         suggested by Bruno Haible <bruno@clisp.org>.
53907
53908         * modules/gc (Makefile.am): Use it.
53909
53910 2005-10-21  Bruno Haible  <bruno@clisp.org>
53911
53912         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53913         patch.
53914
53915 2005-10-19  Simon Josefsson  <jas@extundo.com>
53916
53917         * tests/test-gc-rijndael.c: New file.
53918
53919         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53920
53921 2005-10-19  Simon Josefsson  <jas@extundo.com>
53922
53923         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53924         interface too.
53925
53926 2005-10-19  Simon Josefsson  <jas@extundo.com>
53927
53928         * tests/test-gc-arcfour.c: New file.
53929
53930         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53931
53932 2005-10-19  Simon Josefsson  <jas@extundo.com>
53933
53934         * modules/gc-md4, modules/gc-md4-tests: New file.
53935
53936         * tests/test-gc-md4.c: New file.
53937
53938 2005-10-19  Simon Josefsson  <jas@extundo.com>
53939
53940         * m4/gc-md4.m4: New file.
53941
53942 2005-10-19  Simon Josefsson  <jas@extundo.com>
53943
53944         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53945         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53946         <kasal@ucw.cz>.
53947
53948 2005-10-19  Simon Josefsson  <jas@extundo.com>
53949
53950         * m4/gc-arcfour.m4: New file.
53951
53952         * m4/gc-rijndael.m4: New file.
53953
53954 2005-10-19  Simon Josefsson  <jas@extundo.com>
53955
53956         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53957
53958 2005-10-19  Simon Josefsson  <jas@extundo.com>
53959
53960         * lib/gc-gnulib.c: Support ARCFOUR.
53961
53962 2005-10-19  Simon Josefsson  <jas@extundo.com>
53963
53964         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53965         support.
53966
53967         * lib/gc.h: Add ECB enum type.
53968
53969         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53970
53971 2005-10-18  Simon Josefsson  <jas@extundo.com>
53972
53973         * tests/test-md5.c: New file.
53974
53975         * modules/md5-tests: New file.
53976
53977 2005-10-18  Simon Josefsson  <jas@extundo.com>
53978
53979         * tests/test-md4.c: New file.
53980
53981         * modules/md4, modules/md4-tests: New files.
53982
53983 2005-10-18  Simon Josefsson  <jas@extundo.com>
53984
53985         * m4/md4.m4: New file.
53986
53987 2005-10-18  Simon Josefsson  <jas@extundo.com>
53988
53989         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53990
53991 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53992
53993         * gnulib-tool (func_create_testdir): Omit the second check whether
53994         BUILT_SOURCES in nonempty.
53995
53996 2005-10-17  Simon Josefsson  <jas@extundo.com>
53997
53998         * tests/test-rijndael.c: New file.
53999
54000 2005-10-17  Simon Josefsson  <jas@extundo.com>
54001
54002         * modules/sha1: Depend on stdint instead of md5.
54003
54004         * modules/md5: Depend on stdint, remove uint32_t.
54005
54006 2005-10-17  Simon Josefsson  <jas@extundo.com>
54007
54008         * modules/gc-sha1-tests: New file.
54009
54010         * tests/test-gc-sha1.c: New file.
54011
54012 2005-10-17  Simon Josefsson  <jas@extundo.com>
54013
54014         * m4/md5.m4: Remove call to uint32_t.m4.
54015
54016 2005-10-17  Simon Josefsson  <jas@extundo.com>
54017
54018         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54019
54020         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54021         md5.h.
54022
54023         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54024
54025         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54026
54027 2005-10-17  Simon Josefsson  <jas@extundo.com>
54028
54029         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54030
54031 2005-10-17  Simon Josefsson  <jas@extundo.com>
54032
54033         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54034
54035 2005-10-17  Simon Josefsson  <jas@extundo.com>
54036
54037         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54038
54039         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54040
54041 2005-10-17  Bruno Haible  <bruno@clisp.org>
54042
54043         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54044         that it can also be used in a test.
54045
54046 2005-10-16  Bruno Haible  <bruno@clisp.org>
54047
54048         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54049         TESTS_ENVIRONMENT, so that individual tests can augment it.
54050
54051         * gnulib-tool (func_create_testdir): Use an intermediate target for
54052         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54053         macros, like $(ALLOCA_H), which cannot be passed through the command
54054         line.
54055
54056 2005-10-15  Simon Josefsson  <jas@extundo.com>
54057
54058         * modules/rijndael-tests: New file.
54059
54060         * modules/rijndael: New file.
54061
54062 2005-10-15  Simon Josefsson  <jas@extundo.com>
54063
54064         * m4/rijndael.m4: New file.
54065
54066 2005-10-15  Simon Josefsson  <jas@extundo.com>
54067
54068         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54069
54070         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54071
54072 2005-10-14  Simon Josefsson  <jas@extundo.com>
54073
54074         * tests/test-arcfour.c: New file.
54075
54076         * modules/arcfour, modules/arcfour-tests: New files.
54077
54078 2005-10-14  Simon Josefsson  <jas@extundo.com>
54079
54080         * m4/arcfour.m4: New file.
54081
54082 2005-10-14  Simon Josefsson  <jas@extundo.com>
54083
54084         * lib/arcfour.h, lib/arcfour.c: New files.
54085
54086 2005-10-14  Roland McGrath  <roland@redhat.com>
54087
54088         Import from libc.  [BZ #1331]
54089         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54090         macro argument.
54091         Reported by Matej Vela <vela@debian.org>.
54092
54093 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54094
54095         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54096         include <wchar.h>; no longer needed.
54097
54098 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54099
54100         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54101
54102 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54103         and  Ulrich Drepper  <drepper@redhat.com>
54104
54105         Import from libc.
54106         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54107         instead of inline stream orientation test and two separate
54108         function calls.  Pay no attention to USE_IN_LIBIO.
54109
54110 2005-10-13  Simon Josefsson  <jas@extundo.com>
54111
54112         * modules/gc-hmac-md5-tests: New file.
54113
54114         * tests/test-gc-hmac-sha1.c: New file.
54115
54116         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54117
54118         * modules/gc-hmac-md5-tests: New file.
54119
54120         * tests/test-gc-md5.c: New file.
54121
54122         * modules/gc-md5-tests: New file.
54123
54124 2005-10-13  Simon Josefsson  <jas@extundo.com>
54125
54126         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54127         Move memory allocation outside of loop.
54128
54129 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54130
54131         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54132         intermediate directory is in a read-only file system.  Problem
54133         reported by Eric Blake.
54134
54135 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54136
54137         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54138
54139 2005-10-12  Simon Josefsson  <jas@extundo.com>
54140
54141         * tests/test-hmac-sha1.c: New file.
54142
54143         * modules/hmac-sha1-tests: New file.
54144
54145         * modules/hmac-sha1: New file.
54146
54147 2005-10-12  Simon Josefsson  <jas@extundo.com>
54148
54149         * modules/gc-sha1: New file.
54150
54151 2005-10-12  Simon Josefsson  <jas@extundo.com>
54152
54153         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54154
54155         * tests/test-gc-pbkdf2-sha1.c: New file.
54156
54157 2005-10-12  Simon Josefsson  <jas@extundo.com>
54158
54159         * modules/gc-md5, modules/gc-hmac-md5: New files.
54160
54161         * modules/gc (Files): Remove md5, memxor and hmac files.
54162
54163 2005-10-12  Simon Josefsson  <jas@extundo.com>
54164
54165         * m4/gc-pbkdf2-sha1.m4: New file.
54166
54167         * m4/gc-hmac-sha1.m4: New file.
54168
54169         * m4/gc-sha1: New file.
54170
54171         * m4/hmac-sha1.m4: New file.
54172
54173 2005-10-12  Simon Josefsson  <jas@extundo.com>
54174
54175         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54176
54177         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54178
54179 2005-10-12  Simon Josefsson  <jas@extundo.com>
54180
54181         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54182         suggested by Bruno Haible <bruno@clisp.org>.
54183
54184 2005-10-12  Simon Josefsson  <jas@extundo.com>
54185
54186         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54187
54188 2005-10-12  Simon Josefsson  <jas@extundo.com>
54189
54190         * lib/gc-pbkdf2-sha1.c: New file.
54191
54192         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54193
54194 2005-10-12  Simon Josefsson  <jas@extundo.com>
54195
54196         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54197
54198         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54199
54200 2005-10-12  Simon Josefsson  <jas@extundo.com>
54201
54202         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54203         GC_USE_HMAC_MD5, respectively.
54204
54205         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54206         (gc_md5): Fix typo.
54207
54208         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54209
54210         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54211
54212         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54213
54214 2005-10-12  Bruno Haible  <bruno@clisp.org>
54215
54216         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54217         Reported by Stepan Kasal <kasal@ucw.cz>.
54218
54219 2005-10-11  Simon Josefsson  <jas@extundo.com>
54220
54221         * tests/test-crc.c: New file.
54222
54223         * modules/crc, modules/crc-tests: New files.
54224
54225 2005-10-11  Simon Josefsson  <jas@extundo.com>
54226
54227         * m4/crc.m4: New file.
54228
54229 2005-10-11  Simon Josefsson  <jas@extundo.com>
54230
54231         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54232
54233         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54234
54235         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54236
54237 2005-10-11  Simon Josefsson  <jas@extundo.com>
54238
54239         * lib/crc.h, lib/crc.c: New files.
54240
54241         * lib/gc.h (gc_hash_buffer): Add doc.
54242
54243 2005-10-11  Bruno Haible  <bruno@clisp.org>
54244
54245         * modules/c-strcasestr: New file.
54246         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54247
54248 2005-10-11  Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/c-strcase: New file.
54251         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54252
54253 2005-10-11  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/strcasecmp.c: Include limits.h.
54256         (strcasecmp): Avoid integer overflow on exotic platforms.
54257         * lib/strncasecmp.c: Include limits.h.
54258         (strncasecmp): Avoid integer overflow on exotic platforms.
54259         Reported by Paul Eggert.
54260
54261 2005-10-11  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/c-strcasestr.h: New file, from GNU gettext.
54264         * lib/c-strcasestr.c: New file, from GNU gettext.
54265
54266 2005-10-11  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/c-strcase.h: New file, from GNU gettext.
54269         * lib/c-strcasecmp.c: New file, from GNU gettext.
54270         * lib/c-strncasecmp.c: New file, from GNU gettext.
54271
54272 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54273
54274         * modules/mempcpy (License): GPL -> LGPL.
54275         * modules/strchrnul (License): Likewise.
54276         * modules/sysexits (License): Likewise.
54277
54278 2005-10-08  Simon Josefsson  <jas@extundo.com>
54279
54280         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54281
54282 2005-10-07  Simon Josefsson  <jas@extundo.com>
54283
54284         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54285
54286 2005-10-06  Simon Josefsson  <jas@extundo.com>
54287
54288         * tests/test-hmac-md5.c: New file.
54289
54290         * modules/hmac-md5-tests: New file.
54291
54292         * modules/hmac-md5: New file.
54293
54294 2005-10-06  Simon Josefsson  <jas@extundo.com>
54295
54296         * m4/hmac-md5.m4: New file.
54297
54298         * m4/memxor.m4: Require gl_C_RESTRICT.
54299
54300 2005-10-06  Simon Josefsson  <jas@extundo.com>
54301
54302         * lib/memxor.c (memxor): Avoid casts and warnings.
54303
54304 2005-10-06  Simon Josefsson  <jas@extundo.com>
54305
54306         * lib/hmac-md5.c: New file.
54307
54308         * lib/hmac.h: New file.
54309
54310 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54313         promotes to int, not unsigned int, to catch the AIX 5.3
54314         compiler bug.
54315
54316 2005-10-05  Simon Josefsson  <jas@extundo.com>
54317
54318         * modules/memxor: New file.
54319
54320         * modules/iconv (Files): Move config.rpath to havelib, it is used
54321         there.
54322
54323         * modules/havelib (Files): Add config.rpath.
54324
54325 2005-10-05  Simon Josefsson  <jas@extundo.com>
54326
54327         * m4/memxor.m4: New file.
54328
54329 2005-10-05  Simon Josefsson  <jas@extundo.com>
54330
54331         * lib/memxor.c (memxor): Fix compiler error.
54332
54333         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54334         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54335
54336         * lib/memxor.h, lib/memxor.c: New files.
54337
54338         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54339         we assume all systems have it, suggested by Jim Meyering
54340         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54341         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54342         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54343         same reasons.
54344
54345 2005-10-05  Simon Josefsson  <jas@extundo.com>
54346
54347         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54348
54349 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54350
54351         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54352         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54353         needed, since the source code now assumes these .h files.
54354
54355 2005-10-05  Derek Price  <derek@ximbiot.com>
54356
54357         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54358
54359 2005-10-05  Bruno Haible  <bruno@clisp.org>
54360
54361         * modules/stdint (License): Change to LGPL.
54362
54363 2005-10-04  Simon Josefsson  <jas@extundo.com>
54364
54365         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54366         D. Baushke" <mdb@gnu.org>.
54367
54368 2005-10-04  Bruno Haible  <bruno@clisp.org>
54369
54370         * lib/verify.h (verify_true): Provide alternative definition for C++.
54371
54372 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54373
54374         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54375         (SSIZE_MAX): New macro, if not already defined.
54376         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54377         than 2 GiB.
54378
54379 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54380
54381         Sync from coreutils.
54382         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54383         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54384         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54385         ULLONG_MAX doesn't work with 2.7.2.1.
54386
54387 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54388
54389         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54390         From Ben Pfaff.
54391
54392         * modules/exclude (Depends-on): Depend on verify.
54393         * modules/strtoimax (Depends-on): Likewise.
54394         * modules/utimecmp (Depends-on): Likewise.
54395
54396 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54397
54398         * lib/exclude.c: Include verify.h.
54399         (verify): Remove.  All callers changed to use verify.h's version.
54400         * lib/strtoimax.c: Likewise.
54401         * lib/utimecmp.c: Likewis.e
54402
54403         Sync from coreutils.
54404         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54405         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54406         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54407         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54408         bother returning ENOSYS if settimeofday or stime fails; just let
54409         them return whatever errno they want to return.
54410         * lib/utimens.c: Include unistd.h, for dup2.
54411         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54412         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54413
54414 2005-10-02  Jim Meyering  <jim@meyering.net>
54415
54416         Sync from coreutils.
54417         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54418         from glibc-2.2.5 that fails for read-only files.
54419
54420 2005-10-02  Jim Meyering  <jim@meyering.net>
54421
54422         Sync from coreutils.
54423         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54424         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54425         `#if HAVE_CONFIG_H'.
54426         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54427         Remove AT_FDCWD test.
54428         Do not consume the fd unless successful.
54429         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54430         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54431         block, so that we don't even try to compile it if settimeofday is
54432         available.  This works around a compilation failure on OSF1 V5.1,
54433         due to stime requiring a `long int*' while tv_sec is `int'.
54434
54435 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54436
54437         Sync from coreutils.
54438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54439         against `yes', rather than just testing for nonempty.
54440
54441 2005-10-01  Simon Josefsson  <jas@extundo.com>
54442
54443         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54444         and Darwin.
54445
54446         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54447         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54448         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54449         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54450         Check if struct addrinfo is declared.
54451
54452 2005-10-01  Simon Josefsson  <jas@extundo.com>
54453
54454         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54455         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54456         AI_* and EAI_* definitions.  Protect function declarations.
54457
54458 2005-10-01  Jim Meyering  <jim@meyering.net>
54459
54460         Sync from coreutils.
54461
54462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54463         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54464         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54466         in the inet and nsl libraries.  Required on Solaris 5.7.
54467
54468 2005-10-01  Jim Meyering  <jim@meyering.net>
54469
54470         Sync from coreutils.
54471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54472         in the inet and nsl libraries.  Required on Solaris 5.7.
54473
54474 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54475
54476         * lib/getdelim.c (getdelim): Remove unused variables.
54477
54478 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54481         so that the code works even with ancient cpp.  Portability problem
54482         with GCC 2.7.2.1 reported by Thomas M.Ott.
54483
54484 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         * modules/regex (Depends-on): Add strcase.
54487
54488         * modules/gethostname (Licence): Change from GPL to LGPL, since
54489         gethostname.c is a trivial implementation of a standard library
54490         function.
54491         * modules/poll (License): Change from GPL to LGPL, since it's
54492         derived from LGPL code.
54493
54494 2005-09-27  Jim Meyering  <jim@meyering.net>
54495
54496         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54497         HAVE_CONFIG_H.
54498
54499         * lib/intprops.h (signed_type_or_expr__): Define.
54500         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54501         for unsigned types.
54502
54503 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * lib/verify.h (verify_expr): Remove, replacing with:
54506         (verify_true): New macro that returns true instead of void.
54507         (verify_type__): Remove.
54508         (verify): Use verify_true rather than verify_type__.
54509
54510 2005-09-26  Bruno Haible  <bruno@clisp.org>
54511
54512         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54513         is necessary.
54514         (lib_SOURCES): Remove mbchar.c.
54515         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54516         (Files): Add m4/mbrtowc.m4.
54517         * modules/mbiter: Likewise.
54518         * modules/mbuiter: Likewise.
54519
54520 2005-09-26  Bruno Haible  <bruno@clisp.org>
54521
54522         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54523         compile mbchar.c if they are not both present.
54524         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54525         * m4/mbiter.m4 (gl_MBITER): Likewise.
54526         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54527         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54528         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54529
54530 2005-09-25  Jim Meyering  <jim@meyering.net>
54531
54532         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54533         also uses socklen_t.
54534
54535 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * lib/utimens.c (ENOSYS): Define if not already defined.
54538         (futimens): Support having a null PATH if the file descriptor
54539         is nonnegative.
54540
54541         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54542         Remove.
54543         (__attribute): Define to empty unless GCC 3.1 or later.
54544         This works around a core dump on OpenBSD 3.4, which has GCC
54545         2.95.3, which dumps core when given __attribute__(()).  It also
54546         simplifies other tests, since we really don't want to bother with
54547         worrying about which ancient version of GCC supported what.
54548         Original problem reported by Yoann Vandoorselaere, with part of
54549         the fix suggested by Derek Price.
54550
54551 2005-09-24  Jim Meyering  <jim@meyering.net>
54552
54553         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54554         so we can once again use a positive bitfield width of 1 -- now we
54555         don't have to explain why we were using a bitfield width of 2.
54556
54557 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54560         and similarly for the other external symbols.  Problem reported
54561         by James Gallager.
54562
54563         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54564         bug reported by Jim Meyering.
54565
54566         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54567         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54568         not needed, since socklen is a prerequisite module.
54569
54570 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54573         Problem reported by Eric Blake.
54574         (getaddrinfo): Initialize se so that it's not garbage.
54575         Redo internal storage allocation so that it doesn't make unportable
54576         assumptions about alignment.
54577         Fix a memory leak.
54578
54579         * lib/utimens.c (futimens): Use futimesat if available.
54580         Prefer it to futimes since it doesn't have the futimes bug.
54581
54582         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54583         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54584         Instead, declare a function that returns a pointer to an array,
54585         and use verify_type__ to declare the size of the array.
54586         Problem and germ of a solution reported by Bruno Haible.
54587         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54588         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54589
54590 2005-09-23  Jim Meyering  <jim@meyering.net>
54591
54592         Sync from coreutils.
54593         Correct build failure (socklen_t not defined) on at least
54594         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54595         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54596
54597 2005-09-23  Jim Meyering  <jim@meyering.net>
54598
54599         * modules/getaddrinfo (Depends-on): Add socklen.
54600
54601 2005-09-23  Bruno Haible  <bruno@clisp.org>
54602
54603         * tests/test-verify.c: New file.
54604
54605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54606
54607         Sync from coreutils.
54608
54609         * modules/argmatch (Depends-on): Add verify.
54610         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54611         unistd-safer.
54612         * modules/save-cwd (Depends-on): Likewise.
54613
54614         * modules/openat (Files): Add lib/openat-die.c.
54615         (Depends-on): Remove error, exitfail.
54616         Add dirname.
54617
54618         * modules/verify: New file.
54619         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54620         with "verify" module.
54621
54622 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         Sync from coreutils.
54625
54626         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54627         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54628         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54629         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54630         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54631         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54632         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54633         Don't bother checking for string.h, stdlib.h, unistd.h.
54634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54635         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54636         module's job.
54637         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54638         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54639
54640         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54641         (gl_GETDATE): Use it.
54642
54643         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54644
54645 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54646
54647         Sync from coreutils.
54648
54649         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54650         stat-time.h.
54651         * lib/argmatch.h: Include verify.h
54652         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54653         (ARGMATCH_ASSERT): Remove; unused.
54654         * lib/canonicalize.c: Assume STDC_HEADERS.
54655         * lib/exclude.c: Include "strcase.h".
54656         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54657         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54658         and stdio-safer.h.
54659         (getusershell): Call fopen, not fopen_safer.
54660         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54661         Do not include unistd-safer.h.
54662         (save_cwd): Don't call fd_safer; no longer needed
54663         now that we include fcntl--.h.
54664
54665         * lib/getdate.y (relative_time): New type.
54666         (RELATIVE_TIME_0): New constant.
54667         (parser_control): Use relative_time instead of doing it ourselves.
54668         (%union): Add new relative_time rel member.
54669         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54670         Now typeless.
54671         (relunit, relunit_snumber): Now of type rel.
54672         (zone, rel, relunit, get_date): Adjust to above changes.
54673
54674         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54675         Do not include unistd-safer.h.
54676         (getloadavg): Don't call fd_safer; no longer needed
54677         now that we include fcntl--.h.
54678
54679         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54680         (make_dir_parents): Treat ENOSYS like EEXIST.
54681
54682         Improve quality of diagnostics on restore_cwd failure.
54683         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54684         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54685         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54686         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54687         each time through the loop.  Do not diagnose restore_cwd failure;
54688         that is the caller's job (and perhaps the caller does not care).
54689
54690         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54691         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54692         If the file already exists but is not a directory, don't bother
54693         to try to make its parents.
54694         Close potential file descriptor leak if we can't chdir("/") (!).
54695         Don't always return true if chdir($PWD) fails; return true only
54696         if the requested action was done successfully (except for the
54697         chdir($PWD)).
54698         Don't log final directory unless we actually made it.
54699         Refactor to avoid duplicate code to fix up permissions.
54700         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54701
54702         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54703         to make it a bit faster and (I hope) clearer.
54704         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54705         Fix bug in formats like %2N.
54706
54707         * lib/verify.h: New file.
54708
54709 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         Sync from coreutils.
54712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54713
54714 2005-09-22  Jim Meyering  <jim@meyering.net>
54715
54716         Sync from coreutils.
54717
54718         * m4/lstat.m4 (gl_FUNC_LSTAT):
54719         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54720         Remove obsolete comment.
54721         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54722         * m4/xstrtod.m4: Likewise.
54723
54724         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54725
54726 2005-09-22  Jim Meyering  <jim@meyering.net>
54727
54728         Sync from coreutils.
54729
54730         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54731
54732         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54733         the .tm_year member, since otherwise gcc-4.0 would now warn about
54734         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54735
54736         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54737         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54738
54739         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54740         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54741         when run in a time zone for which daylight savings time is in effect
54742         for the starting date.
54743
54744         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54745         stop us from restricting permissions of just-created absolute-named
54746         directories.
54747         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54748         to restore initial working directory.
54749         * lib/mkdir-p.c (make_dir_parents): New parameter:
54750         different_working_dir, to tell caller if/when we change the working
54751         directory and are unable to return to the initial one.
54752         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54753         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54754         `return false'.  This fixes a bug introduced on 2004-07-30.
54755
54756         * lib/openat.c (fdopendir): Be sure to close the supplied
54757         file descriptor before returning.  This makes our replacement
54758         implementation a little closer to Solaris's, where fdopendir
54759         ties the file descriptor to the returned DIR* pointer.
54760         * lib/openat.c (unlinkat): New function.
54761         * lib/openat.h (unlinkat): Add prototype.
54762         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54763         (openat_restore_fail): Rename from openat_restore_die.
54764         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54765
54766         Provide an alternative to exiting immediately upon save_cwd or
54767         restore_cwd failure.  Now, an application can arrange e.g.,
54768         to perform a longjump in that case.
54769         * lib/openat.c: Include dirname.h.
54770         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54771         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54772         and openat_restore_die rather than calling error directly.
54773         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54774
54775         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54776         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54777         define.
54778
54779         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54780         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54781                             int utc, int nanoseconds);
54782         Background:
54783         date should not have to allocate a megabyte of virtual memory to
54784         handle a format argument like +%1048575T.  When implemented with
54785         strftime, it must allocate such a buffer, use strftime to fill it
54786         in, print it, then free it.
54787         With fprintftime, it simply prints everything and exits.
54788         With no need for memory allocation, that's one fewer way to fail.
54789         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54790         optional field width, not before, so we accept %9:z, not %:9z.
54791         (my_strftime): Be sure to use L_('x') for literals.
54792
54793         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54794         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54795         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54796         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54797         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54798         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54799         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54800         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54801         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54802         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54803         * lib/xgethostname.c, lib/xreadlink.c:
54804         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54805
54806         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54807         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54808         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54809         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54810         and don't include <sys/file.h>).
54811
54812 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54813
54814         Sync from coreutils.
54815
54816         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54817         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54818         [!LDAV_DONE]: Avoid unused variable warning.
54819
54820 2005-09-21  Bruno Haible  <bruno@clisp.org>
54821
54822         * lib/unicodeio.h (unicode_to_mb): New declaration.
54823
54824 2005-09-20  Derek Price  <derek@ximbiot.com>
54825
54826         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54827         getaddrinfo.h.
54828
54829 2005-09-20  Bruno Haible  <bruno@clisp.org>
54830
54831         * gnulib-tool: Remove trailing slashes from the values specified for
54832         --source-base, --m4-base, --tests-base, --aux-dir.
54833         Suggested by Simon Josefsson <jas@extundo.com>.
54834
54835 2005-09-20  Bruno Haible  <bruno@clisp.org>
54836
54837         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54838         func_modules_to_filelist, func_import, func_create_testdir): Make all
54839         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54840         change when gnulib-tool is invoked in a different locale.
54841
54842 2005-09-19  Simon Josefsson  <jas@extundo.com>
54843
54844         * m4/socklen.m4: Fix typo.
54845
54846 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54847
54848         Use a consistent style for including <config.h>.
54849         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54850         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54851         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54852         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54853         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54854         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54855         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54856         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54857         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54858         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54859         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54860         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54861         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54862         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54863         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54864         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54865         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54866         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54867         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54868         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54869         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54870         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54871         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54872         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54873         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54874         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54875         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54876         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54877         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54878         lib/xstrtoumax.c, lib/yesno.c:
54879         Standardize inclusion of config.h.
54880         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54881         lib/inttostr.h:  Removed inclusion of config.h from header files.
54882         * lib/inttostr.c:  Adjusted in-tree users.
54883         * lib/timespec.h: Remove superfluous warning to include config.h.
54884         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54885         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54886         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54887         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54888         config.h with HAVE_CONFIG_H.
54889
54890 2005-09-19  Jim Meyering  <jim@meyering.net>
54891
54892         * modules/pathmax (License): Change to LGPL.
54893
54894 2005-09-19  Derek Price  <derek@ximbiot.com>
54895
54896         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54897
54898 2005-09-19  Bruno Haible  <bruno@clisp.org>
54899
54900         * gnulib-tool (import): Provide default for --tests-base.
54901
54902 2005-09-19  Bruno Haible  <bruno@clisp.org>
54903
54904         * doc/quote.texi: New file, extracted from gnulib.texi.
54905         * doc/ctime.texi: New file, extracted from gnulib.texi.
54906         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54907         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54908         * doc/gnulib.texi: Include them.
54909
54910 2005-09-18  Bruno Haible  <bruno@clisp.org>
54911
54912         Portability fix.
54913         * gnulib-tool (func_readlink): New function.
54914         (func_ln_if_changed): Use it.
54915
54916 2005-09-18  Bruno Haible  <bruno@clisp.org>
54917
54918         * gnulib-tool: Support --with-tests also with --import.
54919         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54920         (func_import): Use variables $testsbase and $inctests. Emit a
54921         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54922         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54923         SUBDIRS += $testsdir.
54924         (func_create_testdir): Update.
54925
54926 2005-09-18  Bruno Haible  <bruno@clisp.org>
54927
54928         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54929         instead of $dry_run.
54930         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54931         (func_ln_if_changed): Don't handle dry-run here.
54932         (func_import): In dry-run mode, detect more precisely which actions
54933         would be performed, and don't use "...ing" verbs.
54934
54935 2005-09-18  Bruno Haible  <bruno@clisp.org>
54936
54937         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54938         (func_import): Use join on two temporary files instead of three nested
54939         loops, in order to determine which files are new or old.
54940
54941 2005-09-18  Bruno Haible  <bruno@clisp.org>
54942
54943         * gnulib-tool (func_import): Comment out code that spits out the
54944         new files with --dry-run.
54945
54946 2005-09-18  Bruno Haible  <bruno@clisp.org>
54947
54948         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54949
54950 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54951
54952         * lib/stat-time.h: New file.
54953         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54954         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54955         in a different way.
54956         (timespec_cmp): New function.
54957         * lib/utimecmp.c: Include stat-time.h.
54958         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54959         members exist, not on the obsolescent ST_MTIM_NSEC.
54960         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54961
54962 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54963
54964         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54965
54966 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * MODULES.html.sh (File system functions): Add stat-time.
54969         * modules/stat-time: New file.
54970         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54971         is now done in a different way, by the stat-time module.
54972         * modules/utimecmp (Depends-on): Add stat-time.
54973
54974 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * m4/st_mtim.m4: Remove.  Superseded by...
54977         * m4/stat-time.m4: New file.
54978         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54979         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54980
54981 2005-09-15  Derek Price  <derek@ximbiot.com>
54982
54983         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54984
54985 2005-09-15  Derek Price  <derek@ximbiot.com>
54986
54987         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54988         * lib/regex_internal.c: Ditto, using this...
54989         (__GNUC_PREREQ): ...new macro.
54990         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54991         using...
54992         (__GNUC_PREREQ): ...this new macro.
54993
54994         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54995
54996 2005-09-15  Derek Price  <derek@ximbiot.com>
54997             Paul Eggert  <eggert@cs.ucla.edu>
54998
54999         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55000         changes, consolidating in...
55001         * lib/regex_internal.h: ...this file.
55002
55003 2005-09-13  Jim Meyering  <jim@meyering.net>
55004
55005         * lib/canon-host.c: Filter through gnu indent and reword comments
55006         slightly.
55007         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55008
55009 2005-09-13  Derek Price  <derek@ximbiot.com>
55010
55011         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55012         failure.
55013         Reported by Jim Meyering  <jim@meyering.net>.
55014
55015 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55016
55017         * lib/base64.c: Typo.
55018         (base64_encode): Put b64str in initialized data section.
55019
55020 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         Merge glibc and coreutils changes into gnulib, plus a few
55023         extra fixes.
55024         * lib/md5.c: Use #error rather than a string.
55025         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55026         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55027         (__attribute__): Define to empty for non recent-GCC.
55028         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55029         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55030         Renamed from their non-__ counterparts, with new macros replacing
55031         them if not _LIBC.  Add __THROW attribute.
55032         (rol): Remove.
55033         (struct md5_ctx): Align buffer if using GCC.
55034         * lib/sha1.h (struct sha1_ctx): Likewise.
55035         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55036         The old name was backwards.
55037         (NOTSWAP): Remove; not used.
55038         (rol): New macro, moved here from md5.h.
55039         (sha1_process_block): Remove a FIXME that doesn't make sense.
55040
55041 2005-09-12  Derek Price  <derek@ximbiot.com>
55042
55043         Return usable errors from canon-host.
55044         * lib/canon-host.h: New file.
55045         * lib/canon-host.c (canon_host): Wrap...
55046         (canon_host_r): ...this new function, which now relies exclusively on
55047         getaddrinfo.
55048         (ch_strerror): New function.
55049         (last_cherror): New global.
55050         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55051         interface.
55052         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55053         void *.
55054         (freeaddrinfo): Free ai->ai_canonname when set.
55055
55056 2005-09-12  Derek Price  <derek@ximbiot.com>
55057
55058         Make canon-host require getaddrinfo.
55059         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55060         AC_LIBSOURCE canon-host.h.  Call...
55061         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55062         gl_GETADDRINFO.
55063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55064
55065 2005-09-12  Derek Price  <derek@ximbiot.com>
55066
55067         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55068         LGPL.
55069         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55070
55071 2005-09-12  Derek Price  <derek@ximbiot.com>
55072
55073         * lib/gai_strerror.c: Include config.h when available.  Include
55074         getaddrinfo.h before other headers to test interface.
55075         Reported by Larry Jones <lawrence.jones@ugs.com>.
55076
55077 2005-09-12  Derek Price  <derek@ximbiot.com>
55078             Paul Eggert  <eggert@cs.ucla.edu>
55079
55080         * modules/glob (Files): Add glob-libc.h.
55081
55082 2005-09-12  Derek Price  <derek@ximbiot.com>
55083             Paul Eggert  <eggert@cs.ucla.edu>
55084
55085         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55086         glob_.h, glob-libc.h.
55087         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55088
55089 2005-09-12  Derek Price  <derek@ximbiot.com>
55090             Paul Eggert  <eggert@cs.ucla.edu>
55091
55092         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55093         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55094         protecting things that should be done only in gnulib contexts.
55095         * lib/glob_.h: New file, containing only the glob things needed for
55096         gnulib.
55097         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55098         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55099         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55100         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55101         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55102         and to respect the namespace rules better.
55103
55104 2005-09-08  Simon Josefsson  <jas@extundo.com>
55105
55106         * modules/socklen: New file.
55107
55108 2005-09-08  Simon Josefsson  <jas@extundo.com>
55109
55110         * m4/socklen.m4: New file.
55111
55112 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         * modules/utimens (Files): Add m4/utimbuf.m4, since
55115         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55116         Reported by Sergey Poznyakoff.
55117
55118 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55119
55120         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55121         definitions, since that's the preferred style in glibc.
55122         Fix a minor spacing issue, and update copyright notice to match
55123         glibc's.
55124
55125 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55128
55129 2005-09-06  Simon Josefsson  <jas@extundo.com>
55130
55131         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55132         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55133
55134 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55137         warning.
55138
55139 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * config/srclist.txt: Add glibc bug 1302.
55142
55143 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         Change bitset word type from unsigned int to unsigned long int,
55146         as this has better performance on typical 64-bit hosts.
55147         Port bitset code to hosts with unusual word sizes.
55148         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55149         (build_collating_symbol):
55150         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55151         argument is a bitset.  This is merely a style issue, but it makes
55152         it clearer that an entire array is expected.
55153         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55154         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55155         Port to the case where bitset_word is not the same as unsigned int.
55156         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55157         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55158         Likewise.
55159         * lib/regexec.c (check_dst_limits_calc_pos_1,
55160         check_subexp_matching_top):
55161         (build_trtable, group_nodes_into_DFAstates):
55162         Likewise.
55163         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55164         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55165         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55166         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55167         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55168         * lib/regcomp.c (optimize_subexps, lower_subexp):
55169         Work even if bitset_word has holes in its bitwise representation.
55170         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55171         * lib/regexec.c (check_dst_limits_calc_pos_1,
55172         check_subexp_matching_top):
55173         Likewise.
55174         * lib/regex_internal.c (re_string_reconstruct):
55175         Don't assume UCHAR_MAX == 255.
55176         * lib/regex_internal.h (bitset_set_all): Likewise.
55177         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55178         All uses changed.
55179         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55180         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55181         All uses changed.
55182         (BITSET_WORD_MAX): New macro.
55183         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55184         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55185         (bitset_empty, bitset_copy):
55186         Prefer sizeof (bitset) to multiplying it out ourselves.
55187         (bitset_not_merge): Remove; unused.
55188         (bitset_contain): Return bool, not unsigned int with one bit on.
55189         All callers changed.
55190         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55191         alignment than re_node_set; do this by defining a new internal
55192         type struct dests_alloc and using it to allocate memory.
55193
55194 2005-09-05  Bruno Haible  <bruno@clisp.org>
55195
55196         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55197         links.
55198
55199 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55200
55201         * modules/size_max (Makefile.am): Add size_max.h
55202
55203 2005-09-04  Derek Price  <derek@ximbiot.com>
55204
55205         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55206
55207 2005-09-03  Simon Josefsson  <jas@extundo.com>
55208
55209         * gnulib-tool: Fix typo.
55210
55211 2005-09-03  Simon Josefsson  <jas@extundo.com>
55212
55213         * config/srclist.txt: Add glibc bug 1293.
55214
55215 2005-09-03  Derek Price  <derek@ximbiot.com>
55216
55217         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55218         From Larry Jones <lawrence.jones@ugs.com>.
55219
55220 2005-09-02  Simon Josefsson  <jas@extundo.com>
55221
55222         * modules/socklen: New file.
55223
55224 2005-09-02  Simon Josefsson  <jas@extundo.com>
55225
55226         * modules/havelib: New module.
55227
55228         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55229         Use havelib.
55230
55231 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55232
55233         Check for arithmetic overflow when calculating sizes, to prevent
55234         some buffer-overflow issues.  These patches are conservative, in the
55235         sense that when I couldn't determine whether an overflow was possible,
55236         I inserted a run-time check.
55237         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55238         macros.
55239         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55240         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55241         (re_xnrealloc, re_x2nrealloc): New inline functions.
55242         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55243         parse_bracket_exp):
55244         (build_equiv_class, build_charclass): Check for arithmetic overflow
55245         in size expression calculations.
55246         * lib/regex_internal.c (re_string_realloc_buffers):
55247         (build_wcs_upper_buffer, re_node_set_add_intersect):
55248         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55249         (re_dfa_add_node, register_state): Likewise.
55250         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55251         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55252         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55253         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55254
55255 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55258         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55259
55260 2005-09-02  Bruno Haible  <bruno@clisp.org>
55261
55262         Support for lib vs. lib64 distinction on biarch platforms.
55263         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55264         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55265         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55266
55267 2005-09-02  Bruno Haible  <bruno@clisp.org>
55268
55269         * gnulib-tool (import): In the other first-use case, provide defaults
55270         as well.
55271
55272 2005-09-02  Bruno Haible  <bruno@clisp.org>
55273
55274         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55275         patches not yet found in the latest gettext release.
55276
55277 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55278
55279         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55280         to avoid a collision with bits/local_lim.h in glibc.
55281         All uses changed.  Problem reported by Dmitry V. Levin in
55282         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55283
55284         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55285         bugs in int versus size_t comparisons.
55286         (re_string_context_at): Fix bug where the code assumed that
55287         Idx is signed.
55288
55289         Use bool where appropriate.
55290         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55291         All callers changed.
55292         (calc_eclosure_iter): Likewise, for ROOT arg.
55293         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55294         (build_charclass_op): Likewise, for NON_MATCH arg.
55295         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55296         (re_string_construct_common): Likewise, for ICASE arg.
55297         * lib/regexec.c (re_search_2_stub, re_search_stub):
55298         Likewise, for RET_LEN arg.
55299         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55300         (set_regs): Likewise, for FL_BACKTRACK arg.
55301         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55302         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55303         (calc_eclosure_iter, parse_bracket_exp):
55304         Use bool for internal variables that are booleans.
55305         * lib/regexec.c (re_search_internal, check_matching,
55306         proceed_next_node):
55307         (set_regs, build_sifted_states, sift_states_bkref):
55308         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55309         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55310         (find_collation_sequence_value):
55311         Likewise.
55312         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55313         (re_node_set_compare):
55314         Return bool, not int. All callers changed.
55315         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55316         (build_trtable, check_node_accept): Likewise.
55317         * lib/regex_internal.h: Include stdbool.h.
55318
55319         Fix bugs uncovered when converting to bool.
55320         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55321         failure instead of charging ahead blindly.
55322         * lib/regex_internal.c (register_state): Likewise.
55323         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55324         for freeing internal storage.
55325         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55326         bitset pieces used as boolean, to avoid undefined behavior
55327         on hosts that do int overflow checking.
55328
55329 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55330
55331         * config/srclist.txt: Add glibc bugs 1285-1287.
55332
55333 2005-09-01  Jim Meyering  <jim@meyering.net>
55334
55335         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55336         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55337         Require gl_STAT_MACROS, too.
55338
55339 2005-09-01  Bruno Haible  <bruno@clisp.org>
55340
55341         * gnulib-tool (import): In the first-use case, provide defaults.
55342
55343 2005-09-01  Bruno Haible  <bruno@clisp.org>
55344
55345         * gnulib-tool (func_import): Remove the .tmp files.
55346
55347 2005-09-01  Bruno Haible  <bruno@clisp.org>
55348
55349         * gnulib-tool (func_import): Fix handling of symbolic links.
55350
55351 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55354         old glibc regex code mishandles strings longer than 2**31 bytes.
55355         This patch fixes this when the regex code is used in gnulib
55356         (i.e., outside glibc).
55357
55358         This patch should not affect the use of the regex code inside
55359         glibc.  No doubt this problem also needs to be handled for glibc
55360         as well, but the result will be an incompatible change to the
55361         glibc ABI, and the old ABI will have to be supported too.  That
55362         can be the the subject for another patch.
55363
55364         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55365         governing whether the rest of this patch is active.  By default,
55366         the macro is disabled and the patch has no effect.
55367         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55368         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55369         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55370         (re_match_2, re_set_registers): Use the new types.
55371         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55372         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55373         New macros.
55374         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55375         (re_string_context_at, bin_tree_t, re_dfastate_t):
55376         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55377         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55378         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55379         (re_string_char_size_at, re_string_wchar_at):
55380         (re_string_elem_size_at):
55381         Use the new types and macros to port to 64-bit hosts.
55382         Use unsigned types for internal values, so that the code
55383         mostly works even for arrays larger than SSIZE_MAX.
55384         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55385         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55386         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55387         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55388         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55389         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55390         (calc_inveclosure, parse_dup_op, build_range_exp):
55391         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55392         (fetch_number, create_token_tree, mark_opt_subexp):
55393         Likewise.
55394         * lib/regex_internal.c (re_string_construct_common,
55395         create_ci_newstate):
55396         (create_cd_newstate, re_string_allocate, re_string_construct):
55397         (re_string_realloc_buffers, build_wcs_upper_buffer):
55398         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55399         (re_string_reconstruct, re_string_peek_byte_case):
55400         (re_string_fetch_byte_case, re_string_context_at):
55401         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55402         (re_node_set_init_copy, re_node_set_add_intersect):
55403         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55404         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55405         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55406         (re_acquire_state, re_acquire_state_context, register_state):
55407         Likewise.
55408         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55409         search_cur_bkref_entry):
55410         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55411         (re_search_internal, re_search_2_stub, re_search_stub)
55412         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55413         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55414         (update_cur_sifted_state, check_dst_limits):
55415         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55416         (check_subexp_limits, sift_states_bkref, merge_state_array):
55417         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55418         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55419         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55420         (expand_bkref_cache, check_node_accept_bytes):
55421         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55422         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55423         (acquire_init_state_context, check_halt_node_context):
55424         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55425         (sift_states_backward, clean_state_log_if_needed):
55426         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55427         (find_recover_state, transit_state_sb, transit_state_mb):
55428         (transit_state_bkref, build_trtable, match_ctx_clean):
55429         Likewise.
55430         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55431         to work around an assumption that REG_MISSING is negative.
55432
55433         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55434         (seek_collating_symbol_entry) [defined _LIBC]:
55435         (lookup_collation_sequence_value) [defined _LIBC]:
55436         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55437         Use prototypes rather than old-style function definitions.
55438         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55439         (transit_state_sb) [0]:
55440         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55441
55442         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55443         rm_eo.
55444
55445         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55446         (optimize_subexps, lower_subexp):
55447         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55448         since the signed shift might overflow.  Use 1u<<31 instead.
55449         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55450         Likewise.
55451         * lib/regexec.c (check_dst_limits_calc_pos_1,
55452         check_subexp_matching_top): Likewise.
55453
55454         * lib/regcomp.c (optimize_subexps, lower_subexp):
55455         Use CHAR_BIT rather than 8, for clarity.
55456         * lib/regexec.c (check_dst_limits_calc_pos_1):
55457         (check_subexp_matching_top): Likewise.
55458         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55459         have to worry about portability issues when shifting it left.
55460         Remove no-longer-needed test for table_size > 0.
55461         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55462         in a word, as the resulting behavior is undefined.
55463         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55464         in one case, a <= should have been an <, and in another case the
55465         whole test was missing.
55466         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55467         the standard name CHAR_BIT.
55468         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55469         this is not true on one's complement and signed-magnitude hosts.
55470
55471         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55472         next_last_offset.
55473         (struct re_dfa_t): Remove unused member states_alloc.
55474         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55475
55476 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55479         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55480         and large-file glibc and in 32-bit large-file Solaris.
55481
55482 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55485         lengths fit in regoff_t; this isn't true if regoff_t is the same
55486         width as size_t.
55487         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55488         (= START + RANGE) instead of RANGE.  This avoids overflow
55489         problems when regoff_t is the same width as size_t.
55490         All callers changed.
55491         (re_search_2_stub): Check for overflow when adding the
55492         sizes of the two strings.
55493         (re_search_stub): Check for overflow when adding START
55494         to RANGE; if it occurs, substitute the extreme value.
55495
55496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55497
55498         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55499
55500 2005-08-31  Jim Meyering  <jim@meyering.net>
55501
55502         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55503         a pointer-to-const.
55504         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55505         (register_state): Likewise.
55506         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55507         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55508         (group_nodes_into_DFAstates): Likewise.
55509
55510 2005-08-31  Jim Meyering  <jim@meyering.net>
55511
55512         * check-module: Add a FIXME comment.
55513
55514 2005-08-31  Eric Blake  <ebb9@byu.net>
55515
55516         * modules/unistd-safer (Files): Add unistd--.h.
55517         * modules/stdio-safer (Files): Add stdio--.h.
55518
55519 2005-08-31  Derek Price  <derek@ximbiot.com>
55520
55521         * lib/getdelim.c (getdelim): Return EOF on EOF.
55522         Reported by Larry Jones <lawrence.jones@ugs.com>.
55523
55524 2005-08-31  Bruno Haible  <bruno@clisp.org>
55525
55526         Avoid unnecessary diffs in the generated lib/Makefile.am.
55527         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55528         the generated files.
55529         (func_import): Don't set cmd.
55530
55531 2005-08-31  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/strstr.c: Include <stddef.h>, for NULL.
55534         * lib/strcasestr.c: Likewise.
55535         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55536
55537 2005-08-31  Bruno Haible  <bruno@clisp.org>
55538
55539         * gnulib-tool: New option --macro-prefix.
55540         (func_import): Use macro_prefix.
55541         (import): Handle option --macro-prefix.
55542
55543 2005-08-31  Bruno Haible  <bruno@clisp.org>
55544
55545         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55546         Also use new variables cached_lgpl, cached_libtool.
55547
55548 2005-08-31  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55551         always instantiating them.
55552
55553 2005-08-31  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_import): Read the previous cached settings
55556         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55557         earlier added by gnulib but are now dropped. Warn when a gnulib file
55558         overwrites a non-gnulib file.
55559
55560 2005-08-31  Bruno Haible  <bruno@clisp.org>
55561
55562         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55563         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55564         projects that don't keep autogenerated files in CVS. Put into
55565         actioncmd only the specified modules, not the transitive closure.
55566
55567 2005-08-31  Bruno Haible  <bruno@clisp.org>
55568
55569         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55570         Create directories that shall be filled.
55571         (import): Don't look for gl_* macros in configure.ac. Recurse across
55572         all directories containing a gnulib-cache.m4 files, if meaningful.
55573
55574 2005-08-31  Bruno Haible  <bruno@clisp.org>
55575
55576         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55577         (import): Set seen_libtool when we see gl_LIBTOOL.
55578
55579 2005-08-31  Bruno Haible  <bruno@clisp.org>
55580
55581         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55582         declaration macro definitions from generated gnulib.m4.
55583
55584 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55585
55586         * lib/iconvme.h: Add prototype for iconv_alloc.
55587
55588 2005-08-29  Simon Josefsson  <jas@extundo.com>
55589
55590         * lib/iconvme.c: Fix errno.
55591
55592 2005-08-29  Bruno Haible  <bruno@clisp.org>
55593
55594         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55595         that it works when the directory contains spaces.
55596
55597 2005-08-29  Bruno Haible  <bruno@clisp.org>
55598
55599         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55600
55601 2005-08-29  Bruno Haible  <bruno@clisp.org>
55602
55603         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55604         Emit more advice.
55605
55606 2005-08-29  Bruno Haible  <bruno@clisp.org>
55607         and Stepan Kasal  <kasal@ucw.cz>
55608
55609         * check-module: If more parameters are given, check each of them
55610         separately; add more exceptions, as noted by Jim Meyering.
55611         (check_module): New procedure.
55612         (%exempt_header): Now contains all exceptions.
55613
55614 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55615
55616         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55617
55618 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55619
55620         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55621
55622 2005-08-28  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/gnulib-tool.m4: New file.
55625
55626 2005-08-27  Jim Meyering  <jim@meyering.net>
55627
55628         * modules/unistd-safer (Files): Add pipe-safer.c.
55629         * modules/fcntl-safer (Files): Add creat-safer.c.
55630
55631 2005-08-27  Jim Meyering  <jim@meyering.net>
55632
55633         * m4/stdlib-safer.m4: New file.  From coreutils.
55634         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55635         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55636         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55637         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55638         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55639
55640 2005-08-27  Jim Meyering  <jim@meyering.net>
55641
55642         * lib/fopen-safer.c: Merge minor changes from coreutils.
55643         * lib/dup-safer.c: Likewise.
55644         * lib/fd-safer.c: Likewise.
55645
55646         Merge from coreutils.
55647         * lib/stdio--.h: New file.
55648         * lib/stdlib--.h: New file.
55649         * lib/mkstemp-safer.c: New file.
55650
55651         GNU tar needs these.
55652         * lib/pipe-safer.c: New file.
55653         * lib/creat-safer.c: New file.
55654         * lib/fcntl--.h (creat): Define to creat_safer.
55655         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55656         * lib/unistd--.h (pipe): Define to pipe_safer.
55657         * lib/unistd-safer.h: Declare pipe_safer.
55658
55659 2005-08-26  Simon Josefsson  <jas@extundo.com>
55660
55661         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55662         Haible <bruno@clisp.org>.
55663
55664 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55665
55666         * lib/regex_internal.h: Remove all references to
55667         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55668         or better.
55669         (bitset_not, bitset_merge, bitset_not_merge):
55670         (bitset_mask, re_string_allocate, re_string_construct):
55671         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55672         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55673         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55674         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55675         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55676         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55677         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55678         (re_acquire_state_context):
55679         Remove unnecessary forward decls.
55680         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55681         Put __attribute at function definition,
55682         now that the function decl has been removed.
55683         * lib/regex_internal.c (re_string_peek_byte_case):
55684         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55685         Likewise.
55686
55687 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55688
55689         * m4/regex.m4: Add AC_PREREQ(2.50).
55690         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55691
55692 2005-08-25  Simon Josefsson  <jas@extundo.com>
55693
55694         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55695         __fsetlocking.
55696
55697 2005-08-25  Simon Josefsson  <jas@extundo.com>
55698
55699         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55700         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55701         GLIBC specific code.
55702
55703 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55704
55705         Make regex safe for g++.  This fixes one real bug (an "err"
55706         that should have been "*err").  g++ problem reported by
55707         Sam Steingold.
55708         * lib/regex_internal.h (re_calloc): New macro, consistent with
55709         re_malloc etc.  All callers of calloc changed to use re_calloc.
55710         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55711         not int.  All callers changed.
55712         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55713         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55714         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55715         (find_recover_state): Change "err" to "*err"; this fixes what
55716         appears to be a real bug.
55717         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55718         versus int.
55719
55720 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * modules/regex (Depends-on): Add malloc, since the code
55723         assumes that !malloc(0) means failure.
55724
55725 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55728
55729         alloca modernization/simplification for regex.
55730         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55731         needs to be at the start of the file, and can be moved into
55732         regex_internal.h and simplified.
55733         * lib/regex_internal.h: Include <alloca.h>.
55734         (__libc_use_alloca) [!defined _LIBC]: New macro.
55735         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55736         now works outside glibc.
55737
55738 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * config/srclist.txt: Add glibc bugs 1241, 1245.
55741
55742 2005-08-25  Jim Meyering  <jim@meyering.net>
55743
55744         * lib/open-safer.c: Include <config.h>.
55745         Otherwise, we'd lose LARGEFILE support in any file using
55746         e.g. "fcntl--.h"
55747
55748 2005-08-25  Bruno Haible  <bruno@clisp.org>
55749
55750         * m4/minmax.m4: Require autoconf 2.52.
55751         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55752         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55753         alternatives of translit over the alphabet.
55754         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55755
55756 2005-08-24  Simon Josefsson  <jas@extundo.com>
55757
55758         * tests/test-getpass.c: New file.
55759
55760 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55761
55762         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55763         for GNU regex features.
55764
55765 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55768         * lib/regex.h (regerror): Likewise.
55769
55770         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55771         requires this.  (The code never needed it.)
55772
55773         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55774         All uses of recently-renamed identifiers changed to use the new,
55775         POSIX-compliant names.  The code will build and run just fine
55776         without these changes, but it's better to eat our own dog food
55777         and use the standard-conforming names.
55778
55779         * lib/regex.h: Fix a multitude of POSIX name space violations.
55780         These changes have an effect only for programs that define
55781         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55782         do not change anything for programs compiled in the normal way.
55783         Also, there is no effect on the ABI.
55784
55785         (_REGEX_SOURCE): New macro.
55786         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55787         defined and _GNU_SOURCE is not; this fixes a name space violation.
55788
55789         Rename the following macros to obey POSIX requirements.
55790         The old names are still visible as macros if _REGEX_SOURCE is defined.
55791         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55792         RE_BACKSLASH_ESCAPE_IN_LISTS.
55793         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55794         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55795         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55796         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55797         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55798         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55799         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55800         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55801         (REG_INTERVALS): renamed from RE_INTERVALS.
55802         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55803         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55804         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55805         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55806         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55807         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55808         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55809         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55810         RE_UNMATCHED_RIGHT_PAREN_ORD.
55811         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55812         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55813         (REG_DEBUG): renamed from RE_DEBUG.
55814         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55815         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55816         unusual, since we can't clash with the POSIX REG_ICASE.
55817         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55818         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55819         (REG_NO_SUB): renamed from RE_NO_SUB.
55820         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55821         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55822         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55823         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55824         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55825         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55826         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55827         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55828         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55829         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55830         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55831         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55832         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55833         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55834         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55835         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55836         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55837         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55838         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55839         (REG_FIXED): Renamed from REGS_FIXED.
55840         (REG_NREGS): Renamed from RE_NREGS.
55841
55842         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55843         of other REG_* macros, since POSIX says the user is allowed to
55844         #undef these macros selectively.
55845
55846         (reg_errcode_t): Update comment stating what other tables need
55847         to be consistent.
55848
55849         Rename the following enum values to obey POSIX requirements.
55850         The old names are still visible as macros.
55851         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55852         is not defined, since GNU is supposed to be a superset of POSIX as
55853         much as possible, and since we want reg_errcode_t to be a signed
55854         type for implementation consistency.
55855         (_REG_NOERROR): Renamed from REG_NOERROR.
55856         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55857         (_REG_BADPAT): Renamed from REG_BADPAT.
55858         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55859         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55860         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55861         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55862         (_REG_EBRACK): Renamed from REG_EBRACK.
55863         (_REG_EPAREN): Renamed from REG_EPAREN.
55864         (_REG_EBRACE): Renamed from REG_EBRACE.
55865         (_REG_BADBR): Renamed from REG_BADBR.
55866         (_REG_ERANGE): Renamed from REG_ERANGE.
55867         (_REG_ESPACE): Renamed from REG_ESPACE.
55868         (_REG_BADRPT): Renamed from REG_BADRPT.
55869         (_REG_EEND): Renamed from REG_EEND.
55870         (_REG_ESIZE): Renamed from REG_ESIZE.
55871         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55872         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55873         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55874         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55875         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55876
55877         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55878         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55879         changed.  But support the old name if the new one is not defined
55880         and if _REGEX_SOURCE.
55881
55882         Change the following member names in struct re_pattern_buffer.
55883         The old names are still supported if !_REGEX_SOURCE.
55884         The new names are always supported, regardless of _REGEX_SOURCE.
55885         (re_buffer): Renamed from buffer.
55886         (re_allocated): Renamed from allocated.
55887         (re_used): Renamed from used.
55888         (re_syntax): Renamed from syntax.
55889         (re_fastmap): Renamed from fastmap.
55890         (re_translate): Renamed from translate.
55891         (re_can_be_null): Renamed from can_be_null.
55892         (re_regs_allocated): Renamed from regs_allocated.
55893         (re_fastmap_accurate): Renamed from fastmap_accurate.
55894         (re_no_sub): Renamed from no_sub.
55895         (re_not_bol): Renamed from not_bol.
55896         (re_not_eol): Renamed from not_eol.
55897         (re_newline_anchor): Renamed from newline_anchor.
55898
55899         Change the following member names in struct re_registers.
55900         The old names are still supported if !_REGEX_SOURCE.
55901         The new names are always supported, regardless of _REGEX_SOURCE.
55902         (rm_num_regs): Renamed from num_regs.
55903         (rm_start): Renamed from start.
55904         (rm_end): Renamed from end.
55905
55906         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55907         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55908         Prepend __ to parameter names.
55909
55910         Undo yesterday's changes.
55911
55912 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55913
55914         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55915         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55916         lib/regex.c.
55917
55918 2005-08-24  Jim Meyering  <jim@meyering.net>
55919
55920         Sync from coreutils.
55921         * m4/fcntl-safer.m4: New file.
55922
55923         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55924         and object files for this module.
55925
55926 2005-08-24  Jim Meyering  <jim@meyering.net>
55927
55928         Sync from coreutils.
55929         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55930
55931 2005-08-24  Jim Meyering  <jim@meyering.net>
55932
55933         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55934         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55935
55936 2005-08-24  Jim Meyering  <jim@meyering.net>
55937
55938         * modules/fcntl-safer: New module.
55939         * modules/fts (Depends-on): Add fcntl-safer.
55940         * MODULES.html.sh (File descriptor based Input/Output):
55941         Add fcntl-safer.
55942
55943 2005-08-24  Bruno Haible  <bruno@clisp.org>
55944
55945         Support for unit test modules.
55946         * modules/README: Mention tests modules.
55947         * modules/TEMPLATE-TESTS: New file.
55948         * gnulib-tool: New options --extract-tests-module, --with-tests and
55949         --tests-base (unused for the moment).
55950         (testsbase, inctests): New variables.
55951         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55952         (func_verify_module): Exclude TEMPLATE-TESTS.
55953         (func_verify_nontests_module, func_verify_tests_module): New functions.
55954         (func_get_dependencies): Add implicit dependency for tests modules.
55955         (func_get_tests_module): New function.
55956         (func_modules_transitive_closure): When --with-tests was specified,
55957         include the unit tests as well, unless explicitly avoided.
55958         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55959         (func_emit_tests_Makefile_am): New function.
55960         (func_create_testdir): When --with-tests was specified, emit a
55961         tests/ directory.
55962         * MODULES.html.sh (Future developments): Update.
55963
55964 2005-08-24  Bruno Haible  <bruno@clisp.org>
55965
55966         * modules/tls-tests: New file.
55967         * tests/test-tls.c: New file, from GNU gettext.
55968
55969 2005-08-24  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/lock-tests: New file.
55972         * tests/test-lock.c: New file, from GNU gettext.
55973
55974 2005-08-24  Bruno Haible  <bruno@clisp.org>
55975
55976         * lib/lock.h: Add multiple inclusion guard.
55977         * lib/tls.h: Add multiple inclusion guard.
55978
55979 2005-08-24  Bruno Haible  <bruno@clisp.org>
55980
55981         * gnulib-tool: Add support for the --aux-dir option to
55982         --create-testdir, --create-megatestdir, --test, --megatest.
55983         (func_create_testdir, func_create_megatestdir): Optionally emit a
55984         AC_CONFIG_AUX_DIR directive.
55985         (create-testdir, create-megatestdir, test, megatest): Provide a
55986         default value for $auxdir.
55987
55988 2005-08-24  Bruno Haible  <bruno@clisp.org>
55989
55990         * gnulib-tool (import): Use compound statement instead of subshell
55991         where possible.
55992
55993 2005-08-24  Bruno Haible  <bruno@clisp.org>
55994
55995         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55996
55997 2005-08-24  Bruno Haible  <bruno@clisp.org>
55998
55999         * gnulib-tool (func_version): Update.
56000
56001 2005-08-24  Bruno Haible  <bruno@clisp.org>
56002
56003         * gnulib-tool (func_import, func_create_testdir,
56004         func_create_megatestdir): Quote all autoconf macro arguments.
56005
56006 2005-08-24  Bruno Haible  <bruno@clisp.org>
56007
56008         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56009         option --force, because --force causes the aclocal.m4 of each
56010         subdirectory to be newer than the corresponding config.h.in.
56011
56012 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56013
56014         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56015         All contents moved to gl_REGEX.
56016         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56017         assume that it does.
56018
56019 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         * lib/regex.h (REG_NOSYS)
56022         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56023         Define, since POSIX requires it as of 2001.
56024         (_REG_ENOSYS)
56025         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56026         New private symbol, used to keep the enum signed in all cases.
56027         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56028         Youngman in
56029         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56030
56031         * lib/regex_internal.c (re_string_skip_chars, register_state):
56032         (calc_state_hash):
56033         Remove forward decls; no longer needed now that we use prototypes.
56034         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56035         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56036         (clean_state_log_if_needed): Likewise.
56037
56038 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56039
56040         * config/srclist.txt: Add glibc bugs 1231-1233.
56041
56042 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56043
56044         Fix problems reported by Sam Steingold in
56045         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56046         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56047         assumed that reg_errcode_t is a signed type, which is not
56048         necessarily true if _XOPEN_SOURCE is not defined.
56049         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56050         since some compilers warn about it otherwise.
56051
56052 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56053
56054         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56055         (init_word_char, create_initial_state, duplicate_node_closure):
56056         (fetch_token, peek_token_bracket, build_range_exp):
56057         (build_collating_symbol): Remove forward decls; no longer needed
56058         now that we use prototypes.
56059
56060         * lib/regcomp.c:
56061         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56062         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56063         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56064         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56065         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56066         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56067         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56068         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56069         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56070         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56071         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56072         (build_charclass, build_charclass_op, fetch_number, create_tree):
56073         (create_token_tree, mark_opt_subexp, duplicate_tree):
56074         Use prototypes rather than old-style definitions.
56075
56076         * lib/regex_internal.c:
56077         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56078         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56079         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56080         (re_string_reconstruct, re_string_peek_byte_case):
56081         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56082         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56083         (re_node_set_init_copy, re_node_set_add_intersect):
56084         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56085         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56086         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56087         (re_acquire_state, re_acquire_state_context, register_state):
56088         (create_ci_newstate, create_cd_newstate, free_state):
56089         Likewise.
56090         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56091         re_search_2):
56092         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56093         (re_search_internal, prune_impossible_nodes):
56094         (acquire_init_state_context, check_matching, static):
56095         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56096         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56097         (update_regs, sift_states_backward, build_sifted_states):
56098         (clean_state_log_if_needed, merge_state_array):
56099         (update_cur_sifted_state, add_epsilon_src_nodes):
56100         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56101         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56102         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56103         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56104         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56105         (check_arrival, check_arrival_add_next_nodes):
56106         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56107         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56108         (check_node_accept_bytes, check_node_accept, extend_buffers):
56109         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56110         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56111         (sift_ctx_init):
56112         Likewise.
56113
56114         * lib/regex_internal.h:
56115         (re_string_allocate, re_string_construct, re_string_reconstruct):
56116         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56117         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56118         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56119         (re_string_context_at, re_string_peek_byte_case):
56120         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56121         is defined, since we now use prototypes always.
56122
56123         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56124         C89 or better.  All uses removed.
56125
56126 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56127
56128         * config/srclist.txt: Add glibc bugs 1220-1227.
56129
56130 2005-08-20  Jim Meyering  <jim@meyering.net>
56131
56132         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56133         of unused local, dfa.
56134
56135 2005-08-20  Bruno Haible  <bruno@clisp.org>
56136
56137         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56138
56139 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56142         (re_node_set_insert_last, re_dfa_add_node):
56143         Rename local variables to avoid GCC shadowing warnings.
56144
56145 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56148         [defined lint]: Suppress bogus uninitialized-variable warnings.
56149
56150         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56151         and let the caller return REG_ESPACE if out of space.  This
56152         removes an uninitialied-variable warning with GCC 4.0.1, and also
56153         avoids taking the address of a local variable.  All callers
56154         changed.
56155
56156 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56157
56158         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56159         $LIBCSRC/posix/regexec.c.
56160         Add glibc bug 1217 for regcomp.c.
56161
56162 2005-08-19  Jim Meyering  <jim@meyering.net>
56163
56164         * lib/regexec.c (proceed_next_node): Redo local variables to
56165         avoid GCC shadowing warnings.
56166
56167 2005-08-18  Bruno Haible  <bruno@clisp.org>
56168
56169         * lib/strstr.c (strstr): Fix return value in multibyte case.
56170         * lib/strcasestr.c (strcasestr): Likewise.
56171
56172 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56175
56176 2005-08-17  Jim Meyering  <jim@meyering.net>
56177
56178         Make the %s format (seconds since the epoch) work for a negative
56179         number and when used with a zero-padded field width, e.g. %015s.
56180
56181         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56182         label so that it precedes the code to set `digits'.  Otherwise,
56183         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56184         print `00-22'.  Now, it prints `-0022', as it should.
56185
56186 2005-08-17  Bruno Haible  <bruno@clisp.org>
56187
56188         * modules/strstr (Files): Add m4/mbrtowc.m4.
56189         (Depends-on): Add mbuiter.
56190
56191 2005-08-17  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/strcasestr: New file.
56194         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56195         strcasestr.
56196
56197 2005-08-17  Bruno Haible  <bruno@clisp.org>
56198
56199         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56200
56201 2005-08-17  Bruno Haible  <bruno@clisp.org>
56202
56203         * modules/mbuiter: New file.
56204         * MODULES.html.sh (Extended multibyte and wide character utilities):
56205         Add mbuiter.
56206
56207 2005-08-17  Bruno Haible  <bruno@clisp.org>
56208
56209         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56210         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56211
56212 2005-08-17  Bruno Haible  <bruno@clisp.org>
56213
56214         * m4/strcasestr.m4: New file.
56215
56216 2005-08-17  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56219         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56220
56221 2005-08-17  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/strcasestr.h: New file.
56224         * lib/strcasestr.c: New file.
56225
56226 2005-08-17  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/strcasecmp.c: Use mbuiter.h.
56229
56230 2005-08-17  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/mbuiter.h: New file.
56233
56234 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56235
56236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56237         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56238         and gl_GETOPT are both invoked via different paths (as happens
56239         with GNU tar CVS because it uses both argp and getopt), the former
56240         wins.
56241
56242 2005-08-16  Bruno Haible  <bruno@clisp.org>
56243
56244         * modules/tls: New file.
56245         * MODULES.html.sh (Multithreading): Add tls.
56246
56247 2005-08-16  Bruno Haible  <bruno@clisp.org>
56248
56249         * modules/strnlen1: New file.
56250         * MODULES.html.sh (String handling): Add strnlen1.
56251
56252 2005-08-16  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/strcase (Files): Add m4/mbrtowc.m4.
56255         (Depends-on): Add strnlen1, mbchar.
56256
56257 2005-08-16  Bruno Haible  <bruno@clisp.org>
56258
56259         * modules/mbiter: New file.
56260         * MODULES.html.sh (Extended multibyte and wide character utilities):
56261         Add mbiter.
56262
56263 2005-08-16  Bruno Haible  <bruno@clisp.org>
56264
56265         * modules/mbfile: New file.
56266         * MODULES.html.sh (Extended multibyte and wide character utilities):
56267         Add mbfile.
56268
56269 2005-08-16  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/mbchar: New file.
56272         * MODULES.html.sh (Extended multibyte and wide character utilities):
56273         New section.
56274
56275 2005-08-16  Bruno Haible  <bruno@clisp.org>
56276
56277         * m4/tls.m4: New file, from GNU gettext.
56278
56279 2005-08-16  Bruno Haible  <bruno@clisp.org>
56280
56281         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56282         always.
56283         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56284
56285 2005-08-16  Bruno Haible  <bruno@clisp.org>
56286
56287         * m4/mbiter.m4: New file.
56288
56289 2005-08-16  Bruno Haible  <bruno@clisp.org>
56290
56291         * m4/mbfile.m4: New file.
56292
56293 2005-08-16  Bruno Haible  <bruno@clisp.org>
56294
56295         * m4/mbchar.m4: New file.
56296
56297 2005-08-16  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/tls.h: New file, from GNU gettext.
56300         * lib/tls.c: New file, from GNU gettext.
56301
56302 2005-08-16  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/strnlen1.h: New file.
56305         * lib/strnlen1.c: New file.
56306
56307 2005-08-16  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56310         (mbi_init): Update.
56311         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56312         NUL byte, not after it.
56313
56314 2005-08-16  Bruno Haible  <bruno@clisp.org>
56315
56316         * lib/strcase.h (strcasecmp): Add note in comments.
56317         * lib/strncasecmp.c: Use code from strcasecmp.c.
56318         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56319         (strcasecmp): Work correctly in multibyte locales.
56320
56321 2005-08-16  Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/mbiter.h: New file.
56324
56325 2005-08-16  Bruno Haible  <bruno@clisp.org>
56326
56327         * lib/mbfile.h: New file.
56328
56329 2005-08-16  Bruno Haible  <bruno@clisp.org>
56330
56331         * lib/mbchar.h: New file.
56332         * lib/mbchar.c: New file.
56333
56334 2005-08-16  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56337         the valid ones. Makes the comparison operations transitive:
56338         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56339         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56340
56341 2005-08-15  Simon Josefsson  <jas@extundo.com>
56342
56343         * modules/ssize_t (License): Change to 'unlimited'.
56344
56345         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56346
56347 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56348
56349         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56350         Add comments for each pending glibc patch.
56351
56352 2005-08-15  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56355         __cplusplus is defined.
56356
56357 2005-08-14  Jim Meyering  <jim@meyering.net>
56358
56359         Sync from coreutils.
56360
56361         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56362         Use the hash-table-based cycle-detection code not just when
56363         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56364         Reported by James Youngman in
56365         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56366         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56367         FTS_TIGHT_CYCLE_CHECK.
56368         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56369         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56370         once again.
56371         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56372         * lib/fts.c (fd_safer): Remove decl.
56373         Include fcntl--.h rather than unistd-safer.h
56374         (fts_safe_changedir): Don't call fd_safer; no longer needed
56375         now that we include fcntl--.h.
56376
56377 2005-08-12  Simon Josefsson  <jas@extundo.com>
56378
56379         * modules/getndelim2: Use ssize_t module.
56380         * modules/getnline: Likewise.
56381         * modules/safe-read: Likewise.
56382         * modules/xreadlink: Likewise.
56383
56384         * modules/ssize_t: New file.
56385
56386 2005-08-12  Simon Josefsson  <jas@extundo.com>
56387
56388         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56389
56390 2005-08-12  Simon Josefsson  <jas@extundo.com>
56391
56392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56393         ssize_t.
56394
56395 2005-08-12  Simon Josefsson  <jas@extundo.com>
56396
56397         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56398         readline, getdelim and check_version.
56399         (Support for systems lacking ISO C 99: Sizes of integer types):
56400         Add size_max.
56401
56402 2005-08-12  Bruno Haible  <bruno@clisp.org>
56403
56404         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56405
56406 2005-08-11  Simon Josefsson  <jas@extundo.com>
56407
56408         * modules/readline: New file.
56409
56410         * modules/strnlen (Files): Add strnlen.h.
56411
56412 2005-08-11  Simon Josefsson  <jas@extundo.com>
56413
56414         * m4/readline.m4: New file.
56415
56416 2005-08-11  Simon Josefsson  <jas@extundo.com>
56417
56418         * lib/readline.h, readline.c: New file.
56419
56420 2005-08-11  Simon Josefsson  <jas@extundo.com>
56421
56422         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56423         gl_AVOID.
56424
56425 2005-08-11  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56428
56429 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56430
56431         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56432
56433 2005-08-10  Simon Josefsson  <jas@extundo.com>
56434
56435         * tests/test-iconvme.c: New file.
56436
56437 2005-08-10  Simon Josefsson  <jas@extundo.com>
56438
56439         * m4/strnlen.m4: New file.
56440
56441         * m4/strndup.m4: Don't check for strnlen declaration, done in
56442         strnlen.m4.
56443
56444 2005-08-10  Simon Josefsson  <jas@extundo.com>
56445
56446         * lib/strndup.c: Use strnlen.h.
56447
56448         * lib/strnlen.h: New file.
56449
56450 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56451
56452         * README: Typos.
56453
56454 2005-08-02  Simon Josefsson  <jas@extundo.com>
56455
56456         * modules/readline: New file.
56457
56458 2005-08-02  Simon Josefsson  <jas@extundo.com>
56459
56460         * modules/getdelim: New file.
56461
56462         * modules/getline: Rewrite, don't use getndelim2.
56463
56464 2005-08-02  Simon Josefsson  <jas@extundo.com>
56465
56466         * m4/getline.m4: Separate out getdelim stuff into separate module.
56467
56468         * m4/getdelim.m4: New file.
56469
56470 2005-08-02  Simon Josefsson  <jas@extundo.com>
56471
56472         * lib/getline.h, getline.c: Rewrite.
56473
56474         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56475
56476 2005-07-31  Bruno Haible  <bruno@clisp.org>
56477
56478         * lib/lock.h (gl_lock_initializer): New macro.
56479         (gl_lock_define_initialized): Use it.
56480         (gl_rwlock_initializer): New macro.
56481         (gl_rwlock_define_initialized): Use it.
56482         (gl_recursive_lock_initializer): New macro.
56483         (gl_recursive_lock_define_initialized): Use it.
56484
56485 2005-07-30  Karl Berry  <karl@gnu.org>
56486
56487         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56488         Report from Ben Pfaff, regarding getopt.
56489
56490 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56491
56492         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56493         normal way.
56494         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56495         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56496         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56497         (gl_GETOPT): Use the new macros.  Most of the implementation
56498         is moved to the new macros.  This is for programs like Emacs
56499         that don't want all the functionality of gl_GETOPT.
56500
56501 2005-07-26  Bruno Haible  <bruno@clisp.org>
56502
56503         * m4/lock.m4: Update from GNU gettext.
56504
56505 2005-07-26  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/lock.h: Update from GNU gettext.
56508         * lib/lock.c: Update from GNU gettext.
56509
56510 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56513         obsolescent AC_TRY_RUN.  Include the default includes files, for
56514         'exit'.
56515
56516 2005-07-24  Bruno Haible  <bruno@clisp.org>
56517
56518         * modules/visibility: New file.
56519         * MODULES.html.sh (Misc): Add visibility.
56520
56521 2005-07-24  Bruno Haible  <bruno@clisp.org>
56522
56523         * m4/visibility.m4: New file.
56524
56525 2005-07-24  Bruno Haible  <bruno@clisp.org>
56526
56527         * doc/visibility.texi: New file.
56528
56529 2005-07-22  Bruno Haible  <bruno@clisp.org>
56530
56531         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56532         $(ALLOCA_H), redundant through BUILT_SOURCES.
56533         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56534         redundant through BUILT_SOURCES.
56535         * modules/byteswap (Makefile.am): Remove explicit dependency on
56536         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56537         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56538         $(FNMATCH_H), redundant through BUILT_SOURCES.
56539         * modules/getopt (Makefile.am): Remove explicit dependency on
56540         $(GETOPT_H), redundant through BUILT_SOURCES.
56541         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56542         redundant through BUILT_SOURCES.
56543         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56544         redundant through BUILT_SOURCES.
56545         * modules/stdbool (Makefile.am): Remove explicit dependency on
56546         $(STDBOOL_H), redundant through BUILT_SOURCES.
56547         * modules/stdint (Makefile.am): Remove explicit dependency on
56548         $(STDINT_H), redundant through BUILT_SOURCES.
56549         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56550         Remove explicit dependency on $(SYSEXITS_H).
56551         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56552
56553 2005-07-18  Simon Josefsson  <jas@extundo.com>
56554
56555         * lib/check-version.c (check_version): Accept identical versions too.
56556
56557 2005-07-18  Bruno Haible  <bruno@clisp.org>
56558
56559         * modules/lock: New file.
56560         * MODULES.html.sh (Multithreading): New section.
56561
56562 2005-07-18  Bruno Haible  <bruno@clisp.org>
56563
56564         * m4/lock.m4: New file, from GNU gettext.
56565
56566 2005-07-18  Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/lock.h: New file, from GNU gettext.
56569         * lib/lock.c: New file, from GNU gettext.
56570
56571 2005-07-18  Bruno Haible  <bruno@clisp.org>
56572
56573         * lib/lock.h (gl_once_t): New type.
56574         (gl_once_define, gl_once): New macros.
56575         * lib/lock.c (fresh_once): New variable.
56576         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56577         functions.
56578
56579 2005-07-16  Simon Josefsson  <jas@extundo.com>
56580
56581         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56582         workaround, suggested by Bruno.
56583
56584 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * modules/xalloc (Depends-on): Add xalloc-die.
56587         * modules/xvasprintf (Depends-on): Add xalloc-die.
56588
56589 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56590
56591         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56592         with a minor change.
56593
56594 2005-07-15  Bruno Haible  <bruno@clisp.org>
56595
56596         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56597         When using lib/poll.c, define poll as rpl_poll.
56598
56599 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56600
56601         * modules/argp (Depends-on): Remove unlocked-io.
56602
56603 2005-07-14  Derek Price  <derek@ximbiot.com>
56604
56605         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56606         for glob symlink bug.
56607
56608 2005-07-14  Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56611         Instead, test for *_unlocked function declarations directly.
56612
56613 2005-07-11  Simon Josefsson  <jas@extundo.com>
56614
56615         * modules/size_max: New file.
56616
56617         * modules/xsize: Depend on size_max module for size_max.m4.
56618
56619 2005-07-11  Simon Josefsson  <jas@extundo.com>
56620
56621         * lib/size_max.h: New file.
56622
56623 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56624
56625         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56626         copyright symbol and the year.
56627         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56628         (version_etc_va): Use parameterized copyright notice.
56629         Reword to conform to the current GNU coding standards.
56630
56631 2005-07-11  Karl Berry  <karl@gnu.org>
56632
56633         * doc/gnulib.texi (Quoting): new node.
56634         (Initial import): more info, from Patrice.
56635
56636 2005-07-11  Bruno Haible  <bruno@clisp.org>
56637
56638         * gnulib-tool (func_usage): Document option --avoid.
56639         (Command line options): Handle --avoid.
56640         (func_acceptable): New function.
56641         (func_modules_transitive_closure): Use it.
56642
56643 2005-07-11  Bruno Haible  <bruno@clisp.org>
56644
56645         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56646         Reported by Jim Meyering.
56647
56648 2005-07-10  Bruno Haible  <bruno@clisp.org>
56649
56650         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56651         Needed when size_t is smaller than 'unsigned int'.
56652         Reported by Paul Eggert.
56653
56654 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56655
56656         * modules/argp (Depends-on): Add unlocked-io
56657
56658 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56659
56660         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56661         block of defines.
56662
56663 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56666         fix now.
56667
56668 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56669         and Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56672         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56673
56674 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56675
56676         * modules/regex (Files): Add lib/regex_internal.c,
56677         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56678         (Depends-on): Add extensions.
56679         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56680
56681 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56682
56683         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56684         pathconf.
56685         * m4/same.m4 (gl_SAME): Likewise.
56686         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56687
56688         * m4/regex.m4: Adjust to new libc regex implementation.
56689         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56690         all the .c and .h parts of (the new) regex.
56691         Quote the m4 stuff better.
56692         Check for RE_ICASE bug of old gnulib.
56693         Check for REG_STARTEND of recent libc.
56694         Rename local variables from jm_* to gl_*.
56695         Quote operand of "test -f".
56696         Say "recent enough" version of libc, not "version 2".
56697         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56698         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56699         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56700         Remove check for btowc, isascii.
56701         Require AM_LANGINFO_CODESET.
56702
56703 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56704
56705         * lib/regex.c, regex.h: Sync from libc.
56706         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56707         * lib/regexec.c:
56708         New files, synced from libc, except that regex_internal.h
56709         currently has a small porting fix.
56710
56711 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56712
56713         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56714         regex_internal.c, regexec.c.
56715         Add regex_internal.h too, but as a comment, since the libc version
56716         is currently broken in gnulib mode.
56717
56718 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56719
56720         Support programs like Emacs that use gnulib but not gettext.
56721         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56722         * modules/gettext-h: New file.
56723         * modules/gettext (Files): Remove lib/gettext.h.
56724         (Depends-on): Add gettext-h.
56725         (Makefile.am): Remove lib_SOURCES.
56726         * modules/argmatch, modules/c-stack, modules/closeout:
56727         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56728         * modules/execute, modules/file-type, modules/getaddrinfo:
56729         * modules/getopt, modules/human, modules/javacomp:
56730         * modules/javaexec, modules/mkdir-p, modules/obstack:
56731         * modules/openat, modules/pagealign_alloc, modules/pipe:
56732         * modules/quotearg, modules/regex, modules/rpmatch:
56733         * modules/unicodeio, modules/userspec, modules/version-etc:
56734         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56735         * modules/xsetenv:
56736         Depend on gettext-h, not gettext.
56737
56738 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         * gnulib-tool (func_import): Add support for 'public domain' license.
56741         * modules/alloca, modules/atexit, modules/memmove:
56742         Now public domain, not GPL.
56743         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56744         * modules/realloc, modules/strerror, modules/strtod:
56745         Now LGPL, not GPL.
56746
56747 2005-07-05  Bruno Haible  <bruno@clisp.org>
56748
56749         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56750         autoconf CVS. Needed for mingw.
56751
56752 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56753
56754         Remove the dependency of the strftime module on the tzset module.
56755         * modules/strftime (Depends-on): Remove dependency on tzset.
56756
56757 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56758
56759         Remove the dependency of the strftime module on the tzset module.
56760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56761         gl_FUNC_TZSET_CLOBBER.
56762
56763 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56764
56765         Remove the dependency of the strftime module on the tzset module.
56766         * lib/strftime.c (my_strftime)
56767         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56768         Copy the input structure, to work around some of the bug with
56769         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56770         Solaris releases, you should also use the tzset module, but we won't
56771         require it as a dependency any more since we don't want LGPLed code
56772         to depend on GPLed code.
56773
56774 2005-07-02  Jim Meyering  <jim@meyering.net>
56775
56776         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56777         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56778         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56779         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56780
56781 2005-07-02  Jim Meyering  <jim@meyering.net>
56782
56783         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56784
56785 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56786
56787         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56788         declares only 'struct timespec;' (!).
56789
56790 2005-07-01  Jim Meyering  <jim@meyering.net>
56791
56792         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56793         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56794         * lib/save-cwd.c, tempname.c:
56795         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56796         and don't include <sys/file.h>).
56797
56798 2005-06-29  Jim Meyering  <jim@meyering.net>
56799
56800         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56801         type name.  Use the variable name instead.
56802         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56803         Likewise.
56804
56805 2005-06-28  Simon Josefsson  <jas@extundo.com>
56806
56807         * modules/check-version (Files): Add check-version.m4.
56808
56809 2005-06-28  Simon Josefsson  <jas@extundo.com>
56810
56811         * m4/check-version.m4: New file, suggested by Jim Meyering
56812         <jim@meyering.net>.
56813
56814 2005-06-28  Simon Josefsson  <jas@extundo.com>
56815
56816         * lib/check-version.h, lib/check-version.c: New files.
56817
56818 2005-06-28  Simon Josefsson  <jas@extundo.com>
56819
56820         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56821         collision with global variable.  Better indentation.  Don't
56822         increment buffer pointer beyond buffer end.  Based on comments
56823         from Paul Eggert <eggert@cs.ucla.edu>.
56824
56825         * lib/base64.h: Indent.
56826
56827 2005-06-28  Simon Josefsson  <jas@extundo.com>
56828
56829         * doc/gnulib.texi (Library version handling): New section.
56830
56831 2005-06-28  Jim Meyering  <jim@meyering.net>
56832
56833         * check-module (find_included_lib_files): Hard-code another
56834         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56835         but modules/fts-lgpl (correctly) does not list those files.
56836
56837         * modules/canonicalize (Files): Add lib/pathmax.h.
56838
56839 2005-06-25  Simon Josefsson  <jas@extundo.com>
56840
56841         * modules/check-version: New file.
56842
56843 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56846         initializer of struct addrinfo, as an indication that we don't
56847         care how many members the structure has.
56848
56849 2005-06-24  Derek Price  <derek@ximbiot.com>
56850         and Bruno Haible  <bruno@clisp.org>
56851
56852         Remove stat module & update lstat.
56853         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56854         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56855         * m4/stat.m4: Remove this file.
56856
56857 2005-06-24  Derek Price  <derek@ximbiot.com>
56858         and Bruno Haible  <bruno@clisp.org>
56859
56860         Remove stat module & update lstat.
56861         * lib/stat.c: Remove this file...
56862         (slash_aware_lstat): ...moving this content and its support...
56863         * lib/lstat.c (rpl_lstat): ...into here.
56864         * lib/lstat.h: New file.
56865
56866 2005-06-24  Derek Price  <derek@ximbiot.com>
56867         and Bruno Haible  <bruno@clisp.org>
56868
56869         Remove stat module & update lstat.
56870         * config/srclist.txt (libc sources): Remove stat.
56871
56872 2005-06-24  Derek Price  <derek@ximbiot.com>
56873         and Bruno Haible  <bruno@clisp.org>
56874
56875         Remove stat module & update lstat.
56876         * MODULES.html.sh (stat): Remove.
56877         * MODULES.html: Regenerated.
56878         * modules/lstat (Description): Correct function name.
56879         (Files): Add "lstat.h".
56880         (Depends-on): Remove stat, add xalloc, stat-macros.
56881         * modules/stat: Remove this file.
56882         (Include): Add "lstat.h", remove <sys/stat.h>.
56883
56884 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56885
56886         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56887         (ranged_convert): Don't save conversion in a temporary struct.
56888         This causes a warning with GCC 4.0.0, and anyway in the typical
56889         case it's not worth the extra 100 bytes or so of code.
56890         (ranged_convert, __mktime_internal): When calling a function via a
56891         pointer P, use P () rather than (*P) (), as we now assume C89 or
56892         better.
56893
56894 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56895
56896         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56897         "who -r" failed to give output.  Problem reported by Tim Waugh.
56898
56899         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56900         (xcalloc): Use it to avoid needless tests.
56901         Problem reported by Jim Meyering.
56902
56903 2005-06-20  Derek Price  <derek@ximbiot.com>
56904
56905         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56906         unnecessary for Autoconfs > 2.59c.
56907
56908 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56909
56910         * lib/argp.h (__option_is_short): Check upper limit of
56911         __key. Isprint() requires its argument to have the value
56912         of an unsigned char or EOF.
56913
56914 2005-06-16  Jim Meyering  <jim@meyering.net>
56915
56916         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56917         when either N or S is zero.
56918
56919 2005-06-16  Derek Price  <derek@ximbiot.com>
56920
56921         * m4/bison.m4: Declare YACC & YFLAGS precious.
56922
56923 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56924
56925         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56926         multibyte string or pattern, fall back on unibyte matching.
56927         Problem reported by James Youngman.
56928
56929 2005-06-08  Bruno Haible  <bruno@clisp.org>
56930
56931         * modules/csharpcomp: New file.
56932         * MODULES.html.sh (C#): Add csharpcomp.
56933
56934 2005-06-08  Bruno Haible  <bruno@clisp.org>
56935
56936         * m4/csharpcomp.m4: New file, from GNU gettext.
56937
56938 2005-06-08  Bruno Haible  <bruno@clisp.org>
56939
56940         * lib/csharpcomp.h: New file, from GNU gettext.
56941         * lib/csharpcomp.c: New file, from GNU gettext.
56942         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56943
56944 2005-06-08  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56947         warning on mingw.
56948
56949 2005-06-07  Derek Price  <derek@ximbiot.com>
56950
56951         Sync from CVS.
56952         * lib/glob_.h: Indent nested #ifdef.
56953
56954 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56955
56956         Sync from coreutils.
56957         Use "file name" when talking about file names, instead of "filename"
56958         or "path", as per the GNU coding standards.
56959         * lib/mkdir-p.c: Renamed from makepath.c.
56960         (make_dir_parents): Renamed from make_path.  All callers changed.
56961         * lib/mkdir-p.h: Likewise.  All includers changed.
56962         * lib/filenamecat.c: Renamed from path-concat.c.
56963         (file_name_concat): Renamed from path_concat.  All callers changed.
56964         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56965         * lib/filenamecat.h: Likewise.  All includers changed.
56966         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56967         in comments or local variable names.
56968         * lib/basename.c: Likewise.
56969         * lib/canonicalize.c, canonicalize.h: Likewise.
56970         * lib/dirname.c, dirname.h: Likewise.
56971         * lib/euidaccess.c: Likewise.
56972         * lib/exclude.c: Likewise
56973         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56974         * lib/fsusage.c, fsuage.h: Likewise.
56975         * lib/fts.c, fts_.h: Likewise.
56976         * lib/getcwd.c: Likewise.
56977         * lib/getloadavg.c: Likewise.
56978         * lib/mkstemp.c: Likewise.
56979         * lib/mountlist.c, mountlist.h: Likewise.
56980         * lib/openat.c, openat.h: Likewise.
56981         * lib/readlink-stub.c: Likewise.
56982         * lib/readutmp.c, readutmp.h: Likewise.
56983         * lib/rename.c: Likewise.
56984         * lib/rmdir.c: Likewise.
56985         * lib/same.c: Likewise.
56986         * lib/savedir.c: Likewise.
56987         * lib/stripslash.c: Likewise.
56988         * lib/tempname.c: Likewise.
56989         * lib/xreadlink.c: Likewise.
56990         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56991         All uses changed.
56992         * lib/exclude.h: Likewise.
56993
56994         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56995         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56996         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56997         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56998         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56999         files have been getting away with it for years (MORE/BSD 4.3
57000         is extinct now).
57001         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57002         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57003
57004         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57005         Define to 256, not 255, as per modern POSIX.
57006
57007 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57008
57009         Sync from coreutils.
57010         Use "file name" when talking about file names, instead of "filename"
57011         or "path", as per the GNU coding standards.
57012         * MODULES.html.sh: mkdir-p renamed from makepath.
57013         filenamecat renamed from path-concat.
57014         * modules/filenamecat: Renamed from modules/path-concat.
57015         (Files): filenamecat.h and filenamecat.c renamed from
57016         path-concat.h and path-concat.c.
57017         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57018         (Include): filenamecat.h, not path-concat.h.
57019         * modules/mkdir-p: Renamed from modules/makepath.
57020         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57021         makepath.c.
57022         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57023         (Include): mkdir-p.h, not makepath.h.
57024
57025 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         Sync from coreutils.
57028         * m4/mkdir-p.m4: Renamed from makepath.m4.
57029         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57030         Rename files from makepath.c to mkdir-p.c, and from
57031         makepath.h to mkdir-p.h.
57032         * m4/filenamecat.m4: Renamed from path-concat.m4.
57033         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57034         Rename files from path-concat.c to filenamecat.c,
57035         and from path-concat.h to filenamecat.h.
57036         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57037         "file name" in local variables or comments.
57038         * m4/rename.m4: Likewise.
57039
57040 2005-06-01  Bruno Haible  <bruno@clisp.org>
57041
57042         * modules/csharpexec: New file.
57043         * MODULES.html.sh (C#): New section.
57044
57045 2005-06-01  Bruno Haible  <bruno@clisp.org>
57046
57047         * m4/csharp.m4: New file, from GNU gettext.
57048         * m4/csharpexec.m4: New file, from GNU gettext.
57049
57050 2005-06-01  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/csharpexec.h: New file, from GNU gettext.
57053         * lib/csharpexec.c: New file, from GNU gettext.
57054         * lib/csharpexec.sh.in: New file, from GNU gettext.
57055
57056 2005-05-31  Derek Price  <derek@ximbiot.com>
57057             Paul Eggert  <eggert@cs.ucla.edu>
57058
57059         Sync from cvs.
57060         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57061
57062 2005-05-31  Derek Price  <derek@ximbiot.com>
57063             Paul Eggert  <eggert@cs.ucla.edu>
57064
57065         Sync from cvs.
57066         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57067
57068 2005-05-29  Derek Price  <derek@ximbiot.com>
57069
57070         * config/srclist.txt (glob_.h, glob.c): Add these files.
57071
57072 2005-05-29  Derek Price  <derek@ximbiot.com>
57073
57074         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57075         * modules/glob: New file.
57076         * modules/getlogin_r: Add link to POSIX spec in description.
57077
57078 2005-05-29  Derek Price  <derek@ximbiot.com>
57079             Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * m4/glob.m4: New file.
57082
57083 2005-05-29  Derek Price  <derek@ximbiot.com>
57084             Paul Eggert  <eggert@cs.ucla.edu>
57085
57086         * lib/glob_.h, lib/glob.c: New files.
57087
57088 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57089
57090         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57091         * modules/fts-lgpl (Depends-on): Remove gettext.
57092
57093 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57094
57095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57096         and don't require gt_INTTYPES_PRI.
57097
57098 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57099
57100         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57101
57102         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57103         the configuration hassle isn't worth it.
57104         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57105         (LONGEST_MODIFIER, PRIuMAX): Remove.
57106
57107 2005-05-27  Bruno Haible  <bruno@clisp.org>
57108
57109         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57110
57111 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57112
57113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57114         _POSIX_PTHREAD_SEMANTICS for Solaris.
57115
57116 2005-05-25  Derek Price  <derek@ximbiot.com>
57117
57118         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57119
57120 2005-05-25  Derek Price  <derek@ximbiot.com>
57121             Paul Eggert  <eggert@cs.ucla.edu>
57122
57123         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57124         * lib/getlogin_r.c, getlogin_r.h: New files.
57125
57126 2005-05-25  Bruno Haible  <bruno@clisp.org>
57127             Derek Price  <derek@ximbiot.com>
57128
57129         * lib/getlogin_r.h: Simplify API documentation.
57130
57131 2005-05-23  Derek Price  <derek@ximbiot.com>
57132
57133         * modules/minmax (Files): Add m4/minmax.m4.
57134         (configure.ac): Add gl_MINMAX.
57135
57136 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57139         so that unistd-safer.h (GPL'ed code) need not be included.
57140
57141 2005-05-22  Bruno Haible  <bruno@clisp.org>
57142
57143         * m4/minmax.m4: New file.
57144         Based on a patch by Derek Price <derek@ximbiot.com>.
57145
57146 2005-05-22  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57149         (INT64_MIN): Fix definition.
57150         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57151
57152         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57153         NEED_SIGNED_INT_TYPES.
57154
57155         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57156         HAVE_SYSTEM_INTTYPES.
57157
57158 2005-05-22  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57161         Also include <sys/param.h> if it defines MIN, MAX.
57162         Based on a patch by Derek Price <derek@ximbiot.com>.
57163
57164 2005-05-21  Jim Meyering  <jim@meyering.net>
57165
57166         * modules/fts (Files): Add m4/inttypes-pri.m4.
57167         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57168
57169 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         New fts module.
57172         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57173         (setup_dir, free_dir): New functions.
57174         (enter_dir, leave_dir): Define trivial
57175         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57176         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57177         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57178         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57179         Move to fts-cycle.c.
57180         (fts_open): Use setup_dir.
57181         (fts_close): Use free_dir.
57182         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57183         This adds a label and some gotos, but the alternatives were messier.
57184         Check for memory allocation failure when entering a dir.
57185         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57186         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57187         (FTS): New member fts_cycle, that is a union that contains the
57188         old active_dir_ht and cycle_state.  All uses changed to mention
57189         fts_cycle.ht and fts_cycle.state.
57190         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57191         fts.c, with the following changes:
57192         (setup_dir, free_dir): New functions.
57193         (enter_dir): Now returns bool.  Return true if successful, false
57194         if memory exhausted.  All callers changed.
57195         Do not bother partly cleaning up on
57196         memory allocation failure; that is free_dir's job.
57197         However, free ad if hash_insert fails, to avoid memory leak.
57198         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57199         fts->fts_options to see which union member to use.
57200
57201 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57204         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57205
57206 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57209
57210 2005-05-20  Jim Meyering  <jim@meyering.net>
57211
57212         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57213         Now a macro, to pacify GCC.
57214
57215 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57216
57217         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57218         of -1.
57219
57220 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57221
57222         * lib/chown.c (rpl_chown): Return -1 on failure.
57223
57224 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57227         Don't check for stddef.h.
57228         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57229         don't use its results.
57230         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57231         since we include them unconditionally.  Don't require
57232         AM_STDBOOL_H, since stdbool is a prerequisite.
57233         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57234         since we assume C89 or better.
57235         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57236         as we don't use their results.
57237         Don't check for fchdir, memmove, memset, strrchr, as we use
57238         them unconditionally.
57239         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57240         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57241
57242 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57243
57244         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57245         Include <stddef.h> unconditionally, since we assume C89 now.
57246         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57247         * lib/fts.c: Include fts_.h first, to check interface.
57248         Do not include intprops.h; no longer needed.
57249         Include cycle-check.h and hash.h, since fts_.h no longer does.
57250         Remove unnecessary casts of closedir to void.
57251         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57252         decide whether to decrement nlinks.
57253         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57254         (FTS): Use struct hash_table * instead of Hash_table, so that
57255         we no longer need to include hash.h here.
57256
57257 2005-05-18  Jim Meyering  <jim@meyering.net>
57258
57259         * modules/dirfd (License): Change to LGPL.  Most of the code
57260         is already in the public domain.
57261
57262 2005-05-18  Jim Meyering  <jim@meyering.net>
57263
57264         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57265         Reported by Yoann Vandoorselaere.
57266
57267 2005-05-17  Jim Meyering  <jim@meyering.net>
57268
57269         * m4/fts.m4: New file, from coreutils.
57270
57271 2005-05-17  Jim Meyering  <jim@meyering.net>
57272
57273         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57274
57275 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         Sync from coreutils.
57278         * m4/unlinkdir.m4: New file.
57279
57280 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57281
57282         Sync from coreutils.
57283         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57284         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57285         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57286         White space changes only.
57287         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57288         special.
57289         * lib/yesno.c: Include getline.h, not ctype.h.
57290         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57291         Use getline to remove arbitrary restriction on response length.
57292
57293 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         * config/srclist-update: Spell out "Street" in FSF postal
57296         mail address; this is the style the FSF seems to prefer.
57297
57298         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57299         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57300         this updates FSF postal mail address.
57301
57302         Sync from coreutils.
57303         * modules/unlinkdir: New file.
57304         * modules/yesno (Depends-on): Add getline.
57305         * MODULES.html.sh (File system functions): Add unlinkdir.
57306
57307 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57308
57309         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57310         lib/strsep.h:
57311         Change the initial comment to refer to GPL, not LGPL.
57312         gnulib-tool will change it to LGPL as needed.
57313
57314         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57315         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57316         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57317         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57318         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57319         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57320         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57321         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57322         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57323         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57324         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57325         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57326         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57327         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57328         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57329         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57330         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57331         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57332         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57333         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57334         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57335         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57336         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57337         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57338         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57339         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57340         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57341         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57342         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57343         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57344         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57345         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57346         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57347         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57348         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57349         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57350         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57351         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57352         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57353         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57354         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57355         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57356         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57357         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57358         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57359         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57360         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57361         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57362         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57363         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57364         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57365         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57366         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57367         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57368         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57369         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57370         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57371         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57372         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57373         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57374         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57375         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57376         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57377         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57378         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57379         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57380         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57381         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57382         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57383         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57384         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57385         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57386         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57387         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57388         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57389         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57390         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57391         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57392         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57393         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57394         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57395         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57396         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57397         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57398         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57399         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57400         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57401         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57402         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57403         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57404         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57405         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57406         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57407         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57408         lib/yesno.c, lib/yesno.h:
57409         Update FSF postal mail address.
57410
57411 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57412
57413         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57414         tests/test-memmem.c, tests/test-stpncpy.c:
57415         Update FSF postal mail address.
57416
57417 2005-05-13  Bruno Haible  <bruno@clisp.org>
57418
57419         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57420         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57421         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57422         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57423         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57424         Add support for 64-bit integers in the MSVC compiler.
57425
57426 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57427
57428         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57429
57430 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57431
57432         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57433
57434 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57435
57436         * doc/getdate.texi (General date syntax): Don't say that date
57437         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57438         Problem reported by Nic Ferrier.
57439
57440 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57441
57442         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57443         specified in ai_socktype. Fix invalid ai_protocol
57444         check. ai_protocol is usually set to 0 or depending on
57445         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57446         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57447         ai_socktype / ai_protocol in the returned addrinfo structure.
57448
57449 2005-05-10  Simon Josefsson  <jas@extundo.com>
57450
57451         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57452         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57453
57454 2005-05-10  Karl Berry  <karl@gnu.org>
57455
57456         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57457         (from http://www.gnu.org/licenses).
57458         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57459         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57460         fdl.texi suffices.
57461
57462 2005-05-10  Karl Berry  <karl@gnu.org>
57463
57464         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57465         (COPYING.DOC): remove.
57466
57467         * config/srclist-update: new FSF address.
57468
57469 2005-05-10  Derek Price  <derek@ximbiot.com>
57470
57471         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57472         possible.
57473
57474 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57475             Bruno Haible  <bruno@clisp.org>
57476
57477         * modules/inet_ntop: New file.
57478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57479         inet_ntop.
57480
57481 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57482             Bruno Haible  <bruno@clisp.org>
57483
57484         * m4/inet_ntop.m4: New file.
57485
57486 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57487             Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/inet_ntop.h: New file.
57490         * lib/inet_ntop.c: New file, from glibc with modifications.
57491
57492 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57493
57494         * modules/time_r (License): Change to LGPL.
57495         * modules/extensions (License): Change to LGPL.  Actually,
57496         the license is more permissive than that, but currently gnulib-tool
57497         doesn't know how to handle more-permissive licenses.
57498
57499         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57500         Problem reported by Dave Love.
57501
57502 2005-05-08  Jim Meyering  <jim@meyering.net>
57503
57504         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57505         blank.
57506
57507 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         * modules/argmatch (Depends-on): Add stdbool.
57510         * modules/backupfile (Depends-on): Likewise.
57511         * modules/chdir-long (Depends-on): Likewise.
57512         * modules/closeout (Depends-on): Likewise.
57513         * modules/cycle-check (Depends-on): Likewise.
57514         * modules/dirname (Depends-on): Likewise.
57515         * modules/fnmatch (Depends-on): Likewise.
57516         * modules/fsusage (Depends-on): Likewise.
57517         * modules/fwriteerror (Depends-on): Likewise.
57518         * modules/getcwd (Depends-on): Likewise.
57519         * modules/getloadavg (Depends-on): Likewise.
57520         * modules/hard-locale (Depends-on): Likewise.
57521         * modules/makepath (Depends-on): Likewise.
57522         * modules/mountlist (Depends-on): Likewise.
57523         * modules/nanosleep (Depends-on): Likewise.
57524         * modules/posixtm (Depends-on): Likewise.
57525         * modules/quotearg (Depends-on): Likewise.
57526         * modules/readtokens (Depends-on): Likewise.
57527         * modules/readtokens0 (Depends-on): Likewise.
57528         * modules/readutmp (Depends-on): Likewise.
57529         * modules/save-cwd (Depends-on): Likewise.
57530         * modules/strftime (Depends-on): Likewise.
57531         * modules/userspec (Depends-on): Likewise.
57532         * modules/utimecmp (Depends-on): Likewise.
57533         * modules/xgetcwd (Depends-on): Likewise.
57534         * modules/xnanosleep (Depends-on): Likewise.
57535         * modules/xstrtod (Depends-on): Likewise.
57536         * modules/yesno (Depends-on): Likewise.
57537
57538 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57539
57540         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57541         needless checks.
57542
57543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57544
57545         Merge from coreutils.  Among other things,
57546         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57547         * lib/fd-safer.c: New file.
57548         * lib/fcntl-safer.h, open-safer.c: Remove.
57549         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57550         * lib/dup-safer.c: Include unistd-safer.h first.
57551         Don't include errno.h.
57552         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57553         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57554         * lib/file-type.c: Rely on file-type.h change.
57555         * lib/getloadavg.c: Include unistd-safer.h.
57556         (getloadavg): Use safer open.
57557         * lib/getusershell.c: Include "stdio-safer.h".
57558         (getusershell): Use safer fopen.
57559         * lib/long-options.c (long_options): Use NULL rather than 0.
57560         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57561         'free'.
57562         * lib/modechange.c: Likewise.
57563         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57564         (MODE_DONE): New constant.
57565         (struct mode_change): Remove 'next' member.
57566         (make_node_op_equals): New function; like the old one of the
57567         same name, except it allocates an array.
57568         (mode_compile, mode_create_from_ref): Use it.
57569         (mode_compile): Allocate result as an array, not a linked list.
57570         Parse octal string ourself, so that we catch mistakes like "+0".
57571         (mode_adjust): Arg is an array, not a linked list.
57572         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57573         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57574         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57575         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57576         Remove.  This is now stat-macros.h's job.
57577         (talloc): Remove.  All callers replaced by xalloc, so that
57578         our invokers don't have to worry about reporting memory failures.
57579         (make_node_op_equals): Remove.
57580         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57581         New constants.
57582         (struct mode_change): Moved here from modechange.h.
57583         (mode_append_entry): Remove.
57584         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57585         apps to have incorrect behavior.  Use simpler algorithm for head
57586         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57587         Detect more invalid usages rather than having somewhat-random behavior.
57588         Don't insert an "a=" action, as that leads to incorrect behavior.
57589         (mode_compile, mode_create_from_ref): Return NULL on error instead
57590         of an enum, since now there's only one way to have an error.  All
57591         callers changed.
57592         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57593         at the correct time.  Simplify calculation of "+u" and its ilk.
57594         Don't mishandle "+X".
57595         (mode_free): Remove "register" and localize decls.
57596         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57597         (struct mode_change): Move to modechange.c; callers don't
57598         need to see this stuff.
57599         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57600         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57601         (mode_change, mode_adjust): Reflect the new signatures noted above.
57602         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57603         that might redefine system include files.
57604         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57605         (my_usleep): Use NULL rather than (void *) 0.
57606         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57607         Use siginterrupt to specify that system calls should be interrupted.
57608         (rpl_nanosleep): Move initialization of suspended closer to call of
57609         my_usleep.
57610         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57611         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57612         (desirable_utmp_entry): New function.
57613         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57614         using x2nrealloc, to simplify logic.
57615         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57616         size calculation.  Do not assume utmp file is a regular file.
57617         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57618         (READ_UTMP_CHECK_PIDS): New constant.
57619         * lib/save-cwd.c: Include unistd-safer.h.
57620         (save_cwd): Use fd_safer.
57621         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57622         [!_LIBC] Include "stat-macros.h" instead.
57623         * lib/unistd-safer.h (fd_safer): New decl.
57624
57625 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         * modules/getloadavg (Depends-on): Add unistd-safer.
57628         * modules/getusershell (Depends-on): Add stdio-safer.
57629         * modules/lstat (Depends-on): Remove xalloc.
57630         * modules/mkstemp (Depends-on): Add stat-macros.
57631         * modules/modechange (Depends-on): Remove xstrtol.
57632         Add stat-macros, xalloc.
57633         * modules/save-cwd (Depends-on): Add unistd-safer.
57634         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57635         * modules/unistd-safer (Files): Add lib/fd-safer.c
57636         (Makefile.am): Remove lib_SOURCES.
57637
57638         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57639         Remove fcntl-safer; unistd-safer supersedes it.
57640
57641 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57644         AC_HEADER_STAT.
57645         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57646         (gl_PREREQ_CHOWN): Remove.
57647         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57648         it.  Don't require AC_HEADER_STAT.
57649         (gl_PREREQ_LSTAT): Remove.
57650         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57651         Don't require AC_HEADER_STAT.
57652         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57653         (gl_PREREQ_RMDIR): Remove.
57654         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57655         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57656         the stat-macros module a prerequisite.
57657         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57658         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57659         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57660         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57661         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57662         variable names.
57663         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57664         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57665         variable prefixes.
57666         * m4/fcntl-safer.m4: Remove.
57667         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57668         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57669         Invoke gl_PREREQ_FD_SAFER.
57670         (gl_PREREQ_FD_SAFER): New macro.
57671         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57672         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57673         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57674         Remove duplicate call to AC_LIBOBJ(readutmp).
57675         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57676
57677         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57678         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57679
57680 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * MODULES.html.sh (Misc): Add byteswap.
57683
57684 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57685
57686         * modules/getcwd (Depends-on): Add extensions.
57687         * modules/openat (Depends-on): Likewise.
57688
57689 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57690
57691         * modules/byteswap: New file.
57692
57693 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57694
57695         * m4/byteswap.m4: New file.
57696
57697 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57698
57699         * lib/byteswap_.h: New file.
57700
57701 2005-04-25  Karl Berry  <karl@gnu.org>
57702
57703         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57704
57705 2005-04-25  Albert Chin  <china@thewrittenword.com>
57706
57707         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57708         Toolkit C bug.
57709
57710 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57711
57712         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57713         (func_ln_if_changed) Remove forcibly for no error message
57714         in case file does not exist.
57715
57716 2005-04-19  Simon Josefsson  <jas@extundo.com>
57717
57718         * gnulib-tool (Options): Make --symlink mean --symbolic.
57719
57720 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57721
57722         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57723
57724 2005-04-16  Simon Josefsson  <jas@extundo.com>
57725
57726         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57727
57728 2005-04-15  Simon Josefsson  <jas@extundo.com>
57729
57730         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57731
57732 2005-04-15  Simon Josefsson  <jas@extundo.com>
57733
57734         * gnulib-tool: Rename --symlink to --symbolic.
57735
57736 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57737
57738         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57739         symbolic links to files instead of copying/moving.  Add --aux-dir,
57740         specifying directory relative --dir where auxiliary build tools
57741         are placed.
57742
57743 2005-04-14  Bruno Haible  <bruno@clisp.org>
57744
57745         * modules/allocsa (License): Change to LGPL.
57746         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57747
57748 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57749
57750         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57751         that "UTC +1 second" continues to work.  Problem reported
57752         by Dmitry V. Levin.
57753         (relunit_snumber): New rule.
57754         (relunit): Use it.
57755
57756 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57757
57758         * lib/getdate.y (universal_time_zone_table): New constant.
57759         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57760         universal_time_zone_table.
57761         (lookup_zone): Prefer universal_time_zone_table to
57762         local_time_zone_table, so that "GMT" time stamps are allowed in
57763         London during the summer.  Problem reported by Ian Abbott.
57764
57765 2005-04-12  Jim Meyering  <jim@meyering.net>
57766
57767         * lib/human.c (humblock): Set *options even when returning due to
57768         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57769         warning from gcc-4.
57770
57771 2005-04-09  Jim Meyering  <jim@meyering.net>
57772
57773         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57774         -Wuninitialized: initialize tm0.tm_year.
57775
57776 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57777
57778         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57779         count, since there's no maximum.  All uses changed.
57780         Add member dsts_seen.
57781         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57782         not being INT_MAX.
57783         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57784         Use pc_rels_seen to decide whther a date is absolute.
57785
57786         * lib/getdate.y (number): Don't overwrite year.
57787         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57788         check.
57789
57790 2005-04-02  Simon Josefsson  <jas@extundo.com>
57791
57792         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57793         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57794
57795 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57796
57797         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57798         where no absolute path name can be longer than PATH_MAX.
57799
57800 2005-03-27  Jim Meyering  <jim@meyering.net>
57801
57802         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57803
57804 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57805
57806         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57807         "one's complement" -> "ones' complement" in comment, as per Knuth.
57808         "value of type" -> "type or expression" in comment.
57809         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57810
57811 2005-03-26  Jim Meyering  <jim@meyering.net>
57812
57813         Comment nits.
57814         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57815         Correct typos: s/or/of/.
57816
57817 2005-03-26  Jim Meyering  <jim@meyering.net>
57818
57819         * modules/check-include-files: Move to ../ and rename to...
57820         * check-module: ...this.
57821
57822 2005-03-25  Jim Meyering  <jim@meyering.net>
57823
57824         * modules/xvasprintf (Files): Add xalloc.h.
57825
57826 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         * modules/gettext (Files): config/config.rpath ->
57829         build-aux/config.rpath
57830         * modules/iconv (Files): Likewise.
57831         Problem reported by Oskar Liljeblad.
57832
57833 2005-03-23  Jim Meyering  <jim@meyering.net>
57834
57835         * modules/check-include-files: New script to check for
57836         missing dependencies, multiple includes, etc.
57837
57838         * modules/c-strtold (Depends-on): Add xalloc.
57839         * modules/c-strtod (Depends-on): Add xalloc.
57840         * modules/hash (Depends-on): Add xalloc.
57841         (Files): Remove lib/xalloc.h.
57842
57843         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57844         * modules/userspec (Files): Add lib/inttostr.h.
57845
57846 2005-03-23  Jim Meyering  <jim@meyering.net>
57847
57848         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57849
57850 2005-03-22  Jim Meyering  <jim@meyering.net>
57851
57852         * modules/stat-macros: New module.
57853         * modules/canonicalize, modules/euidaccess, modules/file-type,
57854         * modules/filemode, modules/lchown, modules/makepath,
57855         * modules/rmdir, modules/stat: Depend on new stat-macros module
57856         rather than listing lib/stat-macros.h manually.
57857         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57858
57859 2005-03-22  Jim Meyering  <jim@meyering.net>
57860
57861         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57862
57863 2005-03-22  Bruno Haible  <bruno@clisp.org>
57864
57865         * config/srclist.txt: Replace target directory 'config' with
57866         'build-aux'.
57867         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57868         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57869         ../build-aux/.
57870
57871 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * modules/chdir-long (Depends-on): Add mempcpy.
57874
57875         * modules/acl, modules/backupfile, modules/c-strtod,
57876         modules/c-strtold, modules/canon-host, modules/canonicalize,
57877         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57878         modules/exclude, modules/exitfail, modules/file-type,
57879         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57880         modules/getdate, modules/getline, modules/getpagesize,
57881         modules/getpass, modules/getugroups, modules/group-member,
57882         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57883         modules/inttostr, modules/long-options, modules/makepath,
57884         modules/md5, modules/memcasecmp, modules/memcoll,
57885         modules/modechange, modules/mountlist, modules/path-concat,
57886         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57887         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57888         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57889         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57890         modules/strftime, modules/strndup, modules/strverscmp,
57891         modules/timespec, modules/unlocked-io, modules/userspec,
57892         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57893         modules/yesno:
57894         Remove lib_SOURCES line from Makefile.am section, as this is now
57895         done automatically by the corresponding Autoconf macro.
57896
57897 2005-03-21  Jim Meyering  <jim@meyering.net>
57898
57899         Changes imported from coreutils.
57900
57901         * lib/cycle-check.c: Don't include xalloc.h.
57902
57903         * lib/path-concat.c: Don't include assert.h.
57904         (path_concat): Remove assertion that would have triggered
57905         for ABASE starting with more than one slash.
57906         Reported by Andreas Schwab.
57907
57908         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57909         properly when ABASE is an absolute file name.
57910         Correct the description of this function.
57911         Include <assert.h>.
57912         Add an assertion and a test driver.
57913         This fixes a bug introduced on 2004-07-02.
57914         Andreas Schwab reported the resulting failure of cp --parents:
57915         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57916
57917 2005-03-21  Jim Meyering  <jim@meyering.net>
57918
57919         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57920         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57921
57922 2005-03-21  Jim Meyering  <jim@meyering.net>
57923         and  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57926         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57927         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57928         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57929         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57930         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57931         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57932         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57933         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57934         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57935         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57936         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57937         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57938         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57939         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57940         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57941         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57942         for these modules.
57943
57944 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57945
57946         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57947         (which shouldn't happen), generate nothing instead of returning 0
57948         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57949
57950 2005-03-16  Bruno Haible  <bruno@clisp.org>
57951
57952         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57953         HAVE_LONGLONG_64BIT.
57954
57955 2005-03-16  Bruno Haible  <bruno@clisp.org>
57956
57957         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57958         HAVE_LONGLONG_64BIT.
57959
57960 2005-03-16  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57963         HAVE_LONGLONG_64BIT.
57964
57965 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57966
57967         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57968         reliably distinguish strftime failure from empty output on POSIX
57969         hosts.
57970
57971 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57974         (iconv_string): Don't guess a size-zero buffer, as that might cause
57975         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57976         result would be 'too large', where 'too large' is (heuristically)
57977         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57978         overflow concerns.  This will prevent some unwanted malloc failures
57979         when the inputs are very large.
57980
57981 2005-03-15  Karl Berry  <karl@gnu.org>
57982
57983         * config/srclist.txt (config.rpath): from gettext.
57984         * config/config.rpath: update.
57985
57986 2005-03-15  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57989         to 'negate'.
57990
57991         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57992         variable.
57993
57994         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57995         results.
57996
57997 2005-03-14  Simon Josefsson  <jas@extundo.com>
57998
57999         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58000         <fx@gnu.org>.
58001
58002 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58005         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58006         intprops.h.
58007         * lib/strtol.c: Likewise.
58008
58009 2005-03-14  Jim Meyering  <jim@meyering.net>
58010
58011         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58012         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58013         to be nonzero so that we (and caller) can detect the difference
58014         between a valid zero-length expansion and an error return, even
58015         when the underlying strftime fails before writing anything into
58016         that location.
58017
58018 2005-03-14  Bruno Haible  <bruno@clisp.org>
58019
58020         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58021         Update from GNU gettext 0.14.3.
58022
58023 2005-03-10  Jim Meyering  <jim@meyering.net>
58024
58025         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58026
58027 2005-03-10  Jim Meyering  <jim@meyering.net>
58028
58029         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58030         so that this module works on systems without fchdir.
58031
58032 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58033
58034         Factor int-properties macros into a single file, except for
58035         glibc-related files.
58036         * lib/intprops.h: New file.
58037         * lib/getloadavg.c: Include it instead of limits.h.
58038         (INT_STRLEN_BOUND): Remove.
58039         * lib/human.c: Include intprops.h.
58040         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58041         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58042         302/1000.
58043         * lib/inttostr.h: Include intprops.h instead of limits.h.
58044         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58045         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58046         for consistency with intprops.h.
58047         (time_t_is_integer, twos_complement_arithmetic): Use them.
58048         * lib/sig2str.h: Include <signal.h>, intprops.h.
58049         (INT_STRLEN_BOUND): Remove.
58050         * lib/strftime.c (TYPE_SIGNED): Remove.
58051         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58052         * lib/strtol.c: Adjust comments to match intprops.h.
58053         * lib/userspec.c: Include intprops.h.
58054         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58055         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58056         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58057         instead of rolling our own expressions.
58058         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58059
58060         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58061         instead of int.
58062         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58063         the right thing even if adding 1900 would overflow.  Similarly
58064         for tm_mon + 1 and tm_yday + 1.
58065         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58066         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58067         (DO_SIGNED_NUMBER): New macro.
58068         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58069
58070 2005-03-07  Bruno Haible  <bruno@clisp.org>
58071
58072         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58073
58074 2005-03-07  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58077
58078 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58079
58080         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58081         (func_import): Only replace files via --import when they have actually
58082         changed.
58083
58084 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58085
58086         * m4/mmap-anon.m4: New file.
58087         * m4/pagealign_alloc.m4: New file.
58088
58089 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58090             Bruno Haible  <bruno@clisp.org>
58091
58092         * modules/pagealign_alloc: New file.
58093         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58094
58095 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58096             Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/pagealign_alloc.h: New file.
58099         * lib/pagealign_alloc.c: New file.
58100
58101 2005-03-03  Bruno Haible  <bruno@clisp.org>
58102
58103         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58104         Use an all-permissive copyright notice, recommended by RMS.
58105
58106 2005-03-02  Bruno Haible  <bruno@clisp.org>
58107
58108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58109         of AIX, the replacement has to be done only after <string.h> is
58110         included, therefore not in config.h. stpncpy.h does the replacement,
58111         and stpncpy.c uses it.
58112
58113 2005-03-02  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58116         stpncpy.c uses it.
58117
58118 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58121         The workaround isn't strictly needed for POSIX conformance, and
58122         it's too much of a pain to configure and maintain.  We'll ask
58123         people to fix their kernels instead.
58124         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58125         (NANOSLEEP_BUG_WORKAROUND): Remove.
58126         (xnanosleep): Remove the workaround.
58127
58128 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58129
58130         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58131         Reported by Derek Price.
58132         (Include): Add "timespec.h".
58133
58134         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58135
58136 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58139         to detect nanosleep bug.
58140
58141 2005-03-01  Bruno Haible  <bruno@clisp.org>
58142
58143         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58144
58145 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58146
58147         * modules/gethrxtime: New file.
58148         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58149         (Depends-on): Add gethrxtime.
58150         (configure.ac): Add gl_XNANOSLEEP.
58151         (Makefile.am): Remove lib_SOURCES line.
58152
58153 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58154
58155         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58156         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58157
58158 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58161         * lib/timespec.h (gettime): Return void, since it always
58162         succeeds now.  All uses changed.
58163         * lib/gettime.c (gettime) Likewise.
58164         [HAVE_NANOTIME]: Prefer nanotime.
58165         Assume gettimeofday succeeds, as POSIX requires.
58166         Assime time () succeeds, since other code already does.
58167         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58168         (timespec_subtract): Remove.
58169         (NANOSLEEP_BUG_WORKAROUND): New constant.
58170         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58171         things considerably.  Use it only on GNU/Linux hosts, since the
58172         workaround shouldn't be needed elsewhere.
58173
58174 2005-02-24  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/gettext (Files): Add m4/glibc2.m4.
58177
58178 2005-02-24  Bruno Haible  <bruno@clisp.org>
58179
58180         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58181         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58182         * m4/progtest.m4:
58183         Update from GNU gettext 0.14.2.
58184         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58185
58186 2005-02-24  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58189         * lib/config.charset: Update from GNU gettext 0.14.2.
58190
58191 2005-02-24  Bruno Haible  <bruno@clisp.org>
58192
58193         * lib/gettext.h: Update from GNU gettext 0.14.2.
58194
58195 2005-02-23  Simon Josefsson  <jas@extundo.com>
58196
58197         * m4/iconvme.m4: New file.
58198
58199 2005-02-23  Jim Meyering  <jim@meyering.net>
58200
58201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58202         change.
58203         Thanks to Bruno Haible for catching it.
58204
58205 2005-02-22  Simon Josefsson  <jas@extundo.com>
58206
58207         * modules/iconvme: New file.
58208
58209         * MODULES.html.sh: Add iconvme.
58210
58211 2005-02-22  Simon Josefsson  <jas@extundo.com>
58212
58213         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58214
58215 2005-02-22  Simon Josefsson  <jas@extundo.com>
58216
58217         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58218
58219 2005-02-22  Jim Meyering  <jim@meyering.net>
58220
58221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58222         s/ifndef/ifdef/.
58223
58224 2005-02-20  Neil Conway  <neilc@samurai.com>
58225
58226         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58227         returned by OSX/Darwin if the specified buffer is not large
58228         enough for the hostname.
58229
58230 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58231
58232         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58233         pass it to _help, otherwise the latter coredumps trying to
58234         dereference state.root_argp.
58235
58236 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58237
58238         * modules/chdir-long (Depends-on): Add memrchr.
58239         * modules/memrchr (Files): Add lib/memrchr.h.
58240         (Include): "memrchr.h".
58241
58242 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58245
58246 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58247
58248         * lib/memrchr.h: New file.
58249         * lib/chdir-long.c: Include it.
58250         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58251         Don't bother including stddef.h.
58252
58253 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58254
58255         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58256         inclusion.
58257         Include <sys/types.h>, for dev_t.
58258         (ME_DUMMY, ME_REMOTE): Move from here....
58259         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58260         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58261         Dmitry V. Levin.
58262         Include mountlist.h first, to test the interface.
58263
58264 2005-01-29  Bruno Haible  <bruno@clisp.org>
58265
58266         * lib/progname.c (program_name): Initialize.
58267         Needed when linking statically on MacOS X.
58268
58269 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         Sync from coreutils.
58272         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58273         (Depends-on): Add c-strtod.
58274         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58275
58276 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58277
58278         Sync from coreutils.
58279         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58280
58281         Remove files that are specific to coreutils.
58282         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58283
58284 2005-01-28  Bruno Haible  <bruno@clisp.org>
58285
58286         * modules/javacomp: New file.
58287         * MODULES.html.sh (Java): Add javacomp.
58288
58289 2005-01-28  Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/javacomp.m4: New file, from GNU gettext.
58292
58293 2005-01-28  Bruno Haible  <bruno@clisp.org>
58294
58295         * lib/javacomp.sh.in: New file, from GNU gettext.
58296         * lib/javacomp.h: New file, from GNU gettext.
58297         * lib/javacomp.c: New file, from GNU gettext.
58298
58299 2005-01-26  Simon Josefsson  <jas@extundo.com>
58300
58301         * lib/gai_strerror.c: Use GPL in header.
58302
58303 2005-01-26  Bruno Haible  <bruno@clisp.org>
58304
58305         * modules/javaexec: New file.
58306         * MODULES.html.sh (Java): Add javaexec.
58307
58308 2005-01-26  Bruno Haible  <bruno@clisp.org>
58309
58310         * m4/javaexec.m4: New file, from GNU gettext.
58311
58312 2005-01-26  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/javaexec.sh.in: New file, from GNU gettext.
58315         * lib/javaexec.h: New file, from GNU gettext.
58316         * lib/javaexec.c: New file, from GNU gettext.
58317
58318 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58319
58320         * modules/lchown (Depends-on): Remove lchown.h
58321
58322 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58323
58324         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58325         must be defined if the header file was not found, in order
58326         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58327
58328 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58329
58330         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58331         initializers for struct pentry_state.
58332         (__argp_error): Check return value of __asprintf
58333         (__argp_failure): Translate error message
58334
58335         * lib/argp-parse.c: Removed braces around the expansion of N_()
58336
58337 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58338
58339         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58340         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58341         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58342         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58343         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58344         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58345         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58346         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58347         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58348         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58349         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58350         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58351         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58352         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58353         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58354         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58355         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58356         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58357         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58358         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58359         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58360         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58361         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58362         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58363         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58364         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58365         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58366         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58367         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58368         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58369         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58370         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58371         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58372         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58373         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58374         Use an all-permissive copyright notice, recommended by RMS.
58375
58376 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * modules/chdir-long (Depends-on): Remove mempcpy.
58379
58380 2005-01-21  Jim Meyering  <jim@meyering.net>
58381
58382         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58383         same value as for Solaris 9.
58384
58385         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58386         component length.  This included changing the parameter to be
58387         of type `char *' rather than `char const *'.
58388         * lib/chdir-long.h (chdir_long): Update prototype.
58389
58390         * lib/openat.c (fdopendir, fstatat): New functions.
58391         * lib/openat.h: Include headers required for use of DIR and struct
58392         stat.
58393         [AT_SYMLINK_NOFOLLOW]: Define.
58394         (fdopendir, fstatat): Add prototypes.
58395
58396 2005-01-21  Bruno Haible  <bruno@clisp.org>
58397
58398         * modules/classpath: New file.
58399         * MODULES.html.sh (Java): Add classpath.
58400
58401 2005-01-21  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/classpath.h: New file, from GNU gettext.
58404         * lib/classpath.c: New file, from GNU gettext.
58405
58406 2005-01-20  Simon Josefsson  <jas@extundo.com>
58407
58408         * modules/version-etc-fsf: New file.
58409
58410 2005-01-20  Simon Josefsson  <jas@extundo.com>
58411
58412         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58413         * lib/version-etc.c: Remove version_etc_copyright.
58414         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58415         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58416
58417 2005-01-20  Simon Josefsson  <jas@extundo.com>
58418
58419         * lib/base64.h (isbase64): Add.
58420
58421         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58422         using a unsigned prototype, don't inline.
58423         (base64_decode): Use it.
58424
58425 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58426
58427         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58428         it.
58429
58430 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         * lib/save-cwd.c (save_cwd): Remove code to support the case
58433         where fchdir is missing or flaky.
58434
58435 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58438
58439 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58442         AC_LIBSOURCES now does this.
58443         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58444         with new ullong_max module.
58445
58446 2005-01-19  Bruno Haible  <bruno@clisp.org>
58447
58448         * modules/sh-quote: New file.
58449         * MODULES.html.sh (Executing programs): Add sh-quote.
58450
58451 2005-01-19  Bruno Haible  <bruno@clisp.org>
58452
58453         * lib/sh-quote.h: New file, from GNU gettext.
58454         * lib/sh-quote.c: New file, from GNU gettext.
58455
58456 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         Merge from coreutils.
58459         * m4/ullong_max.m4: New file.
58460         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58461         (gl_MACROS): Assume localeconv exists.
58462
58463 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         Merge changes from coreutils, as described below in several
58466         changelogs dated today.
58467
58468         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58469         (O_DIRECTORY): Remove; not needed here, since "." must be
58470         a directory.  All uses removed.
58471         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58472         universal on Suns, and we also need to test for IRIX.
58473         Revamp code to use 'if' rather than '#if'.
58474         Avoid unnecessary comparison of cwd->desc to 0.
58475
58476         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58477         for known valid error numbers rather than observed invalid ones.
58478
58479 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * modules/ullong_max: New file.
58482
58483         * modules/chdir-long, modules/openat: New files.
58484         * modules/save-cwd (Depends-on): Depend on chdir-long.
58485         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58486
58487 2005-01-18  Jim Meyering  <jim@meyering.net>
58488
58489         Merge from coreutils.
58490         * m4/chdir-long.m4, m4/openat.m4: New files.
58491         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58492         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58493         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58494         is sane and DOES follow symlinks.  Besides, testing 20 different
58495         systems found no broken chown implementations.
58496         Prompted by a change in rsync's copy of this macro.
58497         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58498
58499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58500
58501         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58502         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58503         NULL-means-set-to-current-time semantics.
58504         Remove temporary file immediately, rather than waiting
58505         for configure's at-exit trap code to do it.
58506
58507 2005-01-18  Jim Meyering  <jim@meyering.net>
58508
58509         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58510
58511         * lib/utimens.c (futimens): Account for the fact that futimes
58512         can also fail with errno == ENOSYS or errno == ENOENT.
58513         Patch from Dmitry V. Levin.
58514
58515         Change the name of the robust chdir function from chdir to chdir_long.
58516         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58517         (restore_cwd): Use chdir_long, not chdir.
58518         * lib/chdir-long.c: Renamed from chdir.c.
58519         * lib/chdir-long.h: Renamed from chdir.h.
58520         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58521         Hurd.
58522
58523 2005-01-18  Bruno Haible  <bruno@clisp.org>
58524
58525         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58526         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58527         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58528         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58529         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58530         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58531         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58532         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58533         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58534         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58535         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58536         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58537         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58538         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58539         Use an all-permissive copyright notice, recommended by RMS.
58540
58541 2005-01-18  Bob Proulx  <bob@proulx.com>
58542
58543         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58544         simplify offsetof() macro construct to avoid compile failure with
58545         native HP-UX 11.0 ANSI C compiler.
58546
58547 2005-01-17  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58550         redundant because stpncpy.m4 takes care of it.
58551
58552 2005-01-17  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58555
58556 2005-01-17  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58559         used.
58560
58561 2005-01-17  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/fwriteerror.h (fwriteerror): Change specification to include
58564         fclose.
58565         * lib/fwriteerror.c: Include <stdbool.h>.
58566         (fwriteerror): At the end, close the file stream. Record whether
58567         stdout was already closed.
58568
58569 2005-01-17  Bruno Haible  <bruno@clisp.org>
58570
58571         * lib/execute.c (environ): Declare if needed.
58572         * lib/pipe.c (environ): Likewise.
58573         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58574
58575 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58576
58577         * modules/argp: Depend on vsnprintf
58578
58579 2005-01-10  Jim Meyering  <jim@meyering.net>
58580
58581         * modules/closeout (Depends-on): Add atexit.
58582
58583 2005-01-06  Bruno Haible  <bruno@clisp.org>
58584
58585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58586
58587 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58590         definitions to be after all include files, to avoid collisions.
58591         Problem reported by Bob Proulx.
58592
58593 2005-01-04  Jim Meyering  <jim@meyering.net>
58594
58595         Changes imported from coreutils.
58596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58597         as the mkstemp template, use a temporary directory and an
58598         8.3-friendly template to avoid trouble on systems like DJGPP.
58599         Reported by Juan M. Guerrero via Stepan Kasal.
58600         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58601         close. Remove the temporary directory right away, rather than waiting
58602         for configure's at-exit trap code to do it.
58603         Suggestion from Stepan Kasal.
58604
58605 2005-01-01  Simon Josefsson  <jas@extundo.com>
58606
58607         * gnulib-tool: Print #include directives when --import'ing.
58608
58609 2004-12-28  Simon Josefsson  <jas@extundo.com>
58610
58611         * tests/test-base64.c: Include required header files.  Remove
58612         unused variables.
58613
58614 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * modules/error (Depends-on): Remove gettext.
58617
58618 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58619
58620         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58621         not needed.  This removes a dependency on the gettext module.
58622         [defined _LIBC]: Do not include <libintl.h>; not needed.
58623
58624 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58627         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58628
58629 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58632         HAVE_DECL_STRTOLD.
58633
58634 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * modules/getdate (Depends-on): Remove alloca-opt.
58637
58638 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58641
58642 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58643
58644         * lib/argp-parse.c: Include <stddef.h>.
58645         (alignof, alignto): New macros.
58646         (parser_init): Don't assume that void * is aligned sufficiently
58647         for struct option.
58648
58649         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58650         need to extend the stack.
58651         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58652         large.
58653
58654 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58655
58656         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58657
58658 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58661         (2004-10-24) change.  Apparently this was a false alarm.
58662
58663         * modules/getdate: Depend on alloca-opt, not alloca.
58664
58665 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58666
58667         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58668         Remove now-obsolete comment about AIX.
58669         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58670         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58671         (YYMAXDEPTH): New macro.
58672
58673 2004-12-18  Simon Josefsson  <jas@extundo.com>
58674
58675         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58676
58677 2004-12-18  Bruno Haible  <bruno@clisp.org>
58678
58679         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58680
58681 2004-12-18  Bruno Haible  <bruno@clisp.org>
58682
58683         * lib/fatal-signal.c (fatal_signals): Make non-const.
58684         (init_fatal_signals): New function.
58685         (uninstall_handlers, install_handlers): Ignore signals that were set to
58686         SIG_IGN.
58687         (at_fatal_signal): Call init_fatal_signals.
58688         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58689         SIG_IGN.
58690         Reported by Paul Eggert.
58691
58692 2004-12-18  Bruno Haible  <bruno@clisp.org>
58693
58694         * doc/alloca.texi: New file.
58695         * doc/alloca-opt.texi: New file.
58696
58697 2004-12-17  Jim Meyering  <jim@meyering.net>
58698
58699         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58700         Otherwise, install-sh could exit with improper exit status when
58701         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58702
58703 2004-12-16  Simon Josefsson  <jas@extundo.com>
58704
58705         * tests/test-base64.c: Add license.
58706
58707 2004-12-15  Stepan Kasal  <address@hidden>
58708
58709         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58710
58711 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * modules/getcwd (Files): Add m4/d-ino.m4.
58714         Suggested by Mark D. Baushke.
58715
58716 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * lib/getdate.y (textint): New member "negative".
58719         (time_zone_hhmm): New function.
58720         Expect 14 shift-reduce conflicts, not 13.
58721         (o_colon_minutes): New rule.
58722         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58723         (yylex): Set the "negative" member of signed numbers.
58724
58725 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * doc/getdate.texi (Time of day items, Time zone items):
58728         Describe new formats +00:00, UTC+00:00.
58729
58730 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58733         spurious "-l"s.  Problem reported by Stepan Kasal.
58734
58735 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58738         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58739
58740 2004-12-04  Simon Josefsson  <jas@extundo.com>
58741
58742         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58743         Vandoorselaere <yoann@prelude-ids.org>.
58744
58745 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58746
58747         Changes imported from coreutils.
58748         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58749         exist.
58750         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58751
58752 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58753
58754         Changes imported from coreutils.
58755         * lib/hard-locale.c: Assume <locale.h> exists.
58756         Include "strdup.h".
58757         (GLIBC_VERSION): New macro.
58758         (hard_locale): Assume setlocale exists.
58759         Rewrite to avoid #ifdef.
58760         Use strdup rather than malloc + strcpy.
58761         * lib/human.c: Assume <locale.h> exists.
58762         (human_readable): Assume localeconv exists.
58763
58764 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * modules/hard-locale (Depends-on): Add strdup.
58767
58768 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58769
58770         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58771         convert T2, not T.  (Imported from libc.)
58772
58773 2004-11-30  Simon Josefsson  <jas@extundo.com>
58774
58775         * modules/restrict (License): Change to LGPL.
58776
58777 2004-11-30  Simon Josefsson  <jas@extundo.com>
58778
58779         * m4/restrict.m4: Add copyright and copying conditions.
58780
58781 2004-11-30  Simon Josefsson  <jas@extundo.com>
58782
58783         * m4/base64.m4: New file.
58784
58785 2004-11-30  Simon Josefsson  <jas@extundo.com>
58786
58787         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58788         base64.
58789
58790         * tests/test-base64.c: New file.
58791
58792         * modules/base64: New file.
58793
58794 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58795
58796         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58797         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58798
58799         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58800
58801 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58804         (__getcwd.c): Don't restore errno; glibc doesn't.
58805         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58806         first, falling back to our code only if its results look suspicious.
58807         Ensure that the resulting buffer is only as large as necessary.
58808
58809         * lib/readutmp.c: Include readutmp.h first.
58810         Include <errno.h>, since readutmp.h no longer does that.
58811         * lib/readutmp.h: Don't include <errno.h>,
58812         <sys/param.h>, <time.h>; not needed to establish interface.
58813         (errno): Remove decl.
58814         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58815         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58816         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58817
58818 2004-11-28  Simon Josefsson  <jas@extundo.com>
58819
58820         * lib/base64.h, base64.c: New file.
58821
58822 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58825
58826 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58829         (Depends-on): Remove pathmax, same.  Add mempcpy.
58830         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58831         (Makefile.am): Append getcwd.h to lib_SOURCES.
58832         (Include): Add getcwd.h.
58833         (Maintainer): Change from Jim Meyering to "all, glibc",
58834         since getdate now uses intended-for-glibc code.
58835         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58836         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58837
58838 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58841         HP's ANSI C compiler.
58842         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58843         Declaring int functions causes warnings on some modern systems and
58844         shouldn't be needed to compile on ancient ones.
58845         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58846         defined.
58847
58848         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58849         with the following changes.
58850         (__set_errno): Parenthesize properly.
58851         Include <stdbool.h>.
58852         (MIN, MAX, MATCHING_INO): New macros.
58853         (__getcwd): Define with prototype, not K&R form.
58854         Use heuristics to allocate default buffer on stack if possible.
58855         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58856         behavior, and to avoid the PATH_MAX limit when computing
58857         ../../../../...
58858         Use MATCHING_INO to compare inode number to file.
58859         Check for arithmetic overflow in size calculations.
58860         Fix bug in reallocation of dot array that caused getcwd to fail
58861         on directories nested deeper than 75.
58862         Be more careful about saving errno on error.
58863         Do not use realloc; use only free+malloc, as this is a bit
58864         more flexible and avoids a needless copy operation.
58865         Do not inspect st_dev and st_ino for symbolic links; POSIX
58866         doesn't specify the latter.
58867         Check for closedir errors.
58868         Avoid needless casts.
58869         Use "#ifdef weak_alias" around weak_alias, to be like other
58870         glibc code.
58871         The following changes to getcwd.c have effect only when used in
58872         gnulib; they have no effect inside glibc proper.
58873         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58874         as alloca isn't used.
58875         (alloca, __alloca): Likewise.
58876         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58877         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58878         unconditionally, as gnulib assumes C89 or better.
58879         Do not include <sys/param.h>.
58880         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58881         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58882         better.
58883         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58884         Include <dirent.h> in a way that is compatible with modern Autoconf.
58885         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58886         New macros, if not already defined.
58887         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58888         Use "_LIBC", not "defined _LIBC", for consistency.
58889         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58890         a mempcpy module.
58891         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58892         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58893         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58894         credit only to Jim Meyering and adjust the copyright dates.
58895         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58896         <stdlib.h>, <unistd.h>, "pathmax.h".
58897         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58898         (INITIAL_BUFFER_SIZE): Remove.
58899         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58900
58901 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58902
58903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58904         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58905         Use the _ONCE methods, for efficiency.
58906         Check for fcntl.h.  In test program, include <errno.h>
58907         and <fcntl.h> if available.  Remove old K&R cruft from
58908         test program.  Check for common errors in GNU/Linux,
58909         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58910         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58911         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58912         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58913         name accordingly.
58914         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58915         accommodate new getcwd.c.
58916         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58917         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58918         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58919         that's all we need now.
58920
58921 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58922
58923         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58924         argp-parse.c depends on getopt internals, that means we should
58925         always use our getopt, to be on the safe side.
58926         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58927         order not to spoil the result of an eventual previous invocation
58928         of gl_GETOPT_SUBSTITUTE.
58929
58930 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58931
58932         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58933         redefinition warnings. To avoid them, include the defines
58934         in `#if !defined __need_getopt ... #endif'. The only place
58935         where __getopt_argv_const is used is in definitions
58936         of getopt_long and getopt_long_only below, which are as well
58937         protected by `#ifndef __need_getopt'.
58938         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58939         __need_getopt after including <stdio.h> and <unistd.h> These
58940         headers might have defined it.
58941
58942 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58945
58946 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58949         (futimens): New function, which uses futimes if available.
58950         (futimens, utimens): Support timespec==NULL, with same semantics
58951         as utime and utimens.
58952         * lib/utimens.h (futimens): New decl.
58953
58954 2004-11-23  Jim Meyering  <jim@meyering.net>
58955
58956         * lib/getopt_.h: Remove trailing blanks.
58957
58958 2004-11-23  Jim Meyering  <jim@meyering.net>
58959
58960         * lib/__fpending.c: Add comment.
58961
58962 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58963
58964         * modules/canonicalize (Depends-on): Add xreadlink.
58965         Problem reported by James Youngman.
58966
58967 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58970         New macros.
58971         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58972         optopt): Use them instead of invoking ## directly; otherwise, the
58973         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58974
58975 2004-11-19  Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/strtok_r.c: Move comments from here...
58978         * lib/strtok_r.h: ... to here.
58979
58980 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58983         implementations that mishandle size_t overflow.
58984
58985 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58986
58987         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58988         might fail.  Problem reported by Yoann Vandoorselaere.
58989         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58990         implementations that mishandle size_t overflow.
58991
58992 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58993
58994         * modules/canon-host (Depends-on): Add strdup.
58995
58996 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58999
59000 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59001
59002         * lib/canon-host.c: Include "strdup.h".
59003         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59004         Use strdup instead of malloc/strcpy to duplicate strings.
59005
59006         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59007         (human_space_before_unit): New constant.
59008         * lib/human.c (human_readable): Support it.
59009
59010         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59011         (xgetcwd): Set errno correctly when failing.
59012         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59013         the failure is actually due to a PATH_MAX problem.
59014
59015         Further getopt changes to make it more likely that glibc will
59016         buy the changes back.
59017         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59018         (getopt): Use it, so to preserve glibc semantic
59019         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59020         when compiling for libc.
59021         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59022         (getopt_long, getopt_long_only): Use it.
59023
59024         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59025         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59026         (getopt): Argv is now char * const *, as per standard.
59027         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59028         not char *__getopt_argv_const *.
59029         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59030         _getopt_long_only_r): Likewise.
59031         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59032         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59033         _getopt_long_r, _getopt_long_only_r): Likewise.
59034         * lib/getopt_.h (__getopt_argv_const): Remove.
59035         (getopt): Argv is now char * const *, as per standard.
59036
59037         * lib/getdate.y (tORDINAL): New token.
59038         (day, relunit): Allow it for relative times.
59039         (relative_time_table): Use tORDINAL for ordinals.
59040
59041 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59042
59043         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59044         Document that "second" isn't allowed as an ordinal number.
59045
59046 2004-11-16  Jim Meyering  <jim@meyering.net>
59047
59048         * modules/closeout (Depends-on): Add fpending.
59049
59050 2004-11-15  Jim Meyering  <jim@meyering.net>
59051
59052         * lib/closeout.c: Include "__fpending.h" once again.
59053         Include <stdbool.h>.
59054         (close_stdout): Don't fail just because stdout was closed initially,
59055         since some programs don't write to stdout in the normal course of
59056         operation (other than --version and --help), and we don't want this
59057         function to make e.g. `touch file >&-' fail.
59058         But do fail if it was closed and someone has tried to write to it.
59059         E.g., `printf foo >&-' must fail.
59060
59061 2004-11-13  Jim Meyering  <jim@meyering.net>
59062
59063         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59064
59065 2004-11-12  Simon Josefsson  <jas@extundo.com>
59066
59067         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59068         small doc fix is still pending.
59069
59070 2004-11-11  Simon Josefsson  <jas@extundo.com>
59071
59072         * modules/strtok_r: New file.
59073
59074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59075         strtok_r.
59076
59077 2004-11-11  Simon Josefsson  <jas@extundo.com>
59078
59079         * m4/strtok_r.m4: New file.
59080
59081         * m4/getopt.m4: Replace opterr.
59082
59083 2004-11-11  Simon Josefsson  <jas@extundo.com>
59084
59085         * lib/strtok_r.h, strtok_r.c: New file.
59086
59087 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59090         of replacing opterr, getopt, etc.  This should handle the
59091         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59092
59093 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59094
59095         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59096         we can stop lying to compilers about the constness of argv when we
59097         are compiled outside glibc.
59098         (getopt, getopt_long, getopt_long_only): Use it.
59099         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59100         _getopt_internal, getopt): Likewise.
59101         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59102         _getopt_long_only_r): Likewise.
59103         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59104         _getopt_long_r, _getopt_long_only_r): Likewise.
59105
59106         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59107         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59108         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59109         the other external symbols.
59110         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59111         declaration, since the above renaming now works around collisions.
59112
59113 2004-11-11  Jim Meyering  <jim@meyering.net>
59114
59115         * lib/linebreak.c: Remove trailing blanks.
59116         * lib/alloca_.h: Likewise.
59117         * lib/acosl.c: Likewise.
59118         * lib/euidaccess.c: Likewise.
59119         * lib/allocsa.h: Likewise.
59120
59121 2004-11-10  Simon Josefsson  <jas@extundo.com>
59122
59123         * m4/getaddrinfo.m4: New file.
59124
59125 2004-11-10  Simon Josefsson  <jas@extundo.com>
59126
59127         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59128
59129 2004-11-10  Simon Josefsson  <jas@extundo.com>
59130
59131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59132         getaddrinfo.
59133
59134         * modules/getaddrinfo: New file.
59135
59136 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59137
59138         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59139
59140 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59141
59142         * lib/mktime.c (SHR): New macro, which is a portable
59143         substitute for >> that should work even on Crays.
59144         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59145         Problem reported by Mark D. Baushke in
59146         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59147         * lib/getdate.y (SHR): Likewise.
59148         (tm_diff): Use it.
59149         * lib/strftime.c (SHR): Likewise.
59150         (tm_diff): Use it.
59151         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59152         quote_these_too, so that right shifts are well defined.  All uses
59153         changed.
59154
59155 2004-11-10  Jim Meyering  <jim@meyering.net>
59156
59157         Ensure that no close failure goes unreported.
59158         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59159         return early when it seems there's nothing to flush.
59160         Don't include __fpending.h.
59161
59162 2004-11-10  Jim Meyering  <jim@meyering.net>
59163
59164         * modules/closeout (Depends-on): Remove fpending.
59165
59166 2004-11-10  Jim Meyering  <jim@meyering.net>
59167
59168         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59169
59170 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59171
59172         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59173         gl_FUNC_STRFTIME.
59174         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59175         and AC_REQUIRE when possible, to avoid duplicate checks.
59176         Check for <wchar.h>.
59177
59178 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59179
59180         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59181
59182 2004-11-09  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/sockpfaf.m4: New file.
59185
59186 2004-11-05  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59189         Reported by Mark D. Baushke <mdb@cvshome.org>.
59190
59191 2004-11-04  Bruno Haible  <bruno@clisp.org>
59192
59193         2004-09-11  Bruno Haible  <bruno@clisp.org>
59194                 * allocsa.valgrind: New file.
59195         2004-02-06  Bruno Haible  <bruno@clisp.org>
59196                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59197                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59198                 Reported by Christopher Seip <chris.seip@hp.com>.
59199
59200 2004-11-04  Bruno Haible  <bruno@clisp.org>
59201
59202         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59203         (Makefile.am): Distribute it.
59204
59205 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59208         with errno == ERANGE if the buffer is too small.
59209         Problem reported by Mark D. Baushke.
59210
59211 2004-11-03  Albert Chin  <china@thewrittenword.com>
59212             Paul Eggert  <eggert@cs.ucla.edu>
59213
59214         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59215         equivalent, substitute $ac_type for equivalent type rather than
59216         blindly using uint32_t *always* which won't work if uint32_t is not
59217         available.  Define _UINT32_T to work around typedef of uint32_t if
59218         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59219         2.5.1.
59220
59221 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         * m4/jm-macros.m4: Sync from coreutils.
59224         (gl_MACROS): Check for mbrlen, for pathchk.
59225         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59226
59227 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * lib/xreadlink.c (MAXSIZE): New macro.
59230         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59231         size does not exceed MAXSIZE.  Avoid cast.
59232         As suggested by Mark D. Baushke in
59233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59234         if readlink fails with buffer size just under MAXSIZE, try again
59235         with MAXSIZE.
59236
59237 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59238
59239         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59240
59241 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59242         and  Paul Eggert  <eggert@cs.ucla.edu>
59243
59244         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59245         (get_date): Overparenthesize to avoid GCC warning.
59246
59247 2004-11-02  Bruno Haible  <bruno@clisp.org>
59248
59249         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59250         returns void.
59251
59252 2004-11-02  Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59255         function returns void.
59256
59257 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59260         fflush_unlocked, flockfile, funlockfile, funlockfile,
59261         fputs_unlocked, putc_unlocked.
59262
59263 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59266         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59267         already declared.
59268
59269 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59270
59271         * modules/getdate (Files): Add doc/getdate.texi.
59272         (Depends-on): Add setenv, xalloc.
59273
59274 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59275
59276         * lib/getdate.y: Add support for TZ="foo" within a date string.
59277         Fix some bugs near time_t boundaries.  Reject dates with
59278         out-of-range components, e.g., "Sept 31".
59279         Include <stdlib.h>, "setenv.h", "xalloc.h".
59280         (ISDIGIT_LOCALE): Remove; unused.
59281         Note that the TZ and time functions used here are not reentrant.
59282         (mktime_ok, get_tz): New functions.
59283         (TZBUFSIZE): New constant.
59284         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59285         This requires that we sometimes generate our own TZ="XXX..." setting.
59286
59287 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * doc/getdate.texi: New file, from coreutils with modifications for
59290         the new TZ parsing.
59291
59292 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59293
59294         * lib/mktime.c (not_equal_tm): Remove redundant check.
59295
59296 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59297
59298         * modules/regex (lib_SOURCES): Add regex.c.
59299         Reported by James Youngman in
59300         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59301
59302 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59303
59304         * lib/getdate.y: Use Bison 1.875 features, and some minor
59305         code cleanups.  This change does not affect semantics.
59306         Don't include <stdlib.h>; no longer needed.
59307         Don't include unlocked-io.h; only the "#if TEST" code uses
59308         stdio, and performance isn't crucial there.
59309         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59310         Bison 1.875 features as described below.
59311         All uses of "PC." replaced by "pc->".
59312         (YYSTYPE): Add a forward declaration.
59313         (yylex, yyerror): Use full prototypes in forward decls.
59314         Use "%pure-parser" rather than obsolescent "%pure_parser".
59315         Use %parse-param and %lex-param instead of obsolescent
59316         YYPARSE_PARAM and YYLEX_PARAM.
59317         (meridian_table, month_and_day_table, time_units_table,
59318         relative_time_table, time_zone_table, military_table,
59319         lookup_zone, lookup_word, get_date):
59320         Use NULL instead of 0 where appropriate.
59321         (to_hour): Avoid abort (), to avoid a dependency on
59322         stdlib.h.
59323         (yyerror, yylex): Now accepts parser_control * arg.
59324         (main) [TEST]: Use '\0' rather than 0 for char.
59325
59326 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59329
59330 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59331
59332         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59333         It's now the caller's responsibility to handle the case where
59334         !HAVE_GETPAGESIZE && !defined getpagesize.
59335
59336         * lib/mktime.c (leapyear): Arg is long int, not int.
59337
59338 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59341
59342 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59343
59344         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59345         missing.  Problem reported by James Youngman.
59346
59347 2004-10-16  Simon Josefsson  <jas@extundo.com>
59348
59349         * gnulib-tool: Fix comments.  Fix parse problem.
59350         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59351
59352 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59355         implementation of getopt_long.  Problem reported by Alexander Taler in:
59356         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59357
59358 2004-10-15  Bruno Haible  <bruno@clisp.org>
59359
59360         * gnulib-tool: Untabify. Initialize supplied_libname.
59361         (func_usage): More homogenous output.
59362         (func_modules_transitive_closure, func_modules_to_filelist,
59363         func_emit_lib_Makefile_am): New functions.
59364         (func_import): New function, extracted from big case statement. Use
59365         func_get_license, func_modules_transitive_closure,
59366         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59367         opt_lgpl. Don't use test -a, as it's not portable.
59368         (func_create_testdir): Use func_modules_transitive_closure,
59369         func_modules_to_filelist, func_emit_lib_Makefile_am.
59370
59371 2004-10-15  Bruno Haible  <bruno@clisp.org>
59372
59373         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59374
59375 2004-10-15  Bruno Haible  <bruno@clisp.org>
59376
59377         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59378         the portions belonging to each module.
59379         Suggested by Derek Robert Price <derek@ximbiot.com>.
59380
59381 2004-10-12  Simon Josefsson  <jas@extundo.com>
59382
59383         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59384         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59385         to real functions.
59386
59387 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59388
59389         * modules/vsnprintf: New file.
59390
59391 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59392
59393         * m4/vsnprintf.m4: New file.
59394
59395 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59396
59397         * lib/vsnprintf.h: New file.
59398         * lib/vsnprintf.c: New file.
59399
59400 2004-10-11  Bruno Haible  <bruno@clisp.org>
59401
59402         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59403         vsnprintf.
59404
59405 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59406
59407         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59408
59409 2004-10-07  Bruno Haible  <bruno@clisp.org>
59410
59411         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59412         fits into the provided buffer.
59413
59414 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * lib/diacrit.c, diacrit.h: Add GPL notice.
59417
59418         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59419         notice.
59420         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59421         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59422         This avoids a potential constant-folding bug.
59423
59424 2004-10-05  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59427         for the declaration of strsep.
59428
59429 2004-10-05  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59432
59433 2004-10-04  Simon Josefsson  <jas@extundo.com>
59434
59435         * modules/memmem: New file.
59436         * tests/test-memmem.c: New file.
59437         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59438
59439 2004-10-04  Simon Josefsson  <jas@extundo.com>
59440
59441         * m4/memmem.m4: New file.
59442
59443 2004-10-04  Simon Josefsson  <jas@extundo.com>
59444
59445         * lib/memmem.h: New file.
59446         * lib/memmem.c: New file, taken from glibc.
59447
59448 2004-10-04  Simon Josefsson  <jas@extundo.com>
59449
59450         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59451         '#ifdef USE_UNLOCKED_IO'.
59452
59453 2004-10-04  Simon Josefsson  <jas@extundo.com>
59454
59455         * config/srclist.txt: Add memmem from glibc.
59456
59457 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59460
59461         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59462         modules/exclude, modules/getdate, modules/getline,
59463         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59464         modules/getusershell, modules/linebuffer, modules/md5,
59465         modules/mountlist, modules/posixtm, modules/readtokens,
59466         modules/readutmp, modules/regex, modules/sha1,
59467         modules/version-etc, modules/yesno:
59468         Remove dependency on unlocked-io.
59469
59470 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59471
59472         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59473
59474         * m4/unlocked-io.m4: Add copyright notice.
59475         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59476
59477 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59478
59479         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59480         * lib/xmalloc.c (xmemdup): Likewise.
59481         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59482         XFREE): Remove these long-obsolescent macros.
59483         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59484         * lib/xstrdup.c: Remove.
59485
59486         * lib/regex.c (re_comp): Cast gettext return value to char *,
59487         Problem reported by Martin Neitzel via Mark D. Baushke.
59488
59489 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59492         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59493         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59494         regex.c, sha1.c, version-etc.c, yesno.c:
59495         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59496         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59497         the includer's responsibility.
59498
59499         Sync from coreutils.
59500
59501         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59502         points to the start of a string, as the C Standard says the
59503         resulting behavior is undefined.
59504
59505         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59506         simple -> simple_backups, numbered_existing ->
59507         numbered_existing_backups, numbered -> numbered_backups
59508         to avoid shadowing problems.  All uses changed.
59509         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59510         * lib/backupfile.c (check_extension, numbered_backup):
59511         Rename locals to avoid shadowing 'basename'.
59512         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59513         once.
59514
59515         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59516         * lib/.cvsignore: Add getopt.h.
59517
59518 2004-10-04  Bruno Haible  <bruno@clisp.org>
59519
59520         * modules/README: New file.
59521         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59522         not a module.
59523
59524 2004-10-02  Jim Meyering  <jim@meyering.net>
59525
59526         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59527
59528 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59529
59530         * modules/strsep: New file.
59531
59532 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59533
59534         * m4/strsep.m4: New file.
59535
59536 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59537
59538         * lib/strsep.h: New file.
59539         * lib/strsep.c: New file.
59540
59541 2004-10-01  Simon Josefsson  <jas@extundo.com>
59542
59543         * lib/snprintf.c (snprintf): Handle size==0.
59544
59545 2004-10-01  Simon Josefsson  <jas@extundo.com>
59546             Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59549         (snprintf): Declare 'args'.
59550
59551 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         * lib/snprintf.c: Remove comments as to why each header is needed.
59554
59555 2004-10-01  Bruno Haible  <bruno@clisp.org>
59556
59557         * MODULES.html.sh: Add strsep.
59558
59559 2004-09-30  Simon Josefsson  <jas@extundo.com>
59560
59561         * modules/snprintf: New file.
59562
59563 2004-09-30  Simon Josefsson  <jas@extundo.com>
59564
59565         * m4/snprintf.m4: New file.
59566
59567 2004-09-30  Simon Josefsson  <jas@extundo.com>
59568
59569         * lib/snprintf.h, lib/snprintf.c: New files.
59570
59571 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59572
59573         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59574         (hol_entry_help): Never translate an empty string.
59575         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59576         * lib/argp.h (OPTION_NO_TRANS): New option.
59577
59578 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         * modules/argp (Maintainer): Replace Simon Josefsson
59581         by Sergey Poznyakoff.
59582
59583 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59586         changes merged back into glibc.
59587
59588 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59591
59592 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59593
59594         * lib/xvasprintf.c: Include xalloc.h.
59595         (xvasprintf): Use xalloc_die, not xmalloc_die.
59596
59597 2004-09-29  Bruno Haible  <bruno@clisp.org>
59598
59599         * modules/alloca-opt: New file, derived from modules/alloca.
59600         * modules/allocsa: Depend on alloca-opt instead of alloca.
59601         * modules/setenv: Likewise.
59602         * modules/vasnprintf: Likewise.
59603         * MODULES.html.sh: Add alloca-opt.
59604
59605 2004-09-28  Simon Josefsson  <jas@extundo.com>
59606
59607         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59608         LGPL, and to replace license template from GPL to LGPL.
59609
59610 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * modules/dummy: Change license to LGPL.
59613
59614 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59615
59616         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59617
59618 2004-09-24  Simon Josefsson  <jas@extundo.com>
59619
59620         * modules/minmax (License): Change from GPL to LGPL.
59621
59622 2004-09-23  Simon Josefsson  <jas@extundo.com>
59623
59624         * gnulib-tool (--import): Typo.
59625
59626 2004-09-23  Simon Josefsson  <jas@extundo.com>
59627
59628         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59629
59630 2004-09-22  Bruno Haible  <bruno@clisp.org>
59631
59632         * modules/*: Add 'License' field.
59633         * gnulib-tool: Accept --extract-license option.
59634         (func_get_license): New function.
59635
59636 2004-09-21  Bruno Haible  <bruno@clisp.org>
59637
59638         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59639         Reported by Simon Josefsson.
59640
59641 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59642
59643         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59644         gl_AC_TYPE_LONG_LONG.
59645
59646 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59649
59650 2004-09-18  Simon Josefsson  <jas@extundo.com>
59651         and  Paul Eggert  <eggert@cs.ucla.edu>
59652
59653         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59654         calls with autoreconf.  Define GL_LIB.
59655
59656 2004-09-14  Karl Berry  <karl@gnu.org>
59657
59658         * config/srclist.txt: unsync setenv.c, sigh.
59659
59660 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59661
59662         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59663         Problem reported by Bruno Haible in:
59664         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59665
59666 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59667
59668         * config/srclist.txt: Comment out argp-pvh.c.
59669
59670 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59671
59672         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59673         in case some system header has #define'd it.  Problem reported by
59674         Soeren D. Schulze in
59675         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59676
59677 2004-09-09  Karl Berry  <karl@gnu.org>
59678
59679         * regex.[ch]: delete from the root.  These were supposed to be
59680                 synced with emacs cvs, but this has not happened for about
59681                 a year, and anyway nothing else uses emacs regex.[ch].
59682                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59683                 lib/regex[.ch] is untouched.
59684
59685 2004-09-09  Bruno Haible  <bruno@clisp.org>
59686
59687         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59688
59689 2004-09-09  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59692         modifications.
59693         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59694
59695 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59696
59697         * modules/xvasprintf: New file.
59698         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59699
59700 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59701
59702         * lib/xvasprintf.h: New file.
59703         * lib/xvasprintf.c: New file.
59704         * lib/xasprintf.c: New file.
59705
59706 2004-09-08  Bruno Haible  <bruno@clisp.org>
59707
59708         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59709
59710 2004-09-08  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59713         length is > INT_MAX.
59714         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59715         more.
59716
59717 2004-09-08  Bruno Haible  <bruno@clisp.org>
59718
59719         * lib/stdint_.h: New file, taken from GNU clisp.
59720
59721 2004-09-08  Bruno Haible  <bruno@clisp.org>
59722             Oskar Liljeblad  <oskar@osk.mine.nu>
59723
59724         * modules/stdint: New file.
59725         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59726
59727 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         Import from coreutils.
59730         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59731         strings on unbounded length.  alloca's performance benefits aren't
59732         that important here.
59733         (V_STRDUP): Remove.
59734         (parse_with_separator): New function, with most of the internals
59735         of the old parse_user_spec.  Allow user to omit both user and group,
59736         for compatibility with FreeBSD.
59737         Clone only the user name, not the entire spec.
59738         Do not set *uid, *gid unless entirely successful.
59739         Avoid memory leak in some failing cases.
59740         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59741         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59742         (parse_user_spec): Rewrite to use parse_with_separator.
59743
59744 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         * modules/userspec: Don't depend on alloca.
59747
59748 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59749
59750         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59751
59752 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59755         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59756         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59757
59758 2004-08-16  Simon Josefsson  <jas@extundo.com>
59759
59760         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59761         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59762         Add --dry-run for --import.
59763         Let user provided command line parameters override configure.ac
59764         settings.
59765
59766 2004-08-12  Simon Josefsson  <jas@extundo.com>
59767
59768         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59769         as discussed with Paul Eggert in threads rooted at
59770         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59771         and
59772         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59773         Before, the test was empty, and relied on ELIDE_CODE in source
59774         code.)
59775         (gl_PREREQ_GETOPT): New macro.
59776         (gl_GETOPT): Use them.
59777
59778 2004-08-12  Simon Josefsson  <jas@extundo.com>
59779
59780         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59781         * lib/getopt_.h: Renamed from getopt.h.
59782
59783 2004-08-12  Simon Josefsson  <jas@extundo.com>
59784
59785         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59786         Change default library name from libfoo to libgnu.
59787         Now, if you have a configure.ac that says:
59788                 gl_SOURCE_BASE(gl)
59789                 gl_M4_BASE(gl/m4)
59790                 gl_MODULES(error getopt etcetera)
59791                 gl_INIT
59792         you can import all you need by running:
59793                 ../gnulib/gnulib-tool --import
59794
59795         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59796         (Makefile.am): Rewrite, use logic from argz.
59797         (Include): Use <getopt.h> instead of "getopt.h".
59798
59799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * modules/argp (Files): Add m4/unlocked-io.m4.
59802         (Depends-on): Add extensions.
59803
59804 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59807         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59808         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59809         Check for program_invocation_name, program_invocation_short_name,
59810         flockfile, funlockfile, features.h, _getopt_long_only_r.
59811
59812 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59815         its complicated substitute.
59816         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59817         and program_invocation_name.
59818         (__argp_basename) [!_LIBC]: Remove; the only use was
59819         replaced by its body.
59820         (__argp_short_program_name): Change condition from
59821         !defined __argp_short_program_name to
59822         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59823         to match argp-namefrob.h.
59824         (__argp_failure): Don't assume strerror_r returns char *.
59825         * lib/argp-parse.c (N_): Define unconditionally.
59826         (argp_default_options): Fill out initializers with 0 to avoid
59827         gcc warnings.
59828
59829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59830
59831         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59832         getopt1.c.
59833
59834 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         Merge from coreutils.
59837
59838         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59839
59840         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59841         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59842
59843 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         Merge from coreutils.
59846
59847         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59848         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59849         for Reliant Unix 5.43.
59850
59851         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59852         (union fooround): Use uintmax_t, not long int.
59853         The rest is a merge from libc:
59854         [defined _LIBC]: Include <shlib-compat.h>.
59855         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59856
59857         * lib/settime.c (settime): Recode to avoid warning with
59858         Sun Forte C 6U2.
59859
59860         * lib/strverscmp.c: Convert to UTF-8.
59861
59862 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59865         m4/uintmax_t.m4.
59866
59867 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * modules/xalloc-die: New file.
59870         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59871
59872         * modules/md5 (Files): Add m4/uint32_t.m4.
59873         * modules/sha1: Renamed from modules/sha.
59874         (Files):
59875         Rename lib/sha.h to lib/sha1.h.
59876         Rename lib/sha.c to lib/sha1.c.
59877         Rename m4/sha.m4 to m4/sha1.m4.
59878         (lib_SOURCES): Likewise.
59879         (configure.ac): Rename gl_SHA to gl_SHA1.
59880         (Include): sha.h -> sha1.h.
59881
59882 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59883
59884         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59885         * m4/sha1.m4: Renamed from sha.m4.
59886         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59887
59888 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * lib/obstack.h (obstack_empty_p):
59891         Don't assume that chunk->contents is suitably aligned.
59892         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59893         Likewise. Problem reported by Benno in
59894         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59895
59896         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59897         readable.  This could be improved further but it'd take some work.
59898
59899 2004-08-08  Simon Josefsson  <jas@extundo.com>
59900
59901         * modules/xgethostname (Depends-on): Remove exit and error (not
59902         used).
59903
59904         * modules/getpass-gnu: Add getpass.h.
59905         (Depends-on): Add stdbool.
59906         * modules/getpass: Add getpass.h.
59907
59908 2004-08-08  Simon Josefsson  <jas@extundo.com>
59909
59910         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59911         Check getpass declaration.
59912
59913 2004-08-08  Simon Josefsson  <jas@extundo.com>
59914
59915         * lib/xgethostname.c: Don't include error.h (not used).
59916
59917         * lib/getpass.h: Add.
59918         * lib/getpass.c: Include getpass.h first.
59919
59920 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         * lib/xalloc-die.c: New file.
59923         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59924         All uses removed.
59925         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59926         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59927         xalloc-die.c.
59928         (_, N_, xalloc_die): Move to xalloc-die.c.
59929         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59930         so that we needn't mess with xalloc_msg_memory_exhausted.
59931
59932         * lib/sha1.h: Renamed from sha.h.
59933         (SHA1_H): Renamed from _SHA_H.
59934         (sha1_ctx): Renamed from sha_ctx.
59935         (sha1_init_ctx): Renamed from sha_init_ctx.
59936         (sha1_process_block): Renamed from sha_process_block.
59937         (sha1_process_bytes): Renamed from sha_process_bytes.
59938         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59939         (sha1_read_ctx): Renamed from sha_read_ctx.
59940         (sha1_stream): Renamed from sha_stream.
59941         (sha1_buffer): Renamed from sha_buffer.
59942         * lib/sha1.c: Likewise; renamed from sha.c.
59943         Do not include <sys/types.h>.
59944         Include <stddef.h> rather than <stdlib.h>.
59945
59946 2004-08-08  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59949         FILESYSTEM_PREFIX_LEN.
59950         * lib/progreloc.c: Likewise.
59951         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59952
59953 2004-08-06  Simon Josefsson  <jas@extundo.com>
59954
59955         * modules/progname (Depends-on): Don't depend on stdbool.
59956
59957 2004-08-06  Simon Josefsson  <jas@extundo.com>
59958
59959         * modules/getsubopt: New file.
59960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59961         getsubopt.
59962
59963 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         More merge from coreutils.
59966
59967         * m4/utimens.m4, m4/utimecmp.m4: New files.
59968         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59969         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59970         prereq.m4, sha.m4: Import changes from coreutils.
59971
59972 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         More merge from coreutils.
59975         * modules/raise, modules/readtokens0, modules/utimens:
59976         * modules/utimecmp, module/xnanosleep: New files.
59977         * modules/strftime: Add lib/strftime.h.
59978         Change include from <time.h> to "strftime.h".
59979         * modules/yesno: Add lib/yesno.h.
59980         * modules/backupfile: Remove lib/addext.c.
59981         * modules/euidaccess: Add stat-macros.h.
59982         * modules/canonicalize, modules/euidaccess,
59983         modules/filemode, modules/lchown, modules/makepath,
59984         modules/rmdir, modules/stat: Likewise.
59985
59986 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         Merge from tar.
59989         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59990         SIZE_MAX is a valid preprocessor constant.
59991         (__argp_basename): Change from "#ifndef _LIBC"
59992         to "#ifndef __argp_short_program_name", so that
59993         we don't compile these functions for tar.
59994
59995         More merges from coreutils.
59996         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59997         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59998         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59999         * lib/addext.c: Remove; no longer needed.
60000         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60001         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60002         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60003         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60004         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60005         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60006         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60007         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60008         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60009         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60010         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60011         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60012         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60013         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60014         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60015         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60016         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60017         Import changes from coreutils.
60018
60019 2004-08-05  Simon Josefsson  <jas@extundo.com>
60020
60021         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60022
60023 2004-08-05  Simon Josefsson  <jas@extundo.com>
60024
60025         * m4/getsubopt.m4: New file.
60026
60027 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60028
60029         Merge from coreutils.
60030
60031         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60032         * m4/getcwd-path-max.m4: New files.
60033
60034         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60035         FILESYSTEM_PREFIX_LEN ->
60036         FILE_SYSTEM_PREFIX_LEN.
60037         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60038         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60039         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60040         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60041
60042         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60043         prerequisite modules now handle the DOS stuff.
60044         Don't check for unistd.h.
60045
60046 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60047
60048         Merge from coreutils.
60049
60050         * lib/.gdb-history: Remove; this doesn't belong here.
60051
60052         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60053         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60054         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60055         * lib/getcwd.c: New files.
60056
60057         * lib/dirname.h: Include <stdbool.h>.
60058         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60059         for consistency with POSIX terminology.  All uses changed.
60060         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60061         (strip_trailing_slashes): Use bool for booleans.
60062         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60063
60064         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60065         sometimes returns a positive errno value even when it succeeds.
60066         (print_errno_message) [!LIBC]: Fall back on strerror if
60067         __strerror_r fails.
60068
60069         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60070         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60071         (longest_relative_suffix): New function.
60072         (path_concat): Use it.  Assume first argument is not NULL.
60073         Port to DOS.  Omit redundant separators.
60074         Report an error instead of returning NULL.
60075         Use mempcpy instead of memcpy.
60076         (xpath_concat): Remove: not declared or used.
60077
60078         * lib/same.h: Include <stdbool.h>
60079         (same_name): Return bool, not int.
60080         * lib/same.c (same_name): Likewise.
60081         (errno): Don't declare; we assume C89 or better now.
60082
60083         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60084         if not already defined.
60085
60086         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60087         * lib/dup-safer.c (errno): Likewise.
60088
60089 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         Merge from coreutils.
60092         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60093         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60094         * modules/path-concat: Don't depend on strdup.
60095
60096 2004-08-03  Simon Josefsson  <jas@extundo.com>
60097
60098         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60099         * lib/progname.h: Don't include stdbool.h.
60100
60101 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60104         * MODULES.html.sh (func_all_modules): Remove fatal.
60105
60106 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60107
60108         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60109
60110 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60111
60112         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60113         working.
60114
60115 2004-08-02  Simon Josefsson  <jas@extundo.com>
60116
60117         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60118         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60119         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60120
60121 2004-08-01  Simon Josefsson  <jas@extundo.com>
60122
60123         * lib/xgetdomainname.c: Include stdlib.h, for free().
60124
60125 2004-07-19  Bruno Haible  <bruno@clisp.org>
60126
60127         * MODULES.html.sh (func_all_modules): Add dummy.
60128
60129 2004-07-16  Simon Josefsson  <jas@extundo.com>
60130
60131         * modules/dummy: New file.
60132
60133 2004-07-16  Simon Josefsson  <jas@extundo.com>
60134
60135         * lib/dummy.c: New file.
60136
60137 2004-07-16  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/backupfile.h: Add extern "C" for C++.
60140         * lib/closeout.h: Likewise.
60141         * lib/copy-file.h: Likewise.
60142         * lib/findprog.h: Likewise.
60143         * lib/full-write.h: Likewise.
60144         * lib/pathname.h: Likewise.
60145         * lib/progname.h: Likewise.
60146         * lib/stpcpy.h: Likewise.
60147         * lib/stpncpy.h: Likewise.
60148         * lib/strcase.h: Likewise.
60149         * lib/strstr.h: Likewise.
60150         * lib/xalloc.h: Likewise.
60151
60152         * lib/mbswidth.h: Add extern "C" for C++.
60153         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60154
60155 2004-07-13  Robert Millan  <robertmh@gnu.org>
60156
60157         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60158
60159 2004-07-09  Simon Josefsson  <jas@extundo.com>
60160
60161         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60162         failed without this.)
60163
60164 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * modules/chown (Files): Add lib/fchown-stub.c, since
60167         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60168
60169 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * lib/fchown-stub.c: New file.
60172
60173 2004-06-24  Jim Meyering  <jim@meyering.net>
60174
60175         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60176
60177 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         * modules/argz: Omit "#include".
60180
60181         * MODULES.html.sh (func_all_modules): Add calloc, to match
60182         2004-06-01 addition of calloc module.
60183
60184 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60185
60186         * m4/argz.m4: New file, which is autoupdated from libtool.
60187
60188 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60189
60190         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60191         libtool.
60192
60193 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * config/srclist-update: Don't insist on "USA." before the
60196         close-comment, as libtool omits the period and puts the */ on a
60197         separate line.
60198         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60199         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60200
60201 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60202
60203         * modules/argz: New file.
60204         * MODULES.html.sh (func_all_modules): Add argz.
60205
60206 2004-06-12  Jim Meyering  <jim@meyering.net>
60207         and  Paul Eggert  <eggert@cs.ucla.edu>
60208
60209         * modules/hash (Files): Add lib/xalloc.h.
60210         * modules/pipe (Depends-on): Add wait-process.
60211         * modules/stat (Depends-on): Add xalloc.
60212         * modules/userspec (Files): Add lib/userspec.h.
60213         * modules/xstrto
60214
60215         Upgrade from gettext-0.13.
60216         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60217         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60218         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60219
60220 2004-06-10  Jim Meyering  <jim@meyering.net>
60221
60222         * lib/calloc.c: New file.
60223
60224 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * lib/getdate.y (yylex): Allow space between sign and number.
60227         Problem reported by Dan Jacobson.
60228
60229 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60230
60231         Merge from coreutils CVS.
60232
60233         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60234         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60235         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60236         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60237         xstrtol.m4: Fix copyright date and/or serial number.
60238
60239         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60240         See if we need an fchown replacement.
60241         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60242         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60243         and use the replacement function if we detect either defect.
60244
60245         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60246         gl_UTIMECMP.
60247
60248 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60249         and  Jim Meyering  <jim@meyering.net>
60250
60251         Merge from coreutils CVS.
60252
60253         * lib/stat-macros.h: New file, with contents from file-type.h
60254         and coreutils' system.h.
60255         * lib/file-type.c: Include "stat-macros.h".
60256         * lib/file-type.h (file_type): Move all macro definitions to new file,
60257         stat-macros.h.
60258
60259         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60260         Wrap old code with this conditional.
60261         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60262         function that does not dereference symlinks.
60263         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60264
60265         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60266         dependency problems.
60267         (xreadlink): Accept new arg SIZE, for efficiency.
60268         All decls and uses changed.
60269         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60270
60271         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60272         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60273
60274         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60275         sysexits.h.
60276
60277 2004-06-01  Jim Meyering  <jim@meyering.net>
60278
60279         * m4/calloc.m4: New file.
60280
60281 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60282
60283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60284         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60285         Also, fix a typo in a diagnostic.
60286
60287 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60288
60289         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60290         or AC_FUNC_REALLOC.
60291
60292 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60293
60294         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60295         macros to be defined.
60296         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60297         the allocator returns NULL because the requested size is zero.
60298
60299 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60302         var.  Add comment explaining why libc still defines it.  This
60303         merges the following patch from glibc:
60304         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60305
60306 2004-05-20  Andreas Schwab  <schwab@suse.de>
60307
60308         * m4/free.m4: Replace free if it not known to work, not the other
60309         way round.
60310
60311 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60314         present in glibc since revision 1.1 of this file.
60315         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60316         obstack_alignment_mask, obstack_alloc, obstack_base,
60317         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60318         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60319         obstack_grow0, obstack_init, obstack_int_grow,
60320         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60321         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60322         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60323         nonexistent functions.
60324
60325 2004-05-18  Karl Berry  <karl@gnu.org>
60326
60327         * config/srclist.txt: break link for vasnprintf.c.
60328
60329 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         Port obstack to the AS/400, where pointers are 16 bytes wide and
60332         you cannot cast an integer to a valid pointer.  This patch is
60333         currently waiting to be integrated into glibc; see
60334         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60335
60336         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60337         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60338         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60339         (struct obstack): temp member is now a union of a pointer and
60340         an integer, instead of an integer.  All integer uses changed.
60341         This does not affect the physical layout of struct obstack,
60342         except on hosts (like the AS/400) where the size or alignment of
60343         void * is greater than that of ptrdiff_t.
60344         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60345         __STDC__)]: Store temporary in pointer member of union, not
60346         integer member.
60347         * lib/obstack.c: Include <stddef.h>, for offsetof.
60348         (struct fooalign): Remove; it doesn't need a name.
60349         (union fooround): Change double to long double, and add void *.
60350         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60351         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60352         not a macro.  Hence the values are always int; so remove all
60353         casts-to-int in uses.
60354
60355 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60358         we can get this patch merged into glibc.
60359
60360 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60361             Paul Eggert  <eggert@cs.ucla.edu>
60362
60363         * m4/argp: Depend on alloca.
60364
60365 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60366             Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60369         freecoding.
60370
60371 2004-05-17  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60374         precision that consists of a '.' followed by an empty digit string.
60375         Patch by Tor Lillqvist <tml@iki.fi>.
60376
60377 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60378
60379         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60380         for backward compatibility with older code.  We need our own
60381         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60382         it under some other name, and our alloca.h will define it.
60383
60384 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60385             Derek Price  <derek@ximbiot.com>
60386
60387         * lib/alloca.c: Include <alloca.h>, to get our interface.
60388         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60389         include <alloca.h> first.  Use C89 prototype for alloca; this
60390         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60391         Use #elif for simplicity, since we can assume C89 now.
60392         Don't try to source the system alloca.h since it will not be found
60393         and to prevent recursively including its replacement.
60394         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60395         * lib/regex.c: Likewise.
60396
60397 2004-05-16  Derek Price  <derek@ximbiot.com>
60398             Paul Eggert  <eggert@cs.ucla.edu>
60399
60400         getline cleanup.  This changes the getndelim2 API: both order of
60401         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60402         no delimiter).
60403
60404         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60405         interface does that.
60406         (getline): Always use getdelim, so that we don't have two
60407         copies of this code.
60408         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60409         if available.
60410         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60411         (GETNDELIM2_MAXIMUM): New macro.
60412         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60413         instead of the old practice of delim2==0.  All callers changed.
60414         Return -1 on overflow, instead of returning junk.
60415         Do not set *linesize unless allocation succeeds.
60416         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60417         that we include sys/types.h.
60418         * lib/getnline.h: Likewise.
60419         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60420         (getndelim2): Reorder arguments.
60421         * lib/getnline.c (getnline, getndelim):
60422         Don't discard the NMAX argument.
60423         (getnline): Invoke getndelim, to avoid code duplication.
60424         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60425         of (size_t) -1 by callers of the getnline family.
60426
60427 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60430         Check for gettimeofday.
60431         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60432         Check for settimeofday, stime.
60433
60434 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60435
60436         * lib/nanosleep.c (suspended): Change its type from int to
60437         sig_atomic_t volatile.
60438         (first_call): Make it private to rpl_nanosleep, and have it
60439         be zero initially as that's a bit faster.
60440         (my_usleep): Round up fractional times instead of truncating them,
60441         as this is the usual meaning for 'sleep'.
60442
60443         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60444         doesn't work.
60445         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60446         (ENOSYS): Define if not defined.
60447         (settime): Fall back on stime if it exists and settimeofday fails.
60448         But don't bother with fallbacks if a method fails with errno == EPERM.
60449
60450 2004-05-11  Jim Meyering  <jim@meyering.net>
60451
60452         Prior to this change, the save_cwd caller required read access to the
60453         current directory on most systems (ones with the fchdir function).
60454
60455         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60456         fails, try write-only, and finally, resort to using xgetcwd.
60457
60458 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60459
60460         * lib/obstack.c, obstack.h: Import changes from libc.
60461
60462 2004-04-28  Bruno Haible  <bruno@clisp.org>
60463
60464         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60465         also implicitly appends .exe to executables.
60466         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60467         accepts Windows pathnames.
60468         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60469         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60470         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60471         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60472         Reported by Derek Robert Price <derek@ximbiot.com>.
60473
60474 2004-04-21  Karl Berry  <karl@gnu.org>
60475
60476         * config/srclist.txt (localcharset.c): break sync.
60477
60478 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60479
60480         * m4/host-os.m4: Add a copyright notice.
60481
60482 2004-04-20  Jim Meyering  <jim@meyering.net>
60483
60484         Change UTILS_ to gl_ in AC_DEFINE'd names.
60485         Change utils_- and jm_-prefixed variables, too.
60486         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60487         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60489
60490         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60491         Don't emit trailing blanks.
60492         Also rename jm_-prefixed variables to have gl_ prefix.
60493
60494         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60495         Also rename jm_-prefixed variables to have gl_ prefix.
60496
60497         * m4/jm-macros.m4: Reflect the renamings.
60498         * m4/prereq.m4: Likewise.
60499
60500 2004-04-20  Jim Meyering  <jim@meyering.net>
60501
60502         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60503         memory.
60504
60505 2004-04-20  Jim Meyering  <jim@meyering.net>
60506             Bruno Haible  <bruno@clisp.org>
60507
60508         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60509         memory when realloc fails.
60510
60511 2004-04-19  Jim Meyering  <jim@meyering.net>
60512
60513         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60514         now that readutmp.c may call `free (0)'.
60515
60516 2004-04-19  Bruno Haible  <bruno@clisp.org>
60517
60518         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60519         * m4/inttypes_h.m4: Likewise.
60520         * m4/stdint_h.m4: Likewise.
60521         * m4/intmax_t.m4: Likewise.
60522         * m4/uintmax_t.m4: Likewise.
60523
60524 2004-04-18  Jim Meyering  <jim@meyering.net>
60525
60526         * m4/prereq.m4: Don't forbid jm_ prefix.
60527
60528         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60529         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60530         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60531         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60532         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60533         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60534         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60535         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60536         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60537         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60538         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60539         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60540         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60541         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60542         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60543         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60544         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60545         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60546         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60547
60548 2004-04-18  Jim Meyering  <jim@meyering.net>
60549
60550         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60551         failure, don't leak memory and do call END_UTMP_ENT.
60552
60553 2004-04-16  Jim Meyering  <jim@meyering.net>
60554
60555         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60556         coreutils' stat program.
60557         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60558
60559 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60560
60561         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60562         C89.
60563         (CHAR_BIT): Remove, since we assume C89.
60564         Include <stdint.h> if available, as per current Autoconf CVS advice.
60565
60566 2004-03-31  Jim Meyering  <jim@meyering.net>
60567
60568         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60569         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60570         * m4/xalloc.m4: Likewise.
60571
60572 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60573
60574         Merge from coreutils.
60575
60576         * m4/inttostr.m4: New file.
60577         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60578         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60579         Require gl_CLOCK_TIME.
60580         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60581
60582 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60583
60584         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60585         not bool, to be more consistent with Unix conventions.
60586         Suggested by Bruno Haible.
60587
60588         Merge from coreutils.
60589
60590         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60591         * lib/umaxtostr.c: New files.
60592
60593         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60594         the usual <time.h> dance.
60595         (get_date): Change signature to support fractional time stamps.
60596         All callers changed.
60597         * lib/getdate.y: Include "getdate.h" first, as we can now
60598         assume C89 and don't need to worry about 'const'.
60599         Similarly, include "unlocked-io.h" near start, not in middle.
60600         Include <limits.h>.
60601         (textint.value): Use long int rather than int.
60602         (textint.digits): Use size_t rather than int.
60603         (BILLION, LOG10_BILLION): New constants.
60604         (parser_control): New member rel_ns.  Members day_ordinal,
60605         time_zone, month, day, hour, minutes, rel_year, rel_month,
60606         rel_day, rel_hour, rel_minutes, rel_seconds
60607         are now long int, not int.  Member seconds is now struct timespec,
60608         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60609         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60610         not int.
60611         (%union.intval): Now long int, not int.
60612         New member timespec.
60613         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60614         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60615         (spec): Now is a timespec or an item list.
60616         (timespec, items): New nonterminals.
60617         (time, rel, relunit, number, get_date):
60618         Add support for fractional seconds.
60619         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60620         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60621         (to_hour): First arg is now long int, not int.
60622         (to_year): Returns long int, not int.
60623         Don't treat year -70 like 70.
60624         (tm_diff): Returns long int, not int.
60625         (lookup_word): Use bool instead of int when appropriate.
60626         (yylex): Use size_t for count, not int.
60627         Detect overflow when parsing large integer constants.
60628         Add support for fractions.
60629         (get_date): Make pointers 'const' if possible.
60630         Use more-portable code to detect integer overflow.
60631         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60632         Don't use ctime; it's not reliable if the year has >4 digits.
60633
60634         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60635         This is for compatibility with BSD.
60636
60637         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60638         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60639         From coreutils' system.h.
60640
60641         * lib/userspec.c: Don't include "posixver.h".
60642         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60643         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60644         compatible extension.  Simplify code by removing a boolean int
60645         that was always nonzero if a string was nonnull.
60646
60647 2004-03-30  Jim Meyering  <jim@meyering.net>
60648
60649         Merge from coreutils.
60650
60651         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60652         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60653         on some systems one must include <grp.h> before it.
60654         Reported by Christian Krackowizer.
60655
60656 2004-03-30  Jim Meyering  <jim@meyering.net>
60657
60658         Merge from coreutils.
60659
60660         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60661
60662         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60663         an empty input stream.
60664
60665         * lib/readtokens.c: Include <stdbool.h>.
60666         (readtoken): Use `size_t' rather than int/long.
60667         All callers adjusted.
60668         Use `bool' rather than `int' where appropriate.
60669         Use memset rather than an explicit loop.
60670         Use x2nrealloc rather than xrealloc.
60671         Allow the use of `\0' as a delimiter.
60672         (readtokens): Likewise.
60673         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60674
60675 2004-03-30  Jim Meyering  <jim@meyering.net>
60676
60677         * m4/realloc.m4: Remove file, since now it does no more than
60678         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60679         the `configure.ac' section of module/realloc.
60680         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60681
60682 2004-03-30  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60685         nonnull.
60686
60687 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60688
60689         Merge changes to getloadavg.c from coreutils and Emacs.
60690
60691         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60692         Define to an expression, not to the empty string.
60693         Include cloexec.h and xalloc.h.
60694         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60695         Use set_cloexec_flag rather than rolling our own.
60696         * lib/cloexec.c, lib/cloexec.h: New files.
60697
60698 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60699
60700         * m4/cloexec.m4: New file.
60701
60702 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60703
60704         * lib/getopt.h: Sync with libc CVS.
60705
60706 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60707             Bruno Haible  <bruno@clisp.org>
60708
60709         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60710         mbswidth.
60711
60712 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60713             Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/mbswidth.h: Include <wchar.h> only if
60716         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60717         <wchar.h>.
60718         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60719
60720 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60721
60722         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60723         Sync with libc CVS.
60724         * lib/getopt_int.h: New file, also synced from libc.
60725
60726 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60727
60728         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60729         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60730         Bring back getopt.c, getopt.h, getopt1.c.
60731
60732 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60733
60734         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60735         All uses changed.  Check for sa_sigaction member; this fixes
60736         a bug first reported by Jason Andrade in
60737         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60738
60739 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60740
60741         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60742         '#if' expressions.  Unlike the code it replaces, it does not
60743         depend on (defined _SC_PAGESIZE).  However, it does depend on
60744         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60745         first reported by Jason Andrade in
60746         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60747
60748 2004-02-25  Simon Josefsson  <jas@extundo.com>
60749
60750         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60751
60752 2004-02-25  Simon Josefsson  <jas@extundo.com>
60753
60754         * lib/strdup.h: New file.
60755         * lib/strdup.c: Include it.
60756         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60757         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60758
60759 2004-02-23  Karl Berry  <karl@gnu.org>
60760
60761         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60762         (from fencepost.gnu.org:/gd/gnuorg).
60763
60764 2004-02-23  Karl Berry  <karl@gnu.org>
60765
60766         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60767         * config/srclist.txt: add maintain/standards documents.
60768
60769 2004-02-18  Bruno Haible  <bruno@clisp.org>
60770
60771         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60772         Reported by Derek Robert Price <derek@ximbiot.com>.
60773
60774 2004-02-16  Karl Berry  <karl@gnu.org>
60775
60776         * config/mkinstalldirs, install-sh: update from automake.
60777
60778 2004-02-06  Karl Berry  <karl@gnu.org>
60779
60780         * m4/po.m4: update from gettext 0.14.1.
60781
60782 2004-02-06  Karl Berry  <karl@gnu.org>
60783
60784         * lib/config.charset: update from gettext 0.14.1.
60785
60786 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60787
60788         Add comments and code, prompted by suggestions from Bruno Haible
60789         for sh-quote.
60790         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60791         describing the enum quoting_style values.
60792         * lib/quotearg.c (quotearg_alloc): New function.
60793         (quotearg_buffer_restyled): Treat lone { and } as special.
60794         Treat = as special.  Work around bug with older shells
60795         that "see" a '\' that is really the 2nd byte of a multibyte char.
60796         Quote empty string with shell_quoting_style.
60797
60798 2004-02-03  Bruno Haible  <bruno@clisp.org>
60799
60800         * m4/pipe.m4: New file, from GNU gettext.
60801
60802 2004-02-03  Bruno Haible  <bruno@clisp.org>
60803
60804         * lib/pipe.h: New file, from GNU gettext.
60805         * lib/pipe.c: New file, from GNU gettext.
60806
60807 2004-01-27  Bruno Haible  <bruno@clisp.org>
60808
60809         * m4/execute.m4: New file, from GNU gettext.
60810
60811 2004-01-27  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/execute.h: New file, from GNU gettext.
60814         * lib/execute.c: New file, from GNU gettext.
60815         * lib/w32spawn.h: New file, from GNU gettext.
60816
60817 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60818
60819         Merge from diffutils.
60820
60821         * lib/file-type.c (file_type): Add typed memory objects.
60822         * lib/file-type.h (S_TYPEISTMO): New macro.
60823
60824         * lib/c-stack.h (c_stack_action): Remove argv argument.
60825         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60826         (die): Don't calculate message unless segv_action returns.
60827         (get_stack_location, min_address_from_argv, max_address_from_argv,
60828         volatile stack_base, volatile_stack_size): Remove.
60829         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60830         that every segmentation violation is a stack overflow.  (Ouch!)
60831         See Debian bug 136249 (still outstanding) for more info about why
60832         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60833
60834 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60835
60836         Exit-status fix from coreutils.
60837
60838         Use exit_failure consistently in place of EXIT_FAILURE,
60839         so that program exit statuses are consistent on failure.
60840
60841         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60842         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60843         * lib/argmatch.h: Comment fix to match the above.
60844         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60845         Now a macro referring to exit_failure, instead of a separate
60846         variable.  Include "exitfail.h" to get it.
60847         * lib/xstrtol.h: Include "exitfail.h".
60848         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60849
60850         * lib/long-options.c (parse_long_options): Use prototype
60851         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60852         for clarity.
60853
60854 2004-01-21  Jim Meyering  <jim@meyering.net>
60855
60856         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60857         so as not to conflict with a different-sized __mktime_internal
60858         function in GNU libc.
60859         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60860         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60861
60862 2004-01-20  Karl Berry  <karl@gnu.org>
60863
60864         * config/config.guess: update from config.
60865
60866         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60867
60868 2004-01-20  Bruno Haible  <bruno@clisp.org>
60869
60870         Safer stack allocation.
60871         * lib/setenv.c: Include allocsa.h.
60872         (alloca): Remove fallback definition.
60873         (freea): Remove macro.
60874         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60875         instead of freea.
60876
60877 2004-01-20  Bruno Haible  <bruno@clisp.org>
60878
60879         * m4/eealloc.m4: New file, from GNU gettext.
60880
60881 2004-01-20  Bruno Haible  <bruno@clisp.org>
60882
60883         * m4/allocsa.m4: New file, from GNU gettext.
60884
60885 2004-01-20  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/xallocsa.h: New file, from GNU gettext.
60888         * lib/xallocsa.c: New file, from GNU gettext.
60889
60890 2004-01-20  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60893
60894 2004-01-20  Bruno Haible  <bruno@clisp.org>
60895
60896         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60897         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60898         specially.
60899
60900 2004-01-20  Bruno Haible  <bruno@clisp.org>
60901
60902         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60903         patch.
60904
60905 2004-01-20  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60908
60909 2004-01-20  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/eealloc.h: New file.
60912
60913 2004-01-20  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/binary-io.h: Avoid warnings on Cygwin.
60916
60917 2004-01-20  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/allocsa.h: New file, from GNU gettext.
60920         * lib/allocsa.c: New file, from GNU gettext.
60921
60922 2004-01-18  Karl Berry  <karl@gnu.org>
60923
60924         * doc/gpl.texi, doc/lgpl.texi: new files.
60925
60926 2004-01-18  Karl Berry  <karl@gnu.org>
60927
60928         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60929         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60930
60931 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60932
60933         Merge from coreutils.
60934
60935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60936         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60937         (gl_DEFAULT_POSIX2_VERSION): Move
60938         the documentation from 'configure' into 'config.hin',
60939         so that 'configure --help' isn't burdened by it and
60940         we don't have to worry about its formatting there.
60941         Reword the documentation so that it's more succinct
60942         and can be run together into a single paragraph.
60943         * m4/same.m4 (gl_SAME): Check for pathconf.
60944
60945 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60946
60947         Merge from coreutils.
60948
60949         * lib/posixver.c: Include posixver.h.
60950
60951         * lib/same.c: Include <stdbool.h>, <limits.h>.
60952         (_POSIX_NAME_MAX): Define if not defined.
60953         (MIN): New macro.
60954         (same_name): If file names are silently truncated, report
60955         that the file names are the same if they are the same after
60956         the silent truncation.
60957
60958         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60959         conversion function.
60960         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60961         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60962         longer needed.
60963
60964 2004-01-15  Jim Meyering  <jim@meyering.net>
60965
60966         Merge from coreutils.
60967
60968         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60969         if no library is required.
60970         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60971         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60972         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60973         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60974         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60975         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60976         value, $ac_cv_search_crypt, if it's "none required".
60977         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60978         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60979         not gl_FUNC_GETLOADAVG.
60980         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60981         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60982
60983 2004-01-15  Jim Meyering  <jim@meyering.net>
60984
60985         Merge from coreutils.
60986
60987         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60988         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60989         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60990
60991         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60992         optional configure-time default.
60993
60994         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60995
60996         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60997
60998 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60999
61000         Merge from coreutils.
61001
61002         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61003         value, $ac_cv_search_nanosleep, if it's "none required".
61004
61005 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61006
61007         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61008         with like-named macro in fnmatch.c.
61009         (EXT): Use an internal constant instead.
61010
61011         Merge fnmatch patches from glibc.
61012         * lib/fnmatch.c (mbsinit): Remove define.
61013         Add libc_hidden_ver (__fnmatch, fnmatch).
61014         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61015         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61016
61017 2004-01-14  Karl Berry  <karl@gnu.org>
61018
61019         * config/install-sh: update from automake.
61020
61021 2004-01-13  Karl Berry  <karl@gnu.org>
61022
61023         * config/install-sh: update from automake.
61024
61025 2004-01-09  Karl Berry  <karl@gnu.org>
61026
61027         * config/install-sh: update from automake.
61028
61029 2004-01-05  Karl Berry  <karl@gnu.org>
61030
61031         * config/config.{sub,guess}: update from config.
61032
61033 2003-12-31  Karl Berry  <karl@gnu.org>
61034
61035         * config/depcomp: update from automake.
61036
61037 2003-12-14  Karl Berry  <karl@gnu.org>
61038
61039         * lib/config.charset: update from gettext-runtime.
61040
61041 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61042
61043         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61044         Bug reported by Alfred M. Szmidt.
61045
61046 2003-12-03  Bruno Haible  <bruno@clisp.org>
61047
61048         * m4/gettext.m4: Upgrade from gettext-0.13.
61049         * m4/po.m4: Upgrade from gettext-0.13.
61050         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61051         * m4/intmax.m4: New file, from gettext-0.13.
61052         * m4/printf-posix.m4: New file, from gettext-0.13.
61053
61054 2003-11-29  Karl Berry  <karl@gnu.org>
61055
61056         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61057
61058 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61059             Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/printf-parse.h: Don't include sys/types.h.
61062         (ARG_NONE): New macro.
61063         (char_directive): Change type of *arg_index fields to size_t.
61064         * lib/printf-parse.c: Don't include sys/types.h.
61065         (SSIZE_MAX): Remove macro.
61066         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61067         Remove unnecessary overflow check.
61068         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61069         fields.
61070
61071 2003-11-25  Bruno Haible  <bruno@clisp.org>
61072
61073         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61074
61075 2003-11-25  Bruno Haible  <bruno@clisp.org>
61076
61077         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61078         gt_TYPE_SSIZE_T.
61079
61080 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61081
61082         * modules/alloca: Remove dependency on xalloc.
61083
61084 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61085
61086         * lib/alloca.c: Remove dependency on xalloc module.
61087         (xalloc_die): Remove.
61088         (memory_full) [!defined emacs]: New macro.
61089         [!defined emacs]: Don't include xalloc.h.
61090         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61091         address arithmetic overflows.  Change datatypes a bit to avoid
61092         unnecessary casts.
61093
61094 2003-11-22  Jim Meyering  <jim@meyering.net>
61095
61096         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61097         s/size/size_t/.
61098
61099 2003-11-21  Karl Berry  <karl@gnu.org>
61100
61101         * config/config.{sub,guess}: update from config.
61102
61103 2003-11-18  Karl Berry  <karl@gnu.org>
61104
61105         * config/config.{sub,guess}: update from config.
61106
61107         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61108
61109 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61110
61111         * README: Mention that S+T cannot overflow if S is the size of
61112         an existing object and T is sufficiently small.
61113
61114 2003-11-17  Jim Meyering  <jim@meyering.net>
61115
61116         On systems without utime and without a utimes function capable of
61117         dealing with a NULL struct utimbuf* argument, this utime replacement
61118         could -- in unusual circumstances -- leak a file descriptor.
61119         * lib/utime.c: Include <unistd.h> and <errno.h>.
61120         (utime_null): Be sure to close `fd' and to preserve errno.
61121         Reported by Geoff Collyer via Arnold Robbins.
61122
61123 2003-11-17  Bruno Haible  <bruno@clisp.org>
61124
61125         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61126         (Depends-on): Add xsize.
61127
61128 2003-11-17  Bruno Haible  <bruno@clisp.org>
61129
61130         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61131
61132 2003-11-17  Bruno Haible  <bruno@clisp.org>
61133
61134         * lib/vasnprintf.c (alloca): Remove fallback definition.
61135         (freea): Remove definition.
61136         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61137         Reported by Paul Eggert.
61138
61139 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61140             Bruno Haible  <bruno@clisp.org>
61141
61142         Protect against address arithmetic overflow.
61143         * lib/printf-args.h: Include stddef.h.
61144         (arguments): Change type of field 'count' to size_t.
61145         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61146         'unsigned int' where appropriate.
61147         * lib/printf-parse.h: Include sys/types.h.
61148         (char_directive): Change type of *arg_index fields to ssize_t.
61149         (char_directives): Change type of fields 'count', max_*_length to
61150         size_t.
61151         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61152         (SSIZE_MAX): Define fallback value.
61153         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61154         instead of 'int' where appropriate. Check a_allocated, d_allocated
61155         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61156         * lib/vasnprintf.c: Include xsize.h.
61157         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61158         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61159         overflow. Avoid wraparound when converting a width or precision from
61160         decimal to binary.
61161
61162 2003-11-16  Bruno Haible  <bruno@clisp.org>
61163
61164         Update from GNU gettext.
61165         * lib/printf-parse.c: Generalize to it can be compiled for wide
61166         strings.
61167         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61168         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61169         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61170         SNPRINTF): New macros.
61171         Don't include <alloca.h> if the file is used inside libintl.
61172         (local_wcslen): New function, for Solaris 2.5.1.
61173         (VASNPRINTF): Use it instead of wcslen.
61174
61175 2003-11-16  Bruno Haible  <bruno@clisp.org>
61176
61177         * lib/xsize.h (xmax): New function.
61178         (xsum, xsum3, xsum4): Declare as "pure" functions.
61179
61180 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61181
61182         * modules/xalloc (Files): Undo latest change, since xalloc.h
61183         no longer needs SIZE_MAX or PTRDIFF_MAX.
61184
61185 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61186
61187         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61188         gl_PTRDIFF_MAX.
61189
61190 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61191
61192         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61193         "return", to pacify some unknown compiler.  Problem reported
61194         by Joerg Schilling.
61195
61196 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61197
61198         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61199         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61200         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61201         heuristic is just as accurate as far as we know, and it removes a
61202         dependency on size_max.m4 and ptrdiff_max.m4.
61203
61204 2003-11-11  Bruno Haible  <bruno@clisp.org>
61205
61206         * modules/xsize (Files): Add m4/size_max.m4.
61207         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61208
61209 2003-11-11  Bruno Haible  <bruno@clisp.org>
61210
61211         * m4/size_max.m4: New file.
61212         * m4/ptrdiff_max.m4: New file.
61213         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61214         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61215         (gl_XALLOC): Invoke it.
61216
61217 2003-11-11  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61220         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61221         defined.
61222
61223 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61224
61225         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61226         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61227         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61228         From Bruno Haible.
61229         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61230         not (size_t) -1, since it's defined here.
61231
61232 2003-11-09  Karl Berry  <karl@gnu.org>
61233
61234         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61235
61236 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61237
61238         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61239         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61240         Reject sizes of exactly SIZE_MAX bytes.
61241         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61242         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61243
61244 2003-11-05  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61247         SIZE_MAX defined in <limits.h> on Solaris.
61248
61249 2003-11-04  Jim Meyering  <jim@meyering.net>
61250
61251         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61252         variable names, rather than @VAR@.
61253         * modules/poll: Likewise.
61254
61255 2003-11-04  Bruno Haible  <bruno@clisp.org>
61256
61257         * modules/xsize: New file.
61258         * modules/linebreak: Depend on xsize.
61259         * MODULES.html.sh (func_all_modules): Add xsize.
61260
61261 2003-11-04  Bruno Haible  <bruno@clisp.org>
61262
61263         * m4/xsize.m4: New file.
61264
61265 2003-11-04  Bruno Haible  <bruno@clisp.org>
61266
61267         * lib/xsize.h: New file.
61268         * lib/linebreak.c: Include xsize.h.
61269         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61270         argument for overflow.
61271         Suggested by Paul Eggert.
61272
61273 2003-11-03  Karl Berry  <karl@gnu.org>
61274
61275         * config/config.{guess,sub}: update from config.
61276
61277 2003-11-03  Jim Meyering  <jim@meyering.net>
61278
61279         * modules/userspec (lib_SOURCES): Add userspec.h.
61280         (Include): Add "userspec.h".
61281         Improve description.
61282
61283 2003-11-03  Jim Meyering  <jim@meyering.net>
61284
61285         * lib/userspec.c: Include "userspec.h".
61286         * lib/userspec.h: New file.
61287
61288 2003-11-03  Bruno Haible  <bruno@clisp.org>
61289
61290         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61291
61292 2003-11-03  Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61295         available, to avoid (extremely rare) race condition.
61296         Suggested by Paul Eggert.
61297
61298 2003-11-02  Karl Berry  <karl@gnu.org>
61299
61300         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61301
61302 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61303
61304         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61305         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61306         (read_filesystem_list): Set and use me_type_malloced.
61307         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61308         whatever the type happens to be), for brevity and consistency.
61309         Check for size calculation overflow on Alphas running OSF/1.
61310
61311 2003-10-31  Jim Meyering  <jim@meyering.net>
61312
61313         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61314
61315         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61316
61317 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61318             Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61321         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61322
61323 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61324
61325         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61326         netbsd*-gnu*.  Suggested by Robert Millan.
61327
61328 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61329
61330         * modules/group-member: Depend on stdbool.
61331
61332 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61333
61334         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61335
61336 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61337
61338         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61339         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61340         after the 'gnu' in these cases.  This fixes some bugs in the
61341         previous change, and is based on suggestions by Robert Millan.
61342
61343 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61344
61345         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61346         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61347         no longer needed.
61348         * lib/quotearg.c (quotearg_n_options): Use it.
61349         * lib/group-member.c: Include <stdbool.h>.
61350         (free_group_info): Arg is now const *; don't free arg.
61351         (get_group_info): Now returns bool and accepts struct group_info *,
61352         rather than returning a malloc'ed struct group_info *.
61353         All uses changed.  Check for overflow in internal size calculation.
61354
61355         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61356         rather than xmalloc/xrealloc.
61357         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61358         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61359         conformance bug: the old code used a pointer after freeing the
61360         storage that it addressed.
61361         * lib/hash.c (hash_initialize): Simplify the code by using
61362         xalloc_oversized rather than doing it by hand.
61363         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61364         the buffer preserved.  Use free and xmalloc instead.
61365         * lib/quotearg.c (quotearg_n_options): Likewise.
61366         Use a simpler test for size overflow.  Don't use xalloc_oversized
61367         because unsigned int might be wider than size_t (!); this suggests
61368         that we should switch from unsigned int to size_t for slot numbers.
61369
61370 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61371
61372         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61373         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61374         NetBSD kernels.  Requested by Richard Stallman.
61375
61376 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61377
61378         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61379         to allocate the returned structure.  Do not allocate a subarray,
61380         as x2nrealloc will do that.
61381         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61382         instead of xnrealloc.
61383         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61384
61385 2003-10-27  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/stdbool_.h: Better support for BeOS.
61388
61389 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61390
61391         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61392         now uses inline.
61393
61394 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61395
61396         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61397         callers that want to do their own size-overflow checking.  Include
61398         <stdbool.h>, since xalloc_oversized returns bool.
61399         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61400         to use xalloc_oversized.
61401
61402         Add two functions x2realloc, x2nrealloc, for programs that grow
61403         arrays dynamically by doubling their sizes.
61404         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61405         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61406         New functions.
61407
61408         Port to C99 semantics for 'inline' of external functions.
61409         Bug reported by Bruno Haible.
61410         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61411         with the old contents of xnmalloc.
61412         (xnmalloc, xmalloc): Use it.
61413         (xnrealloc_inline): New static inline function,
61414         with the old contents of xnrealloc.
61415         (xnrealloc, xrealloc): Use it.
61416
61417         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61418         that.
61419
61420 2003-10-26  Karl Berry  <karl@gnu.org>
61421
61422         * config/srclist.txt (COPYING.DOC): no longer available from
61423         /gd/gnuorg; don't know where the ultimate source is.
61424
61425 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61426
61427         Fix several address-calculation bugs in the hash modules,
61428         plus some minor code cleanup.
61429
61430         * lib/hash.h: Include <stdbool.h>, for bool.
61431         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61432         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61433         hash_get_n_entries, hash_get_max_bucket_length,
61434         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61435         hash_rehash): Use size_t rather than unsigned.
61436         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61437         hash_get_n_buckets_used, hash_get_n_entries,
61438         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61439         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61440         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61441         Likewise.
61442         (SIZE_MAX): Define if not defined.
61443         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61444         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61445         hash_print):
61446         Use const * when possible.
61447         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61448         (check_tuning): Fix bug: if tuning parameters were very close to
61449         0 or 1, rounding errors could have caused subscript violations.
61450         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61451         (hash_initialize): Add 'fail:' label
61452         to free table and return NULL, and use it to simplify code.
61453         Use calloc rather than clearing the storage ourself.
61454         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61455         buffer size calculations.
61456         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61457         Include <stddef.h>, for size_t.
61458         * lib/hash-pjw.c (hash_pjw): Likewise.
61459         Switch to method described by Bruno Haible.
61460         Include <limits.h>, for CHAR_BIT.
61461         (SIZE_BITS): New macro.
61462
61463 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61464
61465         * m4/getline.m4 (AM_FUNC_GETLINE):
61466         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61467         hosts.  Problem reported by Derek Robert Price in
61468         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61469         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61470         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61471
61472 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61473
61474         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61475         ceiling the allocation at NMAX bytes rather than silently
61476         discarding input bytes before NMAX is reached.  This makes
61477         a difference only if NMAX exceeds SIZE_MAX / 2.
61478
61479         * lib/obstack.c: Merge from glibc.
61480         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61481         Add libc_hidden_def (_obstack_newchunk).
61482         (_obstack_free) [! defined _LIBC]: Remove.
61483         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61484         a clone of the function body.
61485         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61486         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61487
61488         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61489         glibc.
61490         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61491         arg to memcpy.
61492
61493         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61494         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61495         Don't use lvalue casts, as GCC plans to remove support for them
61496         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61497         was also present in the non-GCC version, indicating that this
61498         code had always been buggy and had never been widely used.
61499         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61500         Use the fast variant of each macro, rather than copying the
61501         definiens of the fast variant; that way, we'll be more likely to
61502         catch future bugs in the fast variants.
61503
61504 2003-10-20  Bruno Haible  <bruno@clisp.org>
61505
61506         * modules/wait-process: New file.
61507         * MODULES.html.sh (func_all_modules): Add wait-process.
61508
61509 2003-10-20  Bruno Haible  <bruno@clisp.org>
61510
61511         * m4/wait-process.m4: New file.
61512
61513 2003-10-20  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/wait-process.h: New file, from GNU gettext.
61516         * lib/wait-process.c: New file, from GNU gettext.
61517
61518 2003-10-19  Jim Meyering  <jim@meyering.net>
61519
61520         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61521         HPUX 10.20.
61522
61523 2003-10-18  Karl Berry  <karl@gnu.org>
61524
61525         * config/config.guess: update from config.
61526
61527 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61528
61529         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61530         (getgroups): First arg is int, not size_t.
61531         Don't let 'free' mangle errno.
61532
61533 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61534
61535         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61536
61537 2003-10-16  Karl Berry  <karl@gnu.org>
61538
61539         * config/config.{guess,sub}: update from config.
61540
61541 2003-10-16  Jim Meyering  <jim@meyering.net>
61542
61543         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61544         memcpy.
61545
61546 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61547
61548         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61549         (SIZE_MAX): Remove.
61550         (new_exclude, add_exclude_file): Initial size no longer needs to
61551         be a power of 2.
61552         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61553         our own address arithmetic overflow checking.
61554
61555         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61556         (fnmatch): Do not alloca more than 2000 wide characters;
61557         instead, use malloc for large buffers.
61558         Check for address arithmetic overflow, and return -1
61559         with errno set to ENOMEM in that case.
61560         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61561         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61562         instead, return -1.  Check for address arithmetic overflow.
61563
61564 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61565
61566         Handle invalid suffixes and overflow independently, so that
61567         callers can treat them independently as needed.  Fix some bugs in
61568         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61569         suffix for a human-readable blocksize.  The major caller-visible
61570         change is the addition of a new
61571         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61572         that both overflow and suffix chars were found.
61573
61574         * lib/human.c (humblock): Don't check separately for invalid suffix
61575         char; that is xstrtoumax's job (now that its bug is fixed).
61576         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61577         INTMAX_MAX]: New macros.
61578         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61579         TYPE_MAXIMUM): New macros.
61580         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61581         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61582         if overflow occurs, as it's what __strtol does and it's more useful
61583         in practice.
61584         (__xstrtol): If __strtol reports some error other than ERANGE,
61585         reflect it to the caller as LONGINT_INVALID.  If it reports
61586         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61587         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61588         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61589         value.
61590         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61591         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61592         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61593         [defined UINTMAX_MAX]: New macros.
61594
61595 2003-10-14  Bruno Haible  <bruno@clisp.org>
61596
61597         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61598
61599 2003-10-14  Bruno Haible  <bruno@clisp.org>
61600
61601         * m4/sig_atomic_t: New file, from GNU gettext.
61602         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61603
61604 2003-10-14  Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61607         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61608         Also use volatile where needed.
61609
61610 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61611
61612         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61613         Change maintainer from Bruno Haible to 'all'.
61614
61615 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61616
61617         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61618
61619 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61620
61621         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61622         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61623         and define in terms of the other primitives.
61624         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61625         (SIZE_MAX): Define if not already defined.
61626         (array_size_overflow): New function.
61627         (xalloc_die): Abort instead of exiting if 'error' returns.
61628         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61629         (xmalloc, xrealloc): Use them.
61630         (xcalloc): Check for address arithmetic overflow.
61631         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61632         a bit faster than strcpy.
61633
61634 2003-10-10  Simon Josefsson  <jas@extundo.com>
61635
61636         * modules/argp (Depends-on): Add restrict and strcase.
61637
61638 2003-10-10  Simon Josefsson  <jas@extundo.com>
61639
61640         * m4/argp.m4: Add AC_C_INLINE.
61641
61642 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61643
61644         Merge getpass from libc, plus a few fixes.
61645
61646         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61647         Include <stdbool.h>.
61648         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61649         __fsetlocking to empty.
61650         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61651         do include <bits/libc-lock.h>.
61652         Do not include <fcntl.h>; not needed.
61653         [_LIBC]: Include <wchar.h>.
61654         (NOTCANCEL_MODE): New macro.
61655         (flockfile, funlockfile) [_LIBC]: New macros.
61656         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61657         [!_LIBC]: New macros.
61658         (call_fclose): New function.
61659         (getpass): Use it.  Save tty stream separately; this simplifies the
61660         code and makes it more reliable if stdin happens to equal stdout.
61661         Invoke __fsetlocking on tty.
61662         Handle thread cancellation if needed.
61663         Namespace cleanup (use __tcgetattr, __getline).
61664         Use bool for Booleans.
61665         [USE_IN_LIBIO]: Handle wide streams.
61666         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61667         stream might go where.
61668
61669         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61670         doesn't have to include <stdio.h> before us.
61671         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61672         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61673         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61674         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61675         if not declared, so that we can use getpass.c code from libc without
61676         rewriting it.
61677         (flockfile, ftrylockfile, funlockfile): New macros.
61678
61679 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61680
61681         * modules/getpass: Depend on stdbool.
61682
61683 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61684
61685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61686
61687 2003-10-07  Karl Berry  <karl@gnu.org>
61688
61689         * config/config.{guess,sub}: update from config.
61690
61691 2003-10-06  Jim Meyering  <jim@meyering.net>
61692             Bruno Haible  <bruno@clisp.org>
61693
61694         This lets translators provide better translations for the
61695         "Written by ..." part of --version output.
61696         * lib/version-etc.h: Include stdarg.h.
61697         (version_etc_copyright): Declare as readonly.
61698         (version_etc): Make this function variadic with a NULL-terminated list
61699         of author name strings.
61700         (version_etc_va): New declaration.
61701         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61702         (version_etc_copyright): Declare as readonly.
61703         (version_etc_va): New function. Provide a different translatable string
61704         for each possible number of authors < 10. Abbreviate when there are 10
61705         authors or more.
61706         (version_etc): Make this function variadic. Call version_etc_va.
61707         Suggestion from Gary V. Vaughan.
61708
61709         * lib/long-options.h (parse_long_options): Change prototype: the
61710         authors string is moved to the end and becomes variadic.
61711         * lib/long-options.c: Include stdarg.h.
61712         (parse_long_options): Make this function variadic, too.
61713         Call version_etc_va, not version_etc.
61714
61715 2003-10-06  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/version-etc-2: Remove file.
61718         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61719
61720 2003-10-06  Bruno Haible  <bruno@clisp.org>
61721
61722         * modules/fatal-signal: New file.
61723         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61724
61725 2003-10-06  Bruno Haible  <bruno@clisp.org>
61726
61727         * m4/fatal-signal.m4: New file.
61728         * m4/signalblocking.m4: New file, from GNU gettext.
61729
61730 2003-10-06  Bruno Haible  <bruno@clisp.org>
61731
61732         * lib/version-etc-2.h: Remove file.
61733         * lib/version-etc-2.c: Remove file.
61734
61735 2003-10-06  Bruno Haible  <bruno@clisp.org>
61736
61737         * lib/fatal-signal.h: New file, from GNU gettext.
61738         * lib/fatal-signal.c: New file, from GNU gettext.
61739
61740 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61741
61742         * README: Rework advice for preventing empty .o files.
61743         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61744         not <sys/types.h>.
61745
61746 2003-10-04  Karl Berry  <karl@gnu.org>
61747
61748         * lib/argp*: update from libc.
61749
61750 2003-10-04  Karl Berry  <karl@gnu.org>
61751
61752         * config/config.{guess,sub}: update from config.
61753
61754 2003-10-02  Bruno Haible  <bruno@clisp.org>
61755
61756         * modules/lchown (Include): Add lchown.h.
61757         * modules/time_r (Include): Use "..." syntax.
61758         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61759
61760 2003-10-01  Simon Josefsson  <jas@extundo.com>
61761
61762         * MODULES.html.sh (func_all_modules): Move gethostname from section
61763         'based on' to section 'lacking' POSIX:2001.
61764
61765 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61766
61767         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61768         to output mode on the same stream.
61769
61770 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61771
61772         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61773         Fix arg typo in previous patch.
61774
61775 2003-09-28  Jim Meyering  <jim@meyering.net>
61776
61777         * lib/error.c: Correct cpp indentation.
61778
61779 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61780
61781         * modules/free: New file.
61782
61783 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61784
61785         * m4/free.m4: New file.
61786
61787 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/minmax.h (MIN, MAX)
61790         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61791         Omit the special code that used __typeof__, since we worry that
61792         it could be more trouble than it's worth.  See:
61793         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61794         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61795
61796         * lib/free.c: New file.
61797
61798 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61799
61800         Trivial fixes to Makefile.am parts of module listings.
61801         * modules/strstr: Append strstr.h to lib_SOURCES.
61802         * modules/strcase: Likewise, for strcase.h.
61803
61804 2003-09-27  Karl Berry  <karl@gnu.org>
61805
61806         * config/mkinstalldirs: update from automake.
61807
61808 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61809
61810         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61811         (error_tail): Do not loop, reallocating temporary buffer, since
61812         the output cannot contain more wide characters than the input
61813         contains bytes, the size must be big enough already.  This avoids
61814         one potential size overflow calculation.  Check for size overflow
61815         when calculating temporary buffer size.  Free temporary buffer
61816         when done, if it was allocated with malloc; this plugs a memory
61817         leak.  Remove casts from void * to pointers, that are no longer
61818         needed now that we're assuming C89 or better.
61819
61820         Merge error changes from glibc.
61821
61822         * lib/error.c, error.h: Update copyright notice header to match glibc.
61823         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61824         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61825         Disable cancellation while printing error.
61826         * lib/error.h: Prepend __ to parameter names.
61827
61828 2003-09-26  Jim Meyering  <jim@meyering.net>
61829
61830         * lib/error.c (error_tail): Move some declarations
61831         into inner scope where the local variables are used.
61832
61833 2003-09-26  Bruno Haible  <bruno@clisp.org>
61834
61835         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61836         stpncpy().
61837         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61838
61839 2003-09-26  Bruno Haible  <bruno@clisp.org>
61840
61841         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61842         (stpncpy): Define as alias for gnu_stpncpy.
61843         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61844
61845 2003-09-25  Simon Josefsson  <jas@extundo.com>
61846
61847         * lib/xgetdomainname.h: New file.
61848         * lib/xgetdomainname.c: New file.
61849
61850 2003-09-25  Simon Josefsson  <jas@extundo.com>
61851             Bruno Haible  <bruno@clisp.org>
61852
61853         * modules/getdomainname: New file.
61854         * modules/xgetdomainname: New file.
61855         * MODULES.html.sh (func_all_modules): Add getdomainname,
61856         xgetdomainname.
61857
61858 2003-09-25  Simon Josefsson  <jas@extundo.com>
61859             Bruno Haible  <bruno@clisp.org>
61860
61861         * m4/getdomainname.m4: New file.
61862
61863 2003-09-25  Simon Josefsson  <jas@extundo.com>
61864             Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/getdomainname.h: New file.
61867         * lib/getdomainname.c: New file.
61868
61869 2003-09-25  Karl Berry  <karl@gnu.org>
61870
61871         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61872
61873 2003-09-25  Karl Berry  <karl@gnu.org>
61874
61875         * config/install-sh: update from automake.
61876
61877 2003-09-25  Bruno Haible  <bruno@clisp.org>
61878
61879         * modules/version-etc-2: New file, from modules/version-etc with
61880         modifications.
61881         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61882
61883 2003-09-25  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61886         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61887
61888 2003-09-24  Simon Josefsson  <jas@extundo.com>
61889
61890         * modules/xgethostname: Add xgethostname.h.
61891
61892 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61893
61894         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61895         the buffer associated with the argument.  Bug reported by
61896         Simon Josefsson.
61897
61898 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61899
61900         * README: Document assumptions that 'int' is at least 32 bits
61901         wide, that integer arithmetic is 2's complement without overflow,
61902         that there are no holes in integer values, that adding sizes of
61903         two nonoverlapping objects can't overflow, and that all-bits-zero
61904         yields scalar zero.  Fix spelling and capitalization typos.
61905
61906 2003-09-19  Karl Berry  <karl@gnu.org>
61907
61908         * lib/argp.h: update from libc.
61909
61910 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61911
61912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61913         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61914         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61915
61916 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61917
61918         * gnulib-tool: Use "test -h", not "test -L", for portability
61919         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61920         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61921         (sed_extract_prog): Issue s commands one-by-one, rather than
61922         using \| in one s command.
61923
61924 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61925
61926         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61927         input error, instead of returning NULL the next time we are called
61928         (and therefore losing track of errno).
61929
61930 2003-09-16  Bruno Haible  <bruno@clisp.org>
61931
61932         * gnulib-tool (func_create_testdir): Warn about duplicated
61933         dependencies.
61934
61935 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61936
61937         * modules/argmatch, modules/fatal, modules/obstack,
61938         modules/xalloc, modules/xgethostname: Sort dependencies by
61939         importance, not alphabetically.
61940
61941 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61942
61943         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61944         fails, so that the caller gets the proper errno.
61945
61946         * lib/readutmp.c (read_utmp): Likewise.
61947         Check for fstat error.  Close stream and free storage
61948         when failing.
61949
61950 2003-09-14  Karl Berry  <karl@gnu.org>
61951
61952         * config/srclist.txt (strdup.c): disable for c89 changes.
61953
61954 2003-09-14  Jim Meyering  <jim@meyering.net>
61955
61956         * lib/getloadavg.c: Correct cpp indentation.
61957         * lib/strdup.c: Likewise.
61958         * lib/vasnprintf.c: Likewise.
61959
61960 2003-09-14  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/fwriteerror: New file.
61963         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61964
61965 2003-09-14  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/fwriteerror.h: New file.
61968         * lib/fwriteerror.c: New file.
61969
61970 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61971
61972         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61973         modules/xgethostname, modules/xalloc: Depend on exit.
61974
61975 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61976
61977         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61978
61979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61980         and AC_MINIX, too, so that their extensions are available.
61981
61982         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61983         This macro has been superseded by gl_BACKUPFILE.
61984
61985         More patches to assume C89 or better.
61986
61987         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61988
61989         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61990         unconditionally.
61991         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61992         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61993         Include <string.h>, <stdlib.h> unconditionally.
61994         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61995         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61996         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61997         headers or for string.h.
61998         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61999         or strtoul.
62000
62001         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62002         headers.
62003         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62004         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62005         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62006         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62008         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62009         memcpy, memset.
62010         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62011         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62012         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62013         strtol.
62014         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62015         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62016         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62017         strtoul.
62018
62019 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62020
62021         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62022         * lib/obstack.c [!defined _LIBC]: Likewise.
62023         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62024         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62025         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62026
62027         More changes to assume C89 or better.
62028
62029         * lib/error.c (error_tail): Assume vprintf.
62030
62031         * lib/argmatch.c (getenv): Remove decl.
62032         * lib/progreloc.c (get_full_program_name): Define via prototype.
62033         * lib/setenv.c (clearenv): Likewise.
62034         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62035         needed.
62036         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62037         (malloc, memcpy): Remove decls.
62038         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62039         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62040         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62041         (memcpy): Remove macro.
62042         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62043         (__P): Remove.  All uses removed.
62044         (PTR): Remove.  All uses changed to void *.
62045         (CHAR_BIT, NULL): Remove.
62046         (spaces, zeros, memset_space, memset_zero)
62047         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62048         Remove.
62049         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62050         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62051         Define with prototype.
62052         Remove now-unnecessary prototype decl.
62053         (extra_args_spec): Assume ANSI C.  All uses changed.
62054         (extra_args_spec_iso): Remove.
62055         (my_strftime, emacs_strftimeu): Define via prototype.
62056         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62057         unconditionally.
62058         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62059         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62060         (strtoul, strtol): Remove decls.
62061         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62062         LONG_MAX): Remove.
62063         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62064         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62065         (LOCALE_PARAM_PROTO): New macro.
62066         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62067         (INTERNAL (strtol), strtol): Define with a prototype.
62068         (PARAMS): Remove.  All uses removed.
62069         * lib/tempname.c: Include <string.h> unconditionally.
62070         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62071         * lib/xgethostname.c (main): Define with a prototype.
62072         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62073         Include <stdlib.h> unconditionally.
62074         (calloc, malloc, realloc, free): Remove decls.
62075         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62076         Include <stdlib.h> unconditionally.  Sort include file names.
62077         (strtod): Remove.
62078         (xstrtod): Define with a prototype.
62079         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62080         (strtol, strtoul): Remove decls.
62081
62082 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62083
62084         More patches to assume C89 or better.
62085         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62086         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62087         string.h, memchr, STDC_HEADERS.
62088
62089 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62090
62091         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62092         Include <stdlib.h>, <string.h> unconditionally.
62093         Remove now-unnecessary cast to char *.
62094         * lib/strnlen.c: Include <string.h> unconditionally.
62095         * lib/yesno.c (yesno): Define with a prototype.
62096
62097 2003-09-11  Bruno Haible  <bruno@clisp.org>
62098
62099         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62100
62101 2003-09-10  Jim Meyering  <jim@meyering.net>
62102
62103         * lib/error.c: Correct indentation of cpp directives.
62104
62105 2003-09-10  Bruno Haible  <bruno@clisp.org>
62106
62107         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62108         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62109         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62110         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62111         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62112         <stdlib.h> and <string.h> checks.
62113         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62114         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62115
62116 2003-09-10  Bruno Haible  <bruno@clisp.org>
62117
62118         * lib/strcspn.c: Include <string.h> unconditionally.
62119         * lib/strpbrk.c: Include <string.h> unconditionally.
62120         * lib/strstr.c: Include <string.h> unconditionally.
62121         * lib/unicodeio.c: Include <string.h> unconditionally.
62122         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62123         * lib/unsetenv.c: Likewise.
62124         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62125         * lib/yesno.c: Include <stdlib.h> unconditionally.
62126         (rpmatch): Add prototype.
62127
62128 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62129
62130         More patches to assume C89 or better.
62131         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62132         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62133         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62134         or for string.h.
62135         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62136         stdlib.h.
62137         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62138         C headers.
62139         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62140         string.h.
62141         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62142         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62143         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62144         or for string.h.
62145         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62146         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62147         C headers.
62148         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62149         memcpy.
62150         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62151         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62152         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62153         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62154         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62155         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62156         string.h, free.
62157         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62158         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62159         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62160         C headers, or for string.h.
62161         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62162         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62163         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62164         headers, memory.h, stdlib.h, string.h, strings.h.
62165         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62166         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62167         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62168         strchr.
62169         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62170         headers, memory.h, string.h.
62171         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62172         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62173         free.
62174         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62175         headers.
62176         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62177         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62178         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62179         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62180         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62181
62182 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62183
62184         More K&R removal.
62185
62186         * lib/acosl.c (main): Use a prototype.
62187         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62188         tanl.c: Likewise.
62189
62190         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62191
62192         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62193         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62194         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62195         with a prototype.
62196         * lib/getopt.c (const): Remove macro.
62197         Include <string.h> unconditionally.
62198         (my_index): Remove; all uses changed to strchr.
62199         (strlen): Remove decl.
62200         (exchange): Remove forward decl; no longer needed.
62201         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62202         Define with prototype.
62203         * lib/getopt1.c (const): Remove macro.
62204         (getopt_long, getopt_long_only, main): Define with prototype.
62205
62206         * lib/getugroups.c: Include <string.h> unconditionally.
62207
62208         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62209         (getusershell, setusershell, endusershell, readname, main):
62210         Define with prototypes.
62211
62212         * lib/group-member.c: Include group-member.h first.
62213         Include <stdlib.h> unconditionally.
62214
62215         * lib/hard-locale.c: Include hard-locale.h first.
62216         Include <stdlib.h>, <string.h> unconditionally.
62217
62218         * lib/hash.c (free, malloc): Remove decls.
62219         Include <stdlib.h> unconditionally.
62220
62221         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62222         (getenv): Do not declare.
62223
62224         * lib/idcache.c: Include <string.h> unconditionally.
62225
62226         * lib/long-options.c: Include long-options.h first, to test interface.
62227         Include <stdlib.h> unconditionally.
62228
62229         * lib/makepath.c: Include makepath.h first, to test interface.
62230         Include <stdlib.h> and <string.h> unconditionally.
62231
62232         * lib/linebuffer.c: Include <stdlib.h>.
62233         (free): Remove decl.
62234
62235         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62236         stddef.h. rpl_malloc returns void *, not char *.
62237         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62238         prototype.
62239
62240         * lib/md5.h: Include <limits.h> unconditionally.
62241         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62242         (__P): Remove; all uses removed.
62243         * lib/md5.c: Include "md5.h" first.
62244         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62245         md5_buffer, md5_process_bytes, md5_process_block):
62246         Define with prototypes.
62247         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62248         * lib/sha.c: Include "sha.h" first.
62249         Include <stdlib.h>, <string.h> unconditionally.
62250
62251         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62252         * lib/memcmp.c (__ptr_t): Likewise.
62253         * lib/memrchr.c (__ptr_t): Likewise.
62254         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62255         Include <string.h> unconditionally.
62256         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62257         * lib/memchr.c: Include <stdlib.h> unconditionally.
62258         * lib/memchr.c (LONG_MAX): Remove.
62259         * lib/memrchr.c (LONG_MAX): Likewise.
62260         * lib/memchr.c (__memchr): Define via a prototype.
62261         * lib/memrchr.c (__memrchr): Likewise.
62262         * lib/memcmp.c (__P): Remove, and remove all uses.
62263         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62264         Remove forward decls; no longer needed.
62265         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62266         Use types required by C89 in prototype.
62267
62268         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62269         * lib/savedir.c: Likewise.
62270         * lib/mkdir.c (free): Remove decl.
62271         * lib/rmdir.c (rmdir): Define with a prototype.
62272         * lib/savedir.c: Include savedir.h first, to test interface.
62273
62274         * lib/mktime.c (STDC_HEADERS): Remove.
62275         Include <stdlib.h>, <string.h> unconditionally.
62276
62277         * lib/modechange.c: Include <stdlib.h> unconditionally.
62278         (malloc): Remove decl.
62279
62280         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62281         (free): Remove decl.
62282
62283         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62284         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62285         (This type really should be intptr_t, but that's a C99ism.)
62286         (_obstack_memcpy): Remove: all uses changed to memcpy.
62287         Include <string.h> unconditionally.
62288         (struct obstack): Assume __STDC__ for types of members
62289         chunkfun, freefun, extra_arg.
62290         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62291         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62292         obstack_begin, obstack_specify_allocation,
62293         obstack_specify_allocation_with_arg, obstack_chunkfun,
62294         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62295         Remove unprototyped decls and the macros that use them.
62296         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62297         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62298         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62299         (defined __STDC__ && __STDC__)]:
62300         Remove nonprototyped code.
62301         Include <stdlib.h> unconditionally.
62302         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62303         _obstack_allocated_p, _obstack_free, obstack_free,
62304         _obstack_memory_used, print_and_abort):
62305         Define using prototypes.
62306         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62307         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62308         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62309         obstack_next_free, obstack_object_size, obstack_room) [0]:
62310         Remove unused, unprototyped code.
62311
62312         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62313
62314         * lib/physmem.c (physmem_total, physmem_available, main): Define
62315         with prototypes.
62316
62317         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62318         (main): Define with a prototype.
62319
62320         * lib/posixver.c (getenv): Remove decl.
62321
62322         * lib/putenv.c (malloc): Returns void *, not char *.
62323         Include <string.h> unconditionally.
62324         (strchr, memcpy, NULL): Do not define.
62325
62326         * lib/readtokens.c: Include readtokens.h first, to test interface.
62327         Include <stdlib.h>, <string.h> unconditionally.
62328         (init_tokenbuffer): Define with a prototype.
62329
62330         * lib/regex.c (PARAMS): Remove.  All uses removed.
62331         All uses of _RE_ARGS removed, too.
62332         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62333         unconditionally.
62334         (bzero): Assume memset exists.
62335         (memcmp, memcpy, NULL): Remove.
62336         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62337         char, or assignments to local vars of type signed char.
62338         (init_syntax_once, PREFIX(extract_number_and_incr),
62339         PREFIX(print_partial_compiled_pattern),
62340         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62341         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62342         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62343         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62344         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62345         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62346         wcs_compile_range, byte_compile_range, truncate_wchar,
62347         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62348         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62349         count_mbs_length, wcs_re_match_2_internal,
62350         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62351         PREFIX(alt_match_null_string_p),
62352         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62353         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62354         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62355         now-unnecessary declaration, if any.
62356         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62357         regcomp, regexec):
62358         Remove now-unnecessary casts among pointer types.
62359         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62360
62361         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62362         (free): Remove decl.
62363
62364         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62365
62366         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62367         (free): Remove decl.
62368
62369         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62370         * lib/xgetcwd.c: Likewise.
62371
62372         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62373         (free): Remove decl.
62374
62375         * lib/strchrnul.c (strchrnul): Define with a prototype.
62376         Fix bug: c_in was not converted to char before searching.
62377
62378         The following changes are not K&R related:
62379
62380         * lib/group-member.h: Include <sys/types.h>, so that this file is
62381         self-contained.
62382         * lib/makepath.h: Likewise.
62383
62384         * lib/getusershell.c (readname, default_index, line_size, readname):
62385         Use size_t, not int, for sizes.
62386         (readname): If the size overflows, report an error instead of
62387         looping forever.
62388
62389 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62390
62391         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62392         libc.
62393
62394 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62395
62396         * README: New section: portability guidelines.
62397
62398 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62399
62400         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62401         C89 spec.
62402
62403 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62404
62405         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62406
62407 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62408
62409         Assume C89 or better; remove K&R cruft.
62410         A few of these changes were first proposed by Derek Robert Price
62411         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62412
62413         * lib/addext.c: Include <string.h> unconditionally.
62414         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62415         Don't declare getenv or malloc.
62416
62417         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62418         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62419         (NULL): Remove.
62420         (find_stack_direction, alloca): Use prototypes.
62421
62422         * lib/atexit.c (atexit): Define using a prototype.
62423
62424         * lib/basename.c, dirname.c, stripslash.c:
62425         Include <string.h> unconditionally.
62426
62427         * lib/bcopy.c: Include <stddef.h>.
62428         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62429
62430         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62431
62432         * lib/error.h (error, error_at_line, error_print_progname)
62433         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62434         * lib/error.c: Include error.h first, to check interface.
62435         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62436         (VA_START): Remove; all uses changeed to va_start.
62437         (exit, strerror): Remove decls.
62438         (error_print_progname): Prototype uncondionally.
62439         Don't include <errno.h>; no longer needed.
62440         (private_strerror): Remove.
62441         (error_tail): Always define.
62442         (error, error_at_line): Assume C89 or better; always use prototypes.
62443         * lib/fatal.c: Include "fatal.h" first, to test interface.
62444         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62445         (VA_START): Remove; all uses changed to va_start.
62446         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62447         this case.
62448         (exit): Remove decl.
62449         (fatal): Prototype unconditionally.  Assume va_start works.
62450         Abort at end, to pacify gcc.
62451
62452         * lib/euidaccess.c (main): Define with a prototype.
62453
62454         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62455
62456         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62457
62458         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62459         prototypes.
62460         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62461         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62462         (getenv): Remove decl.
62463         (fnmatch): Define using a prototype.
62464         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62465         (FCT): Define using a prototype.
62466
62467         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62468
62469         * lib/gethostname.c: Include <stddef.h>.
62470         (gethostname): Define with prototype.  Length is size_t, not int.
62471
62472 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62473
62474         Assume C89 or better; remove K&R cruft.
62475         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62476         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62477         string.h, getenv, malloc.
62478         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62479         headers.
62480         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62481         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62482         do not check for strerror.
62483         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62484         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62485         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62486         do not check for doprnt or vprintf.
62487         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62488         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62489
62490 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62491
62492         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62493         getversion.c should have been removed then, but was accidentally
62494         preserved.
62495
62496         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62497         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62498
62499 2003-09-08  Karl Berry  <karl@gnu.org>
62500
62501         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62502                 config, forget about prep.
62503
62504         * config/depcomp, missing: update from automake.
62505
62506 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62507
62508         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62509         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62510
62511 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62512
62513         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62514         copy_tm_result.  Bug reported by Simon Josefsson in
62515         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62516
62517 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62518
62519         * m4/time_r.m4: New file.
62520         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62521         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62522         is. Check for timegm declaration.
62523         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62524         Do not check for gmtime_r.
62525         Replace mktime if __mktime_internal does not exist and if mktime
62526         hasn't been replaced already.
62527
62528 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62529
62530         * lib/time_r.c, lib/time_r.h: New files.
62531
62532         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62533         __localtime_r.
62534         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62535         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62536
62537         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62538         __gmtime_r.
62539         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62540         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62541         Include <time_r.h>.
62542
62543         * lib/timegm.c: Switch to glibc implementation, with the following
62544         changes:
62545         [defined HAVE_CONFIG_H]: Include <config.h>.
62546         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62547         (__mktime_internal) [!defined _LIBC]: New decl.
62548         (__gmtime_r) [!defined _LIBC]: New macro and function.
62549         (timegm): Use a prototype, since gnulib assumes C89.
62550         Do not bother declaring tmp to be const, as it's not really usefu.
62551         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62552         (timegm): Declare only if HAVE_DECL_TIMEGM.
62553
62554 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62555
62556         * MODULES.html.sh (func_all_modules): Add time_r.
62557         * modules/time_r: New file.
62558         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62559         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62560
62561 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62562
62563         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62564         Bug reported by Lute Kamstra in
62565         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62566
62567         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62568         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62569         course with correspondingly smaller numbers for tomorrow and
62570         yesterday.  From Tadayoshi Funaba.  Originally installed into
62571         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62572         coreutils merge?).
62573
62574 2003-08-31  Simon Josefsson  <jas@extundo.com>
62575
62576         * modules/timegm: New file.
62577         * MODULES.html.sh (func_all_modules): Add timegm.
62578
62579 2003-08-31  Simon Josefsson  <jas@extundo.com>
62580
62581         * m4/timegm.m4: New file.
62582
62583 2003-08-31  Simon Josefsson  <jas@extundo.com>
62584
62585         * lib/timegm.h: New file.
62586         * lib/timegm.c: New file.  Based on
62587         wget-1.8.2/src/http.c:mktime_from_utc.
62588
62589 2003-08-31  Karl Berry  <karl@gnu.org>
62590
62591         * lib/argp.h: update from libc.
62592
62593 2003-08-28  Bruno Haible  <bruno@clisp.org>
62594
62595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62596         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62597         followed by '#define fnmatch fnmatch_posix' gives an error.
62598
62599 2003-08-28  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62602         warning on QNX, which defines O_BINARY to 000000.
62603
62604 2003-08-27  Jim Meyering  <jim@meyering.net>
62605
62606         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62607         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62608         would fail after 32.  Reported by Danny Levinson.  Details here:
62609         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62610
62611 2003-08-24  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62614         MSVC7 <stdio.h> is included later.
62615
62616 2003-08-22  Simon Josefsson  <jas@extundo.com>
62617
62618         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62619
62620 2003-08-20  Karl Berry  <karl@gnu.org>
62621
62622         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62623
62624 2003-08-20  Bruno Haible  <bruno@clisp.org>
62625
62626         * modules/progname: New file.
62627         * MODULES.html.sh (func_all_modules): Add progname.
62628
62629 2003-08-20  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/progname.h: New file, from GNU gettext.
62632         * lib/progname.c: New file, from GNU gettext.
62633         * lib/progreloc.c: New file, from GNU gettext.
62634
62635 2003-08-19  Jim Meyering  <jim@meyering.net>
62636
62637         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62638         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62639
62640 2003-08-19  Bruno Haible  <bruno@clisp.org>
62641
62642         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62643         more.
62644
62645 2003-08-19  Bruno Haible  <bruno@clisp.org>
62646
62647         * lib/xstrdup.c: Assume <string.h> exists.
62648
62649 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62650
62651         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62652         in makefile rules.
62653
62654 2003-08-18  Jim Meyering  <jim@meyering.net>
62655
62656         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62657         * m4/lib-ld.m4: Likewise.
62658
62659 2003-08-18  Jim Meyering  <jim@meyering.net>
62660
62661         * lib/setenv.h: Indent nested cpp directive.
62662         * lib/vasnprintf.c: Remove trailing blanks.
62663
62664 2003-08-17  Simon Josefsson  <jas@extundo.com>
62665
62666         * modules/xstrndup: New file.
62667         * MODULES.html.sh (func_all_modules): Add xstrndup.
62668
62669 2003-08-17  Simon Josefsson  <jas@extundo.com>
62670
62671         * modules/argp: Fix autoconf macro name. Add more dependencies.
62672
62673 2003-08-17  Simon Josefsson  <jas@extundo.com>
62674
62675         * m4/xstrndup.m4: New file.
62676
62677 2003-08-17  Simon Josefsson  <jas@extundo.com>
62678
62679         * m4/argp.m4: New file.
62680
62681 2003-08-17  Simon Josefsson  <jas@extundo.com>
62682             Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/xstrndup.h: New file.
62685         * lib/xstrndup.c: New file.
62686
62687 2003-08-17  Bruno Haible  <bruno@clisp.org>
62688
62689         * modules/strndup (Files, Include): Add lib/strndup.h.
62690
62691 2003-08-17  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/euidaccess (Files): Add lib/euidaccess.h.
62694
62695 2003-08-17  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/strndup.h: New file.
62698
62699 2003-08-17  Bruno Haible  <bruno@clisp.org>
62700
62701         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62702         like AC_GNU_SOURCE.
62703         * modules/extensions (configure.ac): Comment out the invocation of
62704         gl_USE_SYSTEM_EXTENSIONS.
62705
62706 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62707
62708         Merges from coreutils, etc.
62709         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62710         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62711         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62712         fixing a typo.
62713         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62714         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62715
62716 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62717
62718         Document merge from coreutils.
62719         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62720         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62721         * modules/utime: Add m4/utimes-null.m4.
62722
62723 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62724
62725         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62726         space, undoing this 2003-08-12 change:
62727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62728
62729 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62730
62731         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62732         strtoul.c from libc, undoing this 2003-08-12 change:
62733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62734
62735 2003-08-16  Jim Meyering  <jim@meyering.net>
62736
62737         Merges from coreutils.
62738         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62739         prefix.  Adjust cache variables similarly.  Create 500 rather than
62740         just 300 files, to exercise bug on Darwin6.5, too.
62741         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62742         $missing_dir.
62743         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62744         AM_SYS_POSIX_TERMIOS.
62745         Reported by mkc@mathdogs.com.
62746         Also change use of $am_cv_sys_posix_termios
62747         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62748         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62749         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62750         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62751         in /proc/mounts until it finds one with matching device number.  This
62752         is unnecessary when the FILE argument *is* a mount point.  No stat call
62753         is necessary in that case.  So, disable the statvfs-testing code on
62754         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62755         as RedHat bug# 84846.
62756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62757         to 1MB, so as not to render systems with no stack size limit (e.g.,
62758         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62759         Include <unistd.h>.  On some systems,
62760         it is required for the definition of _SC_PAGESIZE.
62761
62762 2003-08-16  Jim Meyering  <jim@meyering.net>
62763
62764         Merge from coreutils.
62765         * lib/xstrtoimax.c: #else #if -> #elif.
62766         * lib/xstrtoumax.c: Likewise.
62767
62768 2003-08-16  Jim Meyering  <jim@meyering.net>
62769
62770         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62771         * m4/utimes.m4: Removed.
62772         * m4/utimes-null.m4: Renamed from utimes.m4.
62773
62774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62775         to 1MB, so as not to render systems with no stack size limit (e.g.,
62776         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62777         Include <unistd.h>.  On some systems,
62778         it is required for the definition of _SC_PAGESIZE.
62779
62780 2003-08-16  Jim Meyering  <jim@meyering.net>
62781         and Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         Merges from coreutils, etc.
62784
62785         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62786         using the latest version from cvs.  This avoids problems with #line
62787         directives using a vendor (Sun) compiler.
62788         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62789         Don't set GETGROUPS_LIB here; now it's
62790         done via getgroups.m4's wrapper function.
62791         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62792         rather than just in sh-util/configure.in, so that the
62793         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62794         same.
62795         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62796         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62797         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62798         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62799         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62800         Remove code that is now done by the newly-required macros.
62801         Append $(EXEEXT) to DF_PROG.
62802         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62803         Do not invoke or require the following here,
62804         since prereq.m4 or some gnulib .m4 now does this for us:
62805         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62806         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62807         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62808         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62809         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62810         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62811         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62812         AC_FUNC_OBSTACK.
62813         Do not replace the following functions, as this is now the job
62814         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62815         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62816         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62817         atexit getpass, strdup, getpagesize.
62818         Replace 'raise'.
62819         Do not check for the following functions, as this is now the job
62820         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62821         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62822         setregid.
62823         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62824         Check for sys/sysctl.h.
62825         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62826         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62827         of checking for ssize_t ourselves.
62828
62829         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62830         Require every macro that gnulib/modules/* suggests for us.
62831         (jm_PREREQ_ADDEXT): New macro.
62832         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62833         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62834
62835         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62836         (gl_PHYSMEM): Use it.
62837         Also check for `table' function.
62838         Check for new headers and functions.
62839         Add check for sys/sysmp.h.
62840         With suggestions from Kaveh Ghazi.
62841         Ignore headers that are present but cannot be compiled.  This
62842         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62843         C 5.4.
62844
62845 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62846
62847         Document merge from coreutils.
62848         * modules/userspec: Depend on posixver.
62849         * modules/strftime: Depend on tzset.
62850
62851 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62852
62853         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62854         rather than tab, after '#' in shell-script copyright notices.
62855         Suggested by Bruno Haible.
62856
62857 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62858
62859         * config/srclist-update: Use three spaces, rather than tab, after '#'
62860         in shell-script copyright notices.  Suggested by Bruno Haible.
62861         Remove unnecessary parenthesization in regular expression.
62862
62863 2003-08-15  Jim Meyering  <jim@meyering.net>
62864
62865         Merge from coreutils.
62866         * lib/xgethostname.c: Include <stdlib.h>.
62867         (xghostname): Don't exit for anything other than memory-related
62868         failure; just return NULL.
62869         * lib/userspec.c: Include "posixver.h".
62870         (parse_user_spec): Accept `.' as a separator only
62871         in pre-POSIX-200112 mode.
62872         * lib/strtoimax.c: Use #elif rather than #else #if.
62873         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62874         Remove function, now that we can rely on a working tzset function.
62875         [!_LIBC]: Ensure that the required autoconf test has been run.
62876         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62877         Use underlying_strftime for %r.
62878         * lib/sha.c: Merge in some clean-up and optimization changes from
62879         glibc.
62880         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62881         Ensure that it is a multiple of 64.
62882         Rearrange loop exit tests so as to avoid performing an
62883         additional fread after encountering an error or EOF.
62884         * lib/realloc.c: Update copyright date.
62885
62886 2003-08-15  Jim Meyering  <jim@meyering.net>
62887         and Paul Eggert  <eggert@twinsun.com>
62888
62889         Merge from coreutils.
62890         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62891         member but strut utmpx does not.  Needed for AIX 4.3.3.
62892         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62893
62894 2003-08-15  Jim Meyering  <jim@meyering.net>
62895         and Paul Eggert  <eggert@cs.ucla.edu>
62896
62897         Merges from coreutils, etc.
62898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62899         Require gl_FUNC_TZSET_CLOBBER.
62900         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62901         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62902         members.
62903
62904 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62905
62906         Help the merge from coreutils.
62907         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62908         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62909         * m4/tzset.m4: Use it too.
62910
62911 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62912
62913         * modules/tzset: New file.
62914
62915 2003-08-14  Jim Meyering  <jim@meyering.net>
62916
62917         Merges from coreutils.
62918         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62919         variable names, rather than @FNMATCH_H@.
62920         * modules/alloca: Likewise for $(ALLOCA_H).
62921
62922         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62923         the three copies of the literal target, `fnmatch.h'.
62924         * modules/alloca (alloca.h): Likewise.
62925
62926 2003-08-14  Jim Meyering  <jim@meyering.net>
62927
62928         Merge from coreutils.
62929         * m4/tzset.m4: New file.
62930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62931         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62932         otherwise, AIX 5.1 systems would end up using the latter.
62933         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62934         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62935         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62936         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62937
62938 2003-08-14  Jim Meyering  <jim@meyering.net>
62939
62940         Merge from coreutils.
62941         * lib/obstack.h: Whitespace changes.
62942         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62943         and xcalloc return values.
62944         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62945         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62946         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62947         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62948         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62949         error from mntctl.
62950         Use mntctl's return value to drive the entry-processing loop, since
62951         we can't rely on the value of the vmt_length member in the last
62952         entry.  On some systems doing so could result in exhausting
62953         virtual memory.  Based in part on a patch from Mike Jetzer.
62954
62955 2003-08-14  Jim Meyering  <jim@meyering.net>
62956         and Paul Eggert  <eggert@twinsun.com>
62957
62958         Merges from coreutils, plus other fixes.
62959         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62960         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62961         for credits and details.  Thanks to Kaveh Ghazi for helping
62962         to keep these files in sync.
62963         (ARRAY_SIZE): Define it.
62964         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62965         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62966         (memcasecmp): Don't assume size_t fits in unsigned int.
62967         Remove casts and duplicate code.
62968         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62969         (memcpy): Remove definition.
62970         Merge in some clean-up and optimization changes from glibc.
62971         [BLOCKSIZE]: Move definition to top of file.
62972         Ensure that it is a multiple of 64.
62973         Rearrange loop exit tests so as to avoid performing an
62974         additional fread after encountering an error or EOF.
62975         * lib/md5.h (md5_uintptr): Define.
62976         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62977         return to the initial working directory.  Preserve errno
62978         for caller.
62979         * lib/idcache.c: Include "xalloc.h".
62980         (xmalloc, xrealloc): Remove decls.
62981         (getuser): Remove casts no longer required in C89.
62982         * lib/human.c: Include stdio.h, for sprintf.
62983         * lib/group-member.c: Include "xalloc.h".
62984         (xmalloc, xrealloc): Remove decls.
62985         (get_group_info): Remove casts no longer required in C89.
62986         * lib/getusershell.c (readname): Remove casts no longer required in
62987         C89.
62988         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62989         * lib/getline.c: Whitespace fix, from coreutils.
62990
62991 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62992
62993         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62994         Check for isascii.
62995
62996         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62997         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62998         Undo previous (whitespace-only) change.
62999
63000 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63001
63002         * lib/exclude.c: Include <ctype.h>
63003         (IN_CTYPE_DOMAIN): New macro.
63004         (is_space): New fn.
63005         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63006         and empty lines.
63007
63008         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63009         Undo previous (whitespace-only) change.
63010
63011 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63012
63013         * config/srclist-update: Change update back to the old behavior,
63014         leaving whitespace alone.  Use one 'sed' command rather than a
63015         pipeline.
63016         (fixlicense): Now a variable, not a function.
63017         (remove_trailing_blanks): Remove.
63018         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63019         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63020         Undo previous (whitespace-only) change.
63021
63022 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63023
63024         Merge from coreutils.
63025         * modules/euidaccess: Add lib_SOURCES, include for new
63026         file euidaccess.h
63027
63028 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63029
63030         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63031         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63032         Normalize leading white space and remove trailing white space.
63033
63034         Merge from coreutils
63035         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63036
63037         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63038         0.12.1.  These files are now being upgraded automatically by
63039         ../config/srclist-update.
63040
63041 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63042
63043         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63044         Normalize leading white space and remove trailing white space.
63045         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63046         notice, as per ../config/srclist-update.
63047
63048         Merge from coreutils.
63049         * lib/euidaccess.h: New file.
63050         * lib/euidaccess.c: Include it.
63051         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63052         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63053         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63054
63055 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63056
63057         * config/srclist-update: Add copyright notice.
63058         (remove_id_lines, remove_trailing_blanks): New constants.
63059         (fixfile): Use them to normalize spacing a bit in copied files.
63060         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63061         Normalize leading white space and remove trailing white space.
63062
63063         * config/texinfo.tex: Sync with texinfo.
63064
63065         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63066         strtoul.c from libc, to merge coreutils whitespace changes.
63067
63068         * config/srclist.txt: Get the following m4 files from gettext:
63069         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63070         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63071         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63072         wint_t.m4.
63073
63074 2003-08-12  Karl Berry  <karl@gnu.org>
63075
63076         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63077         been made.
63078
63079 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63080
63081         * modules/gnu-source, m4/gnu-source.m4:
63082         Remove; we're assuming Autoconf 2.54 or later now.
63083         Suggested by Bruno Haible.
63084         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63085
63086 2003-08-11  Bruno Haible  <bruno@clisp.org>
63087
63088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63089
63090 2003-08-11  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63093         (vasnprintf): Use it instead of wcslen.
63094
63095 2003-08-11  Bruno Haible  <bruno@clisp.org>
63096
63097         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63098         value to ensure that _Bool promotes to int. Use #define for _Bool when
63099         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63100
63101 2003-08-10  Karl Berry  <karl@gnu.org>
63102
63103         * lib/regex.h: update from libc (whitespace fix).
63104
63105 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63106
63107         Merge some files from coreutils.  These changes were
63108         originally made by Jim Meyering.
63109         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63110         many older Unixes require this.
63111         * lib/alloca.c (alloca): Remove cast to argument of free;
63112         no longer needed in C89.
63113         * lib/alloca_.h, regex.h: Fix white space to match
63114         what GNU indent does.
63115
63116 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63117
63118         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63119         apparently Emacs's Unicode mode got confused before my 2003-08-05
63120         checkin.
63121
63122 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63123
63124         * m4/extensions.m4: New file.
63125         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63126         Require gl_USE_SYSTEM_EXTENSIONS.
63127         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63128         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63129
63130 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63131
63132         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63133         * modules/extensions, modules/gnu-source: New files.
63134         * modules/timespec, modules/unlocked-io: Depend on extensions.
63135
63136 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63137
63138         * modules/restrict: New file.
63139         * MODULES.html.sh (func_all_modules): Add restrict.
63140         * modules/regex: Depend on restrict.
63141
63142 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63143
63144         * m4/restrict.m4: New file.
63145         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63146
63147 2003-08-07  Bruno Haible  <bruno@clisp.org>
63148
63149         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63150         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63151
63152 2003-08-07  Bruno Haible  <bruno@clisp.org>
63153
63154         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63155         makes the module 'getndelim2' compatible with the module 'getline'.
63156
63157 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63158
63159         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63160         byte with "\201" to avoid glitches when editing that source file
63161         with multi-gnome-terminal.
63162
63163 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63164
63165         * lib/bumpalloc.h: Remove.
63166
63167 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63168
63169         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63170         * modules/bumpalloc: Remove.
63171
63172 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63173
63174         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63175         GNU coding style.
63176
63177         Merge from coreutils.
63178         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63179         1. From glibc.
63180         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63181         from Karl Berry, implemented by Jim Meyering.
63182         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63183         from Dmitry V. Levin.
63184         Remove anachronistic cast of xrealloc.
63185         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63186         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63187         type. Otherwise, it wouldn't compile with at least /bin/cc on
63188         ymp-cray-unicos9.0.2.X.
63189         Combine two mostly-identical uses of alloca into one.
63190         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63191
63192 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63193
63194         [From Emacs.]
63195
63196         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63197         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63198         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63199         obsolete NLIST_NAME_UNION.
63200         [__GNU__]: Undef BSD and FSCALE.
63201         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63202
63203 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63204
63205         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63206         an enum type, so that it's guaranteed to promote to int.  See:
63207         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63208
63209 2003-08-03  Karl Berry  <karl@gnu.org>
63210
63211         * config/depcomp: update from automake.
63212
63213 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63214
63215         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63216         (strerror): Don't assume that a printable int fits in 14 bytes.
63217
63218 2003-07-31  Bruno Haible  <bruno@clisp.org>
63219
63220         * modules/getpass-gnu: New file.
63221         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63222
63223 2003-07-31  Bruno Haible  <bruno@clisp.org>
63224
63225         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63226
63227 2003-07-24  Karl Berry  <karl@gnu.org>
63228
63229         * config/missing: update from automake.
63230
63231 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63232             Bruno Haible  <bruno@clisp.org>
63233
63234         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63235         * lib/getline.c (getline, getdelim): Likewise.
63236         Remove _GNU_SOURCE define; now it's defined in config.h through
63237         m4/getline.m4.
63238
63239 2003-07-23  Karl Berry  <karl@gnu.org>
63240
63241         * config/config.sub: update from prep.
63242
63243 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63244
63245         * modules/xalloc (Depends-on): Add exitfail.
63246         * modules/xmemcoll: Likewise.
63247
63248 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63249
63250         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63251         over-parenthesization in macros.
63252
63253         Sync with coreutils.
63254
63255         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63256         required by C99.
63257
63258         Use `exit_failure' for xalloc and xmemcoll instead of their own
63259         private exit-failure variables.
63260         * lib/xalloc.h (xalloc_exit_failure): Remove.
63261         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63262         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63263         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63264         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63265         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63266
63267 2003-07-20  Jim Meyering  <jim@meyering.net>
63268
63269         * modules/closeout (Depends-on): Add exitfail.
63270         Suggestion from Bruno Haible.
63271
63272 2003-07-19  Karl Berry  <karl@gnu.org>
63273
63274         * config/config.sub: update from prep.
63275
63276 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63277
63278         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63279         Remove.
63280         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63281         to test that it can stand by itself.  Include "exitfail.h".
63282         Clients should set exit_failure instead.
63283         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63284
63285 2003-07-18  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/getndelim2: New file.
63288         * modules/getline: Share files with module getndelim2.
63289         * modules/getnline: Depend on getndelim2 instead of sharing files with
63290         it. Add getnline.c to lib_SOURCES.
63291         * MODULES.html.sh (func_all_modules): Add getndelim2.
63292
63293 2003-07-18  Bruno Haible  <bruno@clisp.org>
63294
63295         * m4/getndelim2.m4: New file.
63296         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63297         invoke gl_PREREQ_GETNDELIM2.
63298         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63299         gl_PREREQ_GETNDELIM2.
63300         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63301         gl_GETNDELIM2.
63302
63303 2003-07-18  Bruno Haible  <bruno@clisp.org>
63304
63305         * lib/getndelim2.h: New file.
63306         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63307         getndelim2.h.
63308         (getndelim2): Make non-static. Change return type to ssize_t.
63309         * lib/getline.h: Change argument names.
63310         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63311         * lib/getnline.c: Include getndelim2.h.
63312
63313 2003-07-18  Andreas Schwab  <schwab@suse.de>
63314
63315         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63316
63317 2003-07-17  Karl Berry  <karl@gnu.org>
63318
63319         * config/config.sub: update from prep.
63320
63321 2003-07-17  Bruno Haible  <bruno@clisp.org>
63322
63323         * modules/getnline: New file.
63324         * modules/getline: Add lib/getndelim2.c to source file list.
63325         * MODULES.html.sh (func_all_modules): Add getnline.
63326
63327 2003-07-17  Bruno Haible  <bruno@clisp.org>
63328
63329         * m4/getnline.m4: New file.
63330
63331 2003-07-17  Bruno Haible  <bruno@clisp.org>
63332
63333         * m4/Makefile.am.in: Remove file.
63334         * m4/Makefile.am: Remove file.
63335         * m4/Makefile.in: Remove file.
63336
63337 2003-07-17  Bruno Haible  <bruno@clisp.org>
63338
63339         * lib/getnline.h: New file.
63340         * lib/getnline.c: New file.
63341         * lib/getndelim2.c: New file, extracted from getline.c.
63342         (getndelim2): Renamed from getdelim2, with added nmax argument.
63343         * lib/getline.c: Include getndelim2.c.
63344         (getdelim2): Moved out to getndelim2.c.
63345         (getline, getdelim): Update.
63346
63347 2003-07-17  Bruno Haible  <bruno@clisp.org>
63348
63349         * lib/Makefile.am: Remove file.
63350         * lib/Makefile.in: Remove file.
63351
63352 2003-07-17  Bruno Haible  <bruno@clisp.org>
63353
63354         * configure.in: Remove file.
63355         * Makefile.in: Remove file.
63356
63357 2003-07-17  Bruno Haible  <bruno@clisp.org>
63358
63359         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63360
63361 2003-07-16  Karl Berry  <karl@gnu.org>
63362
63363         * config/srclist-update: was running fixlicense twice, which caused
63364                 texinfo.tex to be nullified for some reason.  Simplify,
63365                 $gplsrc is no longer needed as far as I can see?
63366
63367 2003-07-16  Jim Meyering  <jim@meyering.net>
63368
63369         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63370
63371 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63372
63373         * config/srclist.txt: Get the following files from gettext-runtime/intl
63374         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63375         ref-del.sin.  From Bruno Haible.
63376         * config/srclist-update (fixfile): Change grep pattern again, since the
63377         previous fix didn't work (there was another trailing $).  Use
63378         '[$]' to escape the $s.
63379
63380 2003-07-15  Karl Berry  <karl@gnu.org>
63381
63382         * lib/vasnprintf.c: update from gettext.
63383
63384 2003-07-15  Karl Berry  <karl@gnu.org>
63385
63386         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63387         gets expanded when surrounded by '$'.
63388
63389 2003-07-15  Jim Meyering  <jim@meyering.net>
63390
63391         * modules/save-cwd: Don't depend on error.  From Derek Price.
63392
63393 2003-07-15  Jim Meyering  <jim@meyering.net>
63394
63395         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63396
63397 2003-07-14  Simon Josefsson  <jas@extundo.com>
63398
63399         * modules/mempcpy: New file.
63400         * MODULES.html.sh (func_all_modules): Add mempcpy.
63401
63402 2003-07-14  Simon Josefsson  <jas@extundo.com>
63403
63404         * m4/mempcpy.m4: New file.
63405
63406 2003-07-14  Simon Josefsson  <jas@extundo.com>
63407
63408         * lib/mempcpy.h: New file.
63409         * lib/mempcpy.c: New file.
63410
63411 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63412
63413         * modules/getdate, modules/posixtm: Depend on mktime.
63414
63415 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63416
63417         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63418         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63419         unicodeio.c, unicodeio.h, unlocked-io.h:
63420         Switch from LGPL to GPL.
63421
63422 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63423
63424         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63425         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63426         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63427         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63428         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63429         updated automatically by ../config/srclist-update.  This changes
63430         their license from LPGL to GPL.
63431
63432 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63433
63434         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63435         assumed to refer to the root of the most recent stable gettext version.
63436         * config/srclistvars.sh: Add defaults for eggert.
63437         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63438         Match "This program" as well as "The program".  This is needed
63439         for gettext.
63440
63441 2003-07-14  Jim Meyering  <jim@meyering.net>
63442
63443         Don't emit diagnostics.  Let callers do that.
63444         * lib/save-cwd.c: Don't include "error.h".
63445         (save_cwd): Don't call error.  Ensure that errno is valid
63446         when returning nonzero.
63447
63448         * lib/save-cwd.h (restore_cwd): Update prototype.
63449         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63450         Simplify.  Don't call error upon failure.  Let callers do that.
63451         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63452         when auditing is enabled.  But don't bother updating the #if.
63453
63454 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63455
63456         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63457         it breaks C++ compilation.
63458         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63459
63460 2003-07-10  Simon Josefsson  <jas@extundo.com>
63461
63462         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63463
63464 2003-07-10  Jim Meyering  <jim@meyering.net>
63465
63466         * m4/clock_time.m4: Remove trailing blank.
63467         * m4/intmax_t.m4: Likewise.
63468
63469 2003-07-10  Jim Meyering  <jim@meyering.net>
63470
63471         * lib/vasnprintf.c: Remove trailing blanks.
63472         Make cpp indentation consistent.
63473
63474 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63475
63476         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63477         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63478         Switch from LGPL to GPL.
63479
63480 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63481
63482         * config/srclist.txt: Sort sublists.  Add
63483         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63484         that differ from gnulib for one reason or another; we'd like this list
63485         to be smaller but for now let's document what we have.
63486
63487 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63488
63489         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63490         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63491         and sweeter "eval x=$x".
63492         * config/srclist.txt: Get lib/argp* from glibc.
63493
63494 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63495
63496         * lib/mktime.c: Fix some boundary cases and remove need for floating
63497         point.
63498
63499         Issue a compile-time diagnostic if time_t is floating point, or if
63500         two's complement arithmetic is not in effect, or if arithmetic
63501         right shift does not propagate the sign.  These assumptions were
63502         all in the original code but they weren't checked.
63503
63504         (TIME_T_MIDPOINT, verify): New macros.
63505         (__isleap): Remove; it has integer overflow problems.
63506         (leapyear): New function, without those problems.
63507         (ydhms_tm_diff): Remove; splitting into two parts.
63508         (ydhms_diff): New function, containing the arithmetic part of
63509         the old ydhms_tm_diff function.  Issue a compile-time
63510         diagnostic if we are not using C99 integer division.
63511         Avoid casts when possible.
63512         (guess_time_tm): New function, containing the checking part of
63513         the old ydhms_tm_diff function.  Return the new value, rather than
63514         the difference between it and the old.  Accept a new argument T
63515         so that *T specifies the old value.  Check for overflow in the result.
63516
63517         (__mktime_internal): Use a time_t offset, not a long int offset.
63518         This undoes the 2003-06-04 change, which is no longer needed now
63519         that we have better overflow checking.
63520         (localtime_offset): Likewise.
63521
63522         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63523         and long are 64-bit but int is only 32-bit.
63524         (ydhms_diff): Use long int to store year1 and yday1.
63525         Issue a compile-time diagnostic if long int is not wide enough.
63526
63527         (__mktime_internal): Use long int to store adjusted year and yday.
63528         Use plain C rather than preprocessor commands, if that doesn't
63529         affect efficiency.
63530         Check for overflow (and try to repair) after each probe
63531         rather than checking only at the very end.  This avoids some bugs
63532         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63533         does not equal GMT offset at maximum time).
63534         Use integer to check for overflow rather than floating point; this
63535         is more portable to non-IEEE hosts, and is a tad faster.
63536         When we detect that we are oscillating between two values,
63537         don't check whether tm_isdst has the requested value, since
63538         we already know the answer.  When tm_isdst has the wrong value,
63539         use a different heuristic to find the right one, based on the
63540         extreme values actually observed in practice in tz2003a,
63541         rather than the (overly optimistic) "previous 3 calendar quarters".
63542
63543         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63544         "T const" to accommodate glibc style.
63545         (check_result): Use less-confusing report format.  "long" -> "long int.
63546         (main): Likewise.
63547         Don't loop if the iteration overflows time_t.
63548         Allow a negative step in the iteration.
63549
63550 2003-07-06  Karl Berry  <karl@gnu.org>
63551
63552         * config/depcomp: update from automake.
63553         * config/config.sub: update from prep.
63554
63555 2003-07-03  Karl Berry  <karl@gnu.org>
63556
63557         * config/config.guess: update from prep.
63558
63559 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63560
63561         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63562         xreadlink.c now includes it unconditionally.
63563
63564 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63565
63566         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63567         having it depend on HAVE_SYS_TYPES_H.
63568
63569 2003-07-01  Bruno Haible  <bruno@clisp.org>
63570
63571         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63572         <sys/types.h> should be sufficient.
63573         Reported by Paul Eggert.
63574
63575 2003-06-26  Karl Berry  <karl@gnu.org>
63576
63577         * config/depcomp: update from automake.
63578
63579 2003-06-26  Bruno Haible  <bruno@clisp.org>
63580
63581         * modules/human: Depend on module stdbool.
63582
63583 2003-06-25  Bruno Haible  <bruno@clisp.org>
63584
63585         * modules/readlink: New file.
63586         * modules/xreadlink: Depend on it.
63587         * MODULES.html.sh (func_all_modules): Add readlink.
63588
63589 2003-06-25  Bruno Haible  <bruno@clisp.org>
63590
63591         * m4/readlink.m4: New file.
63592
63593 2003-06-25  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/readlink.c: New file.
63596
63597 2003-06-22  Karl Berry  <karl@gnu.org>
63598
63599         * config/srclist.txt: update mkinstalldirs from automake.
63600         * config/mkinstalldirs: update.
63601
63602 2003-06-22  Bruno Haible  <bruno@clisp.org>
63603
63604         Portability to mingw32.
63605         * m4/ssize_t.m4: New file, from GNU gettext.
63606         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63607         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63608
63609 2003-06-22  Bruno Haible  <bruno@clisp.org>
63610
63611         * modules/safe-read: Add m4/ssize_t.m4.
63612         * modules/xreadlink: Add m4/ssize_t.m4.
63613
63614 2003-06-20  Bruno Haible  <bruno@clisp.org>
63615
63616         Assume C89, so PARAMS isn't needed.
63617         * lib/unicodeio.h (PARAMS): Remove.
63618         * lib/unicodeio.c: Don't use PARAMS.
63619
63620 2003-06-18  Karl Berry  <karl@gnu.org>
63621
63622         * config/config.{guess,sub}: update from prep.
63623
63624 2003-06-18  Jim Meyering  <jim@meyering.net>
63625
63626         Merge changes from coreutils.
63627         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63628         Remove explicit declarations of xmalloc and realloc.
63629         Include xalloc.h.
63630         (read_utmp): Remove anachronistic cast of xmalloc.
63631
63632 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63633
63634         Assume C89, so PARAMS isn't needed.
63635         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63636         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63637         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63638         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63639         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63640         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63641         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63642         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63643         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63644         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63645         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63646         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63647         no longer needed. Anyway, config.h should always be included before any
63648         other file.
63649
63650 2003-06-11  Simon Josefsson  <jas@extundo.com>
63651
63652         * modules/sysexits: New file.
63653         * MODULES.html.sh (func_all_modules): Add sysexits.
63654
63655 2003-06-11  Simon Josefsson  <jas@extundo.com>
63656
63657         * lib/sysexit_.h: New file.
63658
63659 2003-06-11  Derek Price  <derek@ximbiot.com>
63660
63661         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63662         necessary.
63663
63664 2003-06-11  Bruno Haible  <bruno@clisp.org>
63665
63666         * m4/sysexits.m4: New file.
63667
63668 2003-06-10  Simon Josefsson  <jas@extundo.com>
63669
63670         * lib/argp.h: New file, from glibc.
63671         * lib/argp-ba.c: New file, from glibc.
63672         * lib/argp-eexst.c: New file, from glibc.
63673         * lib/argp-fmtstream.c: New file, from glibc.
63674         * lib/argp-fmtstream.h: New file, from glibc.
63675         * lib/argp-fs-xinl.c: New file, from glibc.
63676         * lib/argp-help.c: New file, from glibc.
63677         * lib/argp-namefrob.h: New file, from glibc.
63678         * lib/argp-parse.c: New file, from glibc.
63679         * lib/argp-pv.c: New file, from glibc.
63680         * lib/argp-pvh.c: New file, from glibc.
63681         * lib/argp-xinl.c: New file, from glibc.
63682
63683 2003-06-10  Simon Josefsson  <jas@extundo.com>
63684
63685         * modules/strchrnul: New file.
63686
63687 2003-06-10  Simon Josefsson  <jas@extundo.com>
63688
63689         * modules/argp: New file.
63690
63691 2003-06-10  Simon Josefsson  <jas@extundo.com>
63692
63693         * m4/strchrnul.m4: New file.
63694
63695 2003-06-10  Simon Josefsson  <jas@extundo.com>
63696
63697         * lib/strchrnul.h: New file.
63698         * lib/strchrnul.c: New file.
63699
63700 2003-06-10  Bruno Haible  <bruno@clisp.org>
63701
63702         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63703
63704 2003-06-07  Karl Berry  <karl@gnu.org>
63705
63706         * config/config.{guess,sub}: update from prep.
63707
63708 2003-06-07  Jim Meyering  <jim@meyering.net>
63709
63710         * modules/strtod: Use $(...) notation, not @...@ for
63711         AC_REPLACE'd variables.
63712         * modules/localcharset: Likewise.
63713
63714 2003-06-07  Jim Meyering  <jim@meyering.net>
63715
63716         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63717         in place of my name in the copyright comment.
63718         Remove definition and uses of __P.
63719
63720         From coreutils.
63721         * lib/stat.c: Don't declare xmalloc explicitly.
63722         Instead, include "xalloc.h".
63723         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63724         xrealloc, and xcalloc return values.
63725         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63726         Improve comment.
63727         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63728
63729 2003-06-07  Bruno Haible  <bruno@clisp.org>
63730
63731         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63732         avoid AC_CONFIG_LINKS.
63733         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63734         fnmatch.h, to avoid AC_CONFIG_LINKS.
63735         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63736
63737 2003-06-07  Bruno Haible  <bruno@clisp.org>
63738
63739         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63740         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63741         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63742         directory.
63743         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63744         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63745         directory.
63746
63747 2003-06-06  Jim Meyering  <jim@meyering.net>
63748
63749         Merge from coreutils.
63750         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63751         Consolidate declarations and initializations of *_base* locals.
63752
63753         Merge from coreutils.
63754         This avoids a core dump on systems without GNU putenv,
63755         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63756         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63757         (unsetenv): New static function, from GNU libc.
63758         (rpl_putenv): Use it.
63759
63760         * lib/modechange.c: Remove trailing blanks.
63761
63762         Merge from coreutils.
63763         * lib/fsusage.c: Remove declaration of statfs.
63764         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63765
63766         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63767
63768 2003-06-06  Jim Meyering  <jim@meyering.net>
63769
63770         * lib/stdbool_.h: Renamed from stdbool.h.in.
63771
63772 2003-06-06  Jim Meyering  <jim@meyering.net>
63773             Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63776         Adjust Makefile.am snippet not to redirect directly to target.
63777         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63778
63779 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63780
63781         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63782         mismatch, look in future quarters as well as past.  This fixes a
63783         bug when processing fall-backwards gaps immediately after a long
63784         period of daylight-saving time.
63785
63786         * lib/mktime.c: Assume freestanding C89 or better.
63787         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63788         (__P): Remove; not used.
63789         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63790         (mktime, not_equal_tm, print_tm, check_result,
63791         main): Use prototypes.  Use const * where appropriate.
63792         (main): Fix typo in testing code that uncovered by above changes.
63793         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63794
63795 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63796
63797         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63798         locale.h, localeconv.  This merges changes from coreutils.
63799
63800         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63801         It can be removed after the next Autoconf is released.
63802         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63803         needed.
63804
63805 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63806
63807         * lib/mktime.c: Fix Debian bug 177940
63808         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63809         (localtime_offset): Now long int, not time_t, because we want it
63810         to be guaranteed to be signed.  All uses changed.
63811         (__mktime_internal): If overflow would occur when adding offset,
63812         don't add it.
63813
63814         Merge 'human' changes from coreutils.  Rewrite to support
63815         locale-specific notations like thousands separators.
63816         * lib/human.c: Simplify authorship notice.
63817         Include human.h immediately after config.h.
63818         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63819         <limits.h>: Do not include, since human.h does.
63820         (SIZE_MAX, UINTMAX_MAX): New macros.
63821         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63822         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63823         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63824         (power_letter): Renamed from suffixes.
63825         (generate_suffix_backwards): Remove.
63826         (adjust_value): Now takes int style (because of human.h changes)
63827         and long double value (for greater precision on some platforms).
63828         (group_number): New function.
63829         (human_readable): Use it.  Use integer options, not enum.
63830         Put the options before the sizes in the arg list.
63831         Support all the new options.
63832         The old human_readable function has been removed;
63833         use inttostr.h instead.
63834         (human_readable, default_block_size, humblock):
63835         Use uintmax_t, not int, for block sizes.
63836         (human_readable_inexact, block_size_types): Remove.
63837         (block_size_opts): New constant.
63838         (human_options): Renamed from human_block_size, with new signature
63839         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63840         * lib/human.h: Add copyright and authorship notice.
63841         Include <limits.h> and <stdbool.h> unconditionally.
63842         (PARAMS): Remove.  All uses removed.
63843         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63844         (enum human_inexact_style): Remove tag; now a nameless enum.
63845         (human_floor, human_ceiling, human_round_to_even): Now have
63846         values 2, 0, 1 rather than -1, 1, 0.
63847         (human_group_digits, human_suppress_point_zero, human_autoscale,
63848         human_base_1024, human_SI, human_B): New constants.
63849         (human_readable_inexact, human_block_size): Remove.
63850         (human_readable): Size args are now uintmax_t, not int.
63851         (human_options): New decl.
63852
63853         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63854         unnecessary now that we assume C89 or better.  This change
63855         imported from coreutils.
63856
63857         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63858         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63859         in the 2003-05-30 sync from glibc.
63860
63861         .h files should stand alone, but we shouldn't include <sys/types.h>
63862         if we can get away with just <stddef.h>.
63863
63864         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63865         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63866         rather than <sys/types.h>, as we merely need size_t.
63867         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63868         to get size_t.
63869         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63870         Include <stdio.h>, to get FILE.
63871         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63872         memcasecmp.h has included <stddef.h> and all we need is size_t.
63873         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63874         our interface, instead of including <sys/types.h>
63875
63876 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63877
63878         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63879         now, as glibc mktime is buggy on non-glibc systems.
63880
63881 2003-06-03  Karl Berry  <karl@gnu.org>
63882
63883         * config/config.sub: update from prep.
63884
63885 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63886
63887         [from coreutils]
63888         Fix some minor time-related bugs with POSIX time arguments.
63889         Some valid time stamps were being rejected (notably -1, and
63890         time stamps before 1900 on 64-bit hosts).  And some invalid
63891         time stamps were being accepted, e.g. September 31.
63892
63893         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63894         that we can return (time_t) -1 successfully.
63895         * lib/posixtm.c: Likewise.
63896         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63897         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63898         (t): Remove static var.
63899         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63900         of static var.  All uses changed.
63901         (year): Do not reject years before 1900; they can occur with
63902         64-bit time_t.
63903         (posix_time_parse): Do not check for out-of-range components;
63904         that is now the caller's responsibility, since our checks were
63905         only approximations.
63906         (posixtime): Use mktime to check for out-of-range components,
63907         since it knows them exactly.
63908         If mktime returns (time_t) -1, check whether an error actually occurred
63909         by invoking localtime on -1.
63910         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63911         posixtime failures better.
63912         Improve the test data (in comments only).
63913
63914 2003-06-02  Karl Berry  <karl@gnu.org>
63915
63916         * config/mkinstalldirs (version): new variable.
63917         (--version): new option.
63918         (usage): improve message.
63919
63920 2003-05-30  Karl Berry  <karl@gnu.org>
63921
63922         * lib/mktime.c: update from libc.
63923
63924 2003-05-30  Bruno Haible  <bruno@clisp.org>
63925
63926         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63927         * config/config.rpath: Upgrade to gettext-0.12.1.
63928
63929 2003-05-30  Bruno Haible  <bruno@clisp.org>
63930
63931         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63932         * m4/nls.m4: New file, from gettext-0.12.1.
63933         * m4/po.m4: New file, from gettext-0.12.1.
63934         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63935
63936 2003-05-30  Bruno Haible  <bruno@clisp.org>
63937
63938         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63939         * lib/localcharset.h: Likewise.
63940         * lib/localcharset.c: Likewise.
63941
63942 2003-05-29  Karl Berry  <karl@gnu.org>
63943
63944         * config/config.rpath: update from gettext.
63945
63946 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63947
63948         Assume the headers required for C89 freestanding compilers.
63949         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63950         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63951         * m4/human.m4 (gl_HUMAN): Likewise.
63952         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63953         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63954         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63955         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63957         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63958
63959 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63960
63961         Assume the headers required for C89 freestanding compilers.
63962         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63963         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63964         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63965         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63966         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63967         define, since <limits.h> is guaranteed to do that.
63968         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63969         * lib/exclude.c: Include <stdbool.h> unconditionally.
63970         * lib/tempname.c: Include <stddef.h> unconditionally.
63971         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63972         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63973         <stddef.h> does that.
63974         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63975         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63976         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63977         needed.
63978         * lib/xstrtol.c: Likewise.
63979         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63980         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63981
63982         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63983         warnings on some platforms.
63984
63985         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63986         arbitrarily.
63987
63988 2003-05-26  Jim Meyering  <jim@meyering.net>
63989
63990         Merge in a change from coreutils:
63991         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63992         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63993         that condition, rather than `-1' which is slightly misleading.
63994         Change the name of the cache variable to have the gl_ prefix.
63995         Prompted by a patch from Richard Dawe for DJGPP.
63996
63997 2003-05-24  Karl Berry  <karl@gnu.org>
63998
63999         * config/config.guess: update from prep.
64000
64001 2003-05-22  Karl Berry  <karl@gnu.org>
64002
64003         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64004
64005 2003-05-20  Karl Berry  <karl@gnu.org>
64006
64007         * config/config.guess: update from prep.
64008
64009 2003-05-18  Karl Berry  <karl@gnu.org>
64010
64011         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64012         might actually be set by the user.
64013
64014         * config/depcomp, install-sh, mdate-sh: update from automake.
64015
64016 2003-05-17  Bruno Haible  <bruno@clisp.org>
64017
64018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64019         invalid expansion for AC_EGREP_CPP.
64020         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64021         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64022         Suggested by Akim Demaille <akim@epita.fr> in
64023         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64024
64025 2003-05-12  Jim Meyering  <jim@meyering.net>
64026
64027         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64028         the space-padded-by-default conversion specifiers, %e, %k, %l.
64029
64030 2003-05-12  Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64033         the string is longer than 4 KB.
64034
64035 2003-05-11  Karl Berry  <karl@gnu.org>
64036
64037         * config/config.{guess,sub}: update from prep.
64038
64039 2003-05-09  Bruno Haible  <bruno@clisp.org>
64040
64041         * modules/error: Add m4/strerror_r.m4 to file list.
64042
64043 2003-05-03  Bruno Haible  <bruno@clisp.org>
64044
64045         Upgrade to Unicode-4.0.
64046         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64047         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64048         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64049         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64050         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64051         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64052         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64053         Change width of U+E0100..U+E01EF from 1 to 0.
64054
64055 2003-04-25  Jim Meyering  <jim@meyering.net>
64056
64057         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64058         of type size_t, not int.
64059
64060 2003-04-25  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/copy-file.c: Include <stddef.h>, for size_t.
64063
64064 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64065
64066         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64067         code which expansion is under static control.  Patch imported from
64068         Akim Demaille's patch to Bison; see
64069         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64070
64071 2003-04-14  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64074
64075 2003-04-11  Jim Meyering  <jim@meyering.net>
64076
64077         Merge changes from Coreutils.
64078
64079         2003-03-22  Jim Meyering  <jim@meyering.net>
64080
64081         * lib/strftime.c (widen): Cast alloca return value to proper type.
64082
64083         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64084
64085         From GNU libc.
64086         * lib/strftime.c (my_strftime): Handle very large width
64087         specifications for numeric values correctly.  Improve checks for
64088         overflow.
64089
64090         2003-01-19  Jim Meyering  <jim@meyering.net>
64091
64092         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64093         definitions.
64094         (nl_get_alt_digit) [! defined my_strftime]: Define.
64095         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64096         _nl_get_alt_digit and _nl_get_walt_digit.
64097
64098         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64099         libc. These changes have no effect outside of _LIBC.
64100
64101 2003-04-10  Bruno Haible  <bruno@clisp.org>
64102
64103         * modules/findprog: New file.
64104         * MODULES.html.sh (func_all_modules): Add it.
64105
64106 2003-04-10  Bruno Haible  <bruno@clisp.org>
64107
64108         * m4/findprog.m4: New file.
64109         * m4/eaccess.m4: New file.
64110
64111 2003-04-10  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/findprog.h: New file, from GNU gettext.
64114         * lib/findprog.c: New file, from GNU gettext.
64115
64116 2003-04-05  Jim Meyering  <jim@meyering.net>
64117
64118         Merge changes from Coreutils.
64119
64120         * lib/exclude.h (PARAMS): Remove definition and uses.
64121         * lib/exclude.c: Remove uses of `PARAMS'.
64122
64123         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64124         Add test-cases for DOS filenames. Declare program_name.
64125         (main): Set up program_name.  Patch by Rich Dawe.
64126
64127         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64128         error from mntctl.
64129         Use mntctl's return value to drive the entry-processing loop, since
64130         we can't rely on the value of the vmt_length member in the last
64131         entry.  On some systems doing so could result in exhausting
64132         virtual memory.  Based in part on a patch from Mike Jetzer.
64133
64134 2003-04-04  Bruno Haible  <bruno@clisp.org>
64135
64136         * modules/linebreak: New file.
64137         * MODULES.html.sh (func_all_modules): Add it.
64138
64139 2003-04-04  Bruno Haible  <bruno@clisp.org>
64140
64141         * m4/linebreak.m4: New file.
64142
64143 2003-04-04  Bruno Haible  <bruno@clisp.org>
64144
64145         * lib/linebreak.h: New file, from GNU gettext.
64146         * lib/linebreak.c: New file, from GNU gettext with slight
64147         modifications.
64148         * lib/lbrkprop.h: New file, from GNU gettext.
64149
64150 2003-04-03  Bruno Haible  <bruno@clisp.org>
64151
64152         * modules/utf8-ucs4: New file.
64153         * modules/utf16-ucs4: New file.
64154         * modules/ucs4-utf8: New file.
64155         * modules/ucs4-utf16: New file.
64156         * MODULES.html.sh (func_all_modules): Add them.
64157
64158 2003-04-03  Bruno Haible  <bruno@clisp.org>
64159
64160         * m4/utf-ucs4.m4: New file.
64161         * m4/ucs4-utf.m4: New file.
64162
64163 2003-04-03  Bruno Haible  <bruno@clisp.org>
64164
64165         * lib/utf8-ucs4.h: New file, from GNU gettext.
64166         * lib/utf16-ucs4.h: New file, from GNU gettext.
64167         * lib/ucs4-utf8.h: New file, from GNU gettext.
64168         * lib/ucs4-utf16.h: New file, from GNU gettext.
64169
64170 2003-04-02  Bruno Haible  <bruno@clisp.org>
64171
64172         * modules/binary-io: New file.
64173         * MODULES.html.sh (func_all_modules): Add it.
64174
64175 2003-04-02  Bruno Haible  <bruno@clisp.org>
64176
64177         * lib/binary-io.h: New file, from GNU gettext.
64178
64179 2003-04-01  Bruno Haible  <bruno@clisp.org>
64180
64181         * modules/pathname: New file.
64182         * MODULES.html.sh (func_all_modules): Add it.
64183
64184 2003-04-01  Bruno Haible  <bruno@clisp.org>
64185
64186         * lib/pathname.h: New file, from GNU gettext.
64187         * lib/concatpath.c: New file, from GNU gettext.
64188
64189 2003-03-30  Bruno Haible  <bruno@clisp.org>
64190
64191         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64192
64193 2003-03-30  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64196         function chown() doesn't exist.
64197
64198 2003-03-28  Bruno Haible  <bruno@clisp.org>
64199
64200         * modules/copy-file: New file.
64201         * MODULES.html.sh (func_all_modules): Add it.
64202
64203 2003-03-28  Bruno Haible  <bruno@clisp.org>
64204
64205         * m4/copy-file.m4: New file.
64206
64207 2003-03-28  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/copy-file.h: New file, from GNU gettext.
64210         * lib/copy-file.c: New file, from GNU gettext.
64211
64212 2003-03-18  Jim Meyering  <jim@meyering.net>
64213
64214         * lib/quote.c (quote_n): Fix typo in comment.
64215
64216 2003-03-18  Bruno Haible  <bruno@clisp.org>
64217
64218         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64219         checking.
64220         * m4/onceonly_2_57.m4: Likewise.
64221
64222 2003-03-17  Bruno Haible  <bruno@clisp.org>
64223
64224         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64225         (m4_quote): Remove macro.
64226         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64227
64228 2003-03-14  Jim Meyering  <jim@meyering.net>
64229
64230         Merge changes from Coreutils.
64231         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64232         to be const, in order to avoid warnings.
64233         (obstack_room): Likewise.
64234         (obstack_empty_p): Likewise.
64235
64236 2003-03-14  Bruno Haible  <bruno@clisp.org>
64237
64238         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64239         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64240
64241 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64242
64243         Merge changes from Bison.
64244         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64245         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64246         when compiling Bison 1.875's `bitset bset = obstack_alloc
64247         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64248         * lib/hash.c: Include <stdbool.h> unconditionally.
64249
64250 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64251
64252         * m4/onceonly.m4 (m4_quote): New macro.
64253         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64254         Quote AC_FOREACH variable-expansions properly.
64255
64256 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64257
64258         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64259
64260 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64261
64262         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64263         Reported by Bruce Becker; see:
64264         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64265
64266 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64267             Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64270         Reported by John Hughes, see
64271         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64272
64273 2003-02-20  Bruno Haible  <bruno@clisp.org>
64274
64275         * MODULES.html.sh (func_all_modules): Add poll.
64276
64277 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64278
64279         * modules/poll: New file.
64280
64281 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64282
64283         * lib/poll_.h: New file.
64284         * lib/poll.c: New file.
64285
64286 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64287
64288         * m4/poll.m4: New file.
64289
64290 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64291
64292         * modules/mathl: New file.
64293
64294 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64295
64296         * lib/mathl.h: New file.
64297         * lib/acosl.c: New file.
64298         * lib/asinl.c: New file.
64299         * lib/atanl.c: New file.
64300         * lib/ceill.c: New file.
64301         * lib/cosl.c: New file.
64302         * lib/expl.c: New file.
64303         * lib/floorl.c: New file.
64304         * lib/frexpl.c: New file.
64305         * lib/ldexpl.c: New file.
64306         * lib/logl.c: New file.
64307         * lib/sincosl.c: New file.
64308         * lib/sinl.c: New file.
64309         * lib/sqrtl.c: New file.
64310         * lib/tanl.c: New file.
64311         * lib/trigl.c: New file.
64312         * lib/trigl.h: New file.
64313
64314 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64315
64316         * m4/mathl.m4: New file.
64317
64318 2003-02-18  Bruno Haible  <bruno@clisp.org>
64319
64320         * MODULES.html.sh (func_all_modules): Add mathl.
64321
64322 2003-02-17  Bruno Haible  <bruno@clisp.org>
64323
64324         * modules/mkdtemp: New module.
64325         * MODULES.html.sh (func_all_modules): Add it.
64326
64327 2003-02-17  Bruno Haible  <bruno@clisp.org>
64328
64329         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64330
64331 2003-02-17  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/mkdtemp.h: New file, from GNU gettext.
64334         * lib/mkdtemp.c: New file, from GNU gettext.
64335
64336 2003-02-02  Jim Meyering  <jim@meyering.net>
64337
64338         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64339         e.g. glibc-2.2.93.
64340
64341 2003-01-31  Bruno Haible  <bruno@clisp.org>
64342
64343         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64344         'rpl_rename'.
64345         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64346         'rpl_strnlen'.
64347         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64348         'rpl_strtod'.
64349         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64350         'rpl_utime'.
64351
64352 2003-01-31  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/rename.c: #undef rename before defining rpl_rename.
64355         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64356
64357 2003-01-30  Bruno Haible  <bruno@clisp.org>
64358
64359         * modules/vasnprintf, modules/vasprintf: New modules.
64360         * MODULES.html.sh (func_all_modules): Add them.
64361
64362 2003-01-30  Bruno Haible  <bruno@clisp.org>
64363
64364         * m4/signed.m4: New file, from GNU gettext.
64365         * m4/longdouble.m4: New file, from GNU gettext.
64366         * m4/wchar_t.m4: New file, from GNU gettext.
64367         * m4/wint_t.m4: New file, from GNU gettext.
64368         * m4/vasnprintf.m4: New file.
64369         * m4/vasprintf.m4: New file.
64370
64371 2003-01-30  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/printf-args.h: New file, from GNU gettext.
64374         * lib/printf-args.c: New file, from GNU gettext.
64375         * lib/printf-parse.h: New file, from GNU gettext.
64376         * lib/printf-parse.c: New file, from GNU gettext.
64377         * lib/vasnprintf.h: New file, from GNU gettext.
64378         * lib/vasnprintf.c: New file, from GNU gettext.
64379         * lib/asnprintf.c: New file, from GNU gettext.
64380         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64381         * lib/vasprintf.c: New file, from GNU gettext.
64382         * lib/asprintf.c: New file, from GNU gettext.
64383
64384 2003-01-29  Bruno Haible  <bruno@clisp.org>
64385
64386         * modules/stpncpy: New module.
64387         * MODULES.html.sh (func_all_modules): Add it.
64388
64389 2003-01-29  Bruno Haible  <bruno@clisp.org>
64390
64391         * m4/stpncpy.m4: New file.
64392
64393 2003-01-29  Bruno Haible  <bruno@clisp.org>
64394
64395         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64396         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64397
64398 2003-01-28  Bruno Haible  <bruno@clisp.org>
64399
64400         * modules/c-ctype: New module.
64401         * MODULES.html.sh (func_all_modules): Add it.
64402
64403 2003-01-28  Bruno Haible  <bruno@clisp.org>
64404
64405         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64406         Paul Eggert.
64407         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64408         Paul Eggert.
64409
64410 2003-01-27  Bruno Haible  <bruno@clisp.org>
64411
64412         * modules/xsetenv: New module.
64413         * MODULES.html.sh (func_all_modules): Add it.
64414
64415 2003-01-27  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/xsetenv.h: New file, from GNU gettext.
64418         * lib/xsetenv.c: New file, from GNU gettext.
64419
64420 2003-01-23  Jim Meyering  <jim@meyering.net>
64421
64422         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64423         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64424
64425 2003-01-23  Bruno Haible  <bruno@clisp.org>
64426
64427         * modules/minmax: New module.
64428         * MODULES.html.sh (func_all_modules): Add it.
64429
64430 2003-01-23  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64433         Eggert.
64434
64435 2003-01-22  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/exit: New module.
64438         * MODULES.html.sh (func_all_modules): Add it.
64439
64440 2003-01-22  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/exit.h: New file, from GNU gettext.
64443
64444 2003-01-19  Bruno Haible  <bruno@clisp.org>
64445
64446         * gnulib-tool: Recognize option --extract-maintainer.
64447         (func_get_maintainer): New function.
64448         * modules/*: Add Maintainer entry.
64449
64450 2003-01-16  Jim Meyering  <jim@meyering.net>
64451
64452         * m4/regex.m4: The `regex' struct is both input and output.
64453         Initialize it before each use.  Patch by Tim Waugh.
64454
64455 2003-01-16  Bruno Haible  <bruno@clisp.org>
64456
64457         * MODULES.html.sh: Add a table of contents. Add the module name as
64458         leftmost column. Add hyperlinks.
64459
64460 2003-01-15  Bruno Haible  <bruno@clisp.org>
64461
64462         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64463
64464 2003-01-15  Bruno Haible  <bruno@clisp.org>
64465
64466         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64467         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64468         suffix.
64469
64470 2003-01-15  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64473
64474 2003-01-15  Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64477         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64478
64479 2003-01-14  Jim Meyering  <jim@meyering.net>
64480
64481         * lib/same.c (same_name): Tweak a comment.
64482
64483 2003-01-14  Bruno Haible  <bruno@clisp.org>
64484
64485         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64486         when a string comparison is sufficient.
64487
64488 2003-01-14  Bruno Haible  <bruno@clisp.org>
64489
64490         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64491         'unsigned int'.
64492
64493 2003-01-14  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/hash-pjw.c: Add comment about low quality of this function.
64496
64497 2003-01-13  Bruno Haible  <bruno@clisp.org>
64498
64499         * modules/stpcpy: Distribute lib/stpcpy.h.
64500         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64501
64502 2003-01-13  Bruno Haible  <bruno@clisp.org>
64503
64504         * modules/*: Add a description.
64505         * modules/strpbrk: Fix Makefile.am snippet.
64506         * modules/strtoimax: Fix dependencies.
64507         * modules/strtoumax: Likewise.
64508
64509 2003-01-13  Bruno Haible  <bruno@clisp.org>
64510
64511         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64512         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64513         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64514
64515 2003-01-13  Bruno Haible  <bruno@clisp.org>
64516
64517         * gnulib-tool (func_create_testdir): Store config/* files in the main
64518         directory.
64519         * config.rpath: Move to ...
64520         * config/config.rpath: ... here.
64521         * modules/gettext: Contains config/config.rpath, not config.rpath.
64522         * modules/iconv: Likewise.
64523
64524 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64525
64526         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64527         to avoid collisions with libcurses and libreadline.
64528
64529         * m4/getstr.m4: Remove.
64530         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64531
64532 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64533
64534         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64535         to avoid collisions with libcurses and libreadline.
64536
64537         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64538         * lib/getstr.h, getstr.c: Remove.
64539         * lib/getline.c: Include "getline.h", to check interface.
64540         Move body of old getstr.c here: this defines MIN_CHUNK and
64541         declares getdelim2, which is renamed from getstr.
64542         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64543
64544         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64545         All uses changed.
64546         * lib/linebuffer.h: Likewise.
64547         (readline): Remove backward-compatibility macro.
64548
64549 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64550
64551         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64552         to avoid collisions with libcurses and libreadline.
64553         * getstr: Remove.
64554         * MODULES.html.sh: Remove getstr.
64555         * modules/getline: Depend on unlocked-io, not getstr.
64556
64557 2003-01-12  Jim Meyering  <jim@meyering.net>
64558
64559         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64560
64561 2003-01-10  Bruno Haible  <bruno@clisp.org>
64562
64563         * modules/alloca: Change Makefile.am requirements. Simplify Include
64564         requirements. Add lib/alloca_.h to file list.
64565
64566 2003-01-10  Bruno Haible  <bruno@clisp.org>
64567
64568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64569
64570 2003-01-10  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/alloca_.h: New file.
64573         * lib/getdate.y: Unconditionally include alloca.h.
64574         * lib/makepath.c: Likewise.
64575         * lib/setenv.c: Likewise.
64576         * lib/userspec.c: Likewise.
64577
64578 2003-01-09  Karl Berry  <karl@gnu.org>
64579
64580         * MODULES.html.sh: include `dirname $0` in PATH, to find
64581         gnulib-tool.
64582
64583 2003-01-09  Bruno Haible  <bruno@clisp.org>
64584
64585         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64586         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64587
64588 2003-01-09  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64591
64592 2003-01-09  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/stdbool.h.in: New file.
64595
64596 2003-01-09  Bruno Haible  <bruno@clisp.org>
64597
64598         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64599         * MODULES.html.sh: Likewise.
64600
64601 2003-01-08  Jim Meyering  <jim@meyering.net>
64602
64603         * lib/full-write.c: Undefine and define-away `const' after inclusion
64604         of errno.h, not before.  Suggestion from Bruno Haible.
64605
64606 2003-01-08  Bruno Haible  <bruno@clisp.org>
64607
64608         * modules/full-read: Depend on full-write.
64609
64610 2003-01-08  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/safe-read.c: Include specification header first, to ensure its
64613         selfcontainedness.
64614         * lib/full-write.c: Likewise.
64615
64616 2003-01-07  Jim Meyering  <jim@meyering.net>
64617
64618         * lib/full-write.c: Rework so that it may serve to define full_read,
64619         too.
64620         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64621
64622 2003-01-07  Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64625         <inttypes.h>.
64626         * lib/xstrtol.h: Likewise.
64627         * lib/xstrtoimax.c: Likewise.
64628         * lib/xstrtoumax.c: Likewise.
64629         * lib/human.h: Likewise.
64630
64631         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64632         on systems that have <inttypes.h> but not <stdint.h>.
64633
64634 2003-01-07  Bruno Haible  <bruno@clisp.org>
64635
64636         * MODULES.html.sh: Add copyright notice.
64637         (missed_files): Omit CVS directory entries.
64638         (func_module): Make it work with sed-3.02.
64639         * MODULES.txt: Remove file.
64640
64641 2003-01-06  Jim Meyering  <jim@meyering.net>
64642
64643         * lib/version-etc.c: Update year in translatable copyright string.
64644
64645 2003-01-03  Karl Berry  <karl@gnu.org>
64646
64647         * config/config.{guess,sub}: update from prep.
64648
64649 2003-01-02  Karl Berry  <karl@gnu.org>
64650
64651         * doc/COPYING.DOC: belatedly updated to 1.2.
64652
64653 2003-01-01  Karl Berry  <karl@gnu.org>
64654
64655         * gnulib-tool (func_verify_module): report module name $module in
64656         error message, not $1.
64657         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64658         be created, only if it doesn't exist.
64659         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64660
64661 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64662
64663         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64664
64665 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64666
64667         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64668         memcmp if strcoll doesn't work.
64669
64670 2002-12-31  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64673         nonempty.
64674
64675 2002-12-31  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/memcoll.c (STRCOLL): New macro.
64678         (memcoll): Use it.
64679
64680 2002-12-31  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/localcharset.h: New file.
64683         * lib/localcharset.c: Include it.
64684         * lib/unicodeio.c: Likewise.
64685
64686 2002-12-31  Bruno Haible  <bruno@clisp.org>
64687
64688         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64689         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64690
64691 2002-12-31  Bruno Haible  <bruno@clisp.org>
64692
64693         * lib/getline.h: Include <stddef.h>, for size_t.
64694
64695         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64696         * lib/unicodeio.c: Don't include <stddef.h>.
64697
64698 2002-12-31  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64701         HAVE_TM_ZONE.
64702
64703 2002-12-24  Karl Berry  <karl@gnu.org>
64704
64705         * config/config.guess: update from prep.
64706
64707 2002-12-24  Bruno Haible  <bruno@clisp.org>
64708
64709         General infrasructure.
64710         * m4/README: Rewritten.
64711         * m4/onceonly.m4: New file.
64712         * m4/onceonly_2_57.m4: New file.
64713
64714         Module atexit.
64715         * m4/atexit.m4: New file.
64716
64717         Module strtod.
64718         * m4/strtod.m4: New file.
64719
64720         Module strtol.
64721         * m4/strtol.m4: New file.
64722
64723         Module strtoul.
64724         * m4/strtoul.m4: New file.
64725
64726         Module memchr.
64727         * m4/memchr.m4: New file.
64728
64729         Module memcmp.
64730         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64731         (jm_FUNC_MEMCMP): Invoke it.
64732
64733         Module memcpy.
64734         * m4/memcpy.m4: New file.
64735
64736         Module memmove.
64737         * m4/memmove.m4: New file.
64738
64739         Module memset.
64740         * m4/memset.m4: New file.
64741
64742         Module strcspn.
64743         * m4/strcspn.m4: New file.
64744
64745         Module strpbrk.
64746         * m4/strpbrk.m4: New file.
64747
64748         Module strstr.
64749         * m4/strstr.m4: New file.
64750
64751         Module strerror.
64752         * m4/strerror.m4: New file.
64753
64754         Module mktime.
64755         * m4/mktime.m4: Renamed from jm-mktime.m4.
64756         (gl_PREREQ_MKTIME): New macro.
64757         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64758
64759         Module malloc.
64760         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64761         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64762         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64763
64764         Module realloc.
64765         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64766         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64767         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64768
64769         Module strftime.
64770         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64771         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64772         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64773         gl_TM_GMTOFF.
64774         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64775
64776         Module xalloc.
64777         * m4/xalloc.m4: New file.
64778
64779         Module alloca.
64780         * m4/alloca.m4: New file.
64781
64782         Module putenv.
64783         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64784         (jm_FUNC_PUTENV): Invoke it.
64785
64786         Module setenv.
64787         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64788         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64789         when invoked twice.
64790         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64791         gt_FUNC_SETENV.
64792
64793         Module memrchr.
64794         * m4/memrchr.m4: New file.
64795
64796         Module stpcpy.
64797         * m4/stpcpy.m4: New file.
64798
64799         Module strcase.
64800         * m4/strcase.m4: New file.
64801
64802         Module strdup.
64803         * m4/strdup.m4: New file.
64804
64805         Module strnlen.
64806         * m4/strnlen.m4: New file.
64807
64808         Module strndup.
64809         * m4/strndup.m4: New file.
64810
64811         Module xstrtod.
64812         * m4/xstrtod.m4: New file.
64813
64814         Module xstrtol.
64815         * m4/xstrtol.m4: New file.
64816
64817         Module getdate.
64818         * m4/getdate.m4: New file.
64819
64820         Module unlocked-io.
64821         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64822         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64823         * m4/jm-glibc-io.m4n: Remove file.
64824
64825         Module long-options.
64826         * m4/long-options.m4: New file.
64827
64828         Module md5.
64829         * m4/md5.m4: New file.
64830
64831         Module sha.
64832         * m4/sha.m4: New file.
64833
64834         Module getstr.
64835         * m4/getstr.m4: New file.
64836
64837         Module getline.
64838         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64839         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64840         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64841         simply getline. Infoke gl_PREREQ_GETLINE.
64842
64843         Module obstack.
64844         * m4/obstack.m4: New file.
64845
64846         Module hash.
64847         * m4/hash.m4: New file.
64848
64849         Module readtokens.
64850         * m4/readtokens.m4: New file.
64851
64852         Module strverscmp.
64853         * m4/strverscmp.m4: New file.
64854
64855         Module stdbool.
64856         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64857         OSF/1.
64858
64859         Module strtoll.
64860         * m4/strtoll.m4: New file.
64861
64862         Module strtoull.
64863         * m4/strtoull.m4: New file.
64864
64865         Module strtoimax.
64866         * m4/strtoimax.m4: New file.
64867
64868         Module strtoumax.
64869         * m4/strtoumax.m4: New file.
64870
64871         Module xstrtoimax.
64872         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64873         jm_AC_PREREQ_XSTRTOIMAX.
64874         Moved the strtol prerequisites to strtol.m4.
64875         Moved the strtoll prerequisites to strtoll.m4.
64876         Moved the strtoimax prerequisites to strtoimax.m4.
64877
64878         Module xstrtoumax.
64879         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64880         jm_AC_PREREQ_XSTRTOUMAX.
64881         Moved the strtoul prerequisites to strtoul.m4.
64882         Moved the strtoull prerequisites to strtoull.m4.
64883         Moved the strtoumax prerequisites to strtoumax.m4.
64884
64885         Module chown.
64886         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64887         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64888
64889         Module dup2.
64890         * m4/dup2.m4: New file.
64891
64892         Module ftruncate.
64893         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64894         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64895
64896         Module getgroups.
64897         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64898         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64899
64900         Module gettimeofday.
64901         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64902         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64903         gl_PREREQ_GETTIMEOFDAY.
64904
64905         Module mkdir.
64906         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64907         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64908
64909         Module mkstemp.
64910         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64911         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64912         jm_AC_TYPE_UINTMAX_T.
64913         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64914
64915         Module stat.
64916         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64917         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64918
64919         Module lstat.
64920         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64921         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64922
64923         Module timespec.
64924         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64925         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64926         * m4/st_mtim.m4: Indentation.
64927
64928         Module nanosleep.
64929         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64930         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64931         gl_PREREQ_NANOSLEEP.
64932
64933         Module regex.
64934         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64935         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64936         (gl_REGEX): New macro.
64937
64938         Module rename.
64939         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64940         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64941
64942         Module rmdir.
64943         * m4/rmdir.m4: New file.
64944
64945         Module utime.
64946         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64947         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64948         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64949
64950         Module dirname.
64951         * m4/dirname.m4: New file.
64952
64953         Module getopt.
64954         * m4/getopt.m4: New file.
64955
64956         Module unistd-safer.
64957         * m4/unistd-safer.m4: New file.
64958
64959         Module fnmatch.
64960         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64961         declaration.
64962         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64963         (gl_FUNC_FNMATCH_POSIX): New macro.
64964         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64965         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64966         simply fnmatch.
64967
64968         Module exclude.
64969         * m4/exclude.m4: New file.
64970
64971         Module human.
64972         * m4/human.m4: New file.
64973
64974         Module acl.
64975         * m4/acl.m4: Nop.
64976
64977         Module backupfile.
64978         * m4/backupfile.m4: New file.
64979         * m4/d-ino.m4: Indentation.
64980
64981         Module fsusage.
64982         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64983         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64984         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64985
64986         Module dirfd.
64987         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64988         requirements.
64989
64990         Module euidaccess.
64991         * m4/euidaccess.m4: New file.
64992
64993         Module file-type.
64994         * m4/file-type.m4: New file.
64995
64996         Module fileblocks.
64997         * m4/fileblocks.m4: New file.
64998
64999         Module filemode.
65000         * m4/filemode.m4: New file.
65001
65002         Module isdir.
65003         * m4/isdir.m4: New file.
65004
65005         Module lchown.
65006         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65007         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65008
65009         Module makepath.
65010         * m4/makepath.m4: New file.
65011
65012         Module modechange.
65013         * m4/modechange.m4: New file.
65014
65015         Module mountlist.
65016         * m4/mountlist.m4: New file.
65017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65018         Indentation.
65019
65020         Module path-concat.
65021         * m4/path-concat.m4: New file.
65022
65023         Module pathmax.
65024         * m4/pathmax.m4: New file.
65025
65026         Module same.
65027         * m4/same.m4: New file.
65028
65029         Module save-cwd.
65030         * m4/save-cwd.m4: New file.
65031
65032         Module savedir.
65033         * m4/savedir.m4: New file.
65034
65035         Module xgetcwd.
65036         * m4/xgetcwd.m4: New file.
65037         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65038
65039         Module xreadlink.
65040         * m4/xreadlink.m4: New file.
65041
65042         Module safe-read.
65043         * m4/safe-read.m4: New file.
65044
65045         Module safe-write.
65046         * m4/safe-write.m4: New file.
65047
65048         Module closeout.
65049         * m4/closeout.m4: New file.
65050
65051         Module stdio-safer.
65052         * m4/stdio-safer.m4: New file.
65053
65054         Module getpass.
65055         * m4/getpass.m4: New file.
65056
65057         Module getugroups.
65058         * m4/getugroups.m4: New file.
65059
65060         Module group-member.
65061         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65062         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65063
65064         Module idcache.
65065         * m4/idcache.m4: New file.
65066
65067         Module userspec.
65068         * m4/userspec.m4: New file.
65069
65070         Module gettime.
65071         * m4/clock_time.m4: New file.
65072         * m4/gettime.m4: New file.
65073
65074         Module settime.
65075         * m4/settime.m4: New file.
65076
65077         Module posixtm.
65078         * m4/posixtm.m4: New file.
65079
65080         Module gethostname.
65081         * m4/gethostname.m4: New file.
65082
65083         Module canon-host.
65084         * m4/canon-host.m4: New file.
65085
65086         Module gettext.
65087         * m4/codeset.m4: New file, from gettext-0.11.5.
65088         * m4/gettext.m4: New file, from gettext-0.11.5.
65089         * m4/glibc21.m4: New file, from gettext-0.11.5.
65090         * m4/iconv.m4: New file, from gettext-0.11.5.
65091         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65092         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65093         * m4/inttypes.m4: New file, from gettext-0.11.5.
65094         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65095         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65096         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65097         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65098         * m4/lib-link.m4: New file, from gettext-0.11.5.
65099         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65100         * m4/progtest.m4: New file, from gettext-0.11.5.
65101         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65102         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65103         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65104
65105         Module localcharset.
65106         * m4/localcharset.m4: New file.
65107
65108         Module hard-locale.
65109         * m4/hard-locale.m4: New file.
65110
65111         Module mbswidth.
65112         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65113         onceonly macros.
65114         * m4/mbrtowc.m4: Add comment.
65115
65116         Module memcasecmp.
65117         * m4/memcasecmp.m4: New file.
65118
65119         Module memcoll.
65120         * m4/memcoll.m4: New file.
65121
65122         Module unicodeio.
65123         * m4/unicodeio.m4: New file.
65124
65125         Module rpmatch.
65126         * m4/rpmatch.m4: New file.
65127
65128         Module yesno.
65129         * m4/yesno.m4: New file.
65130
65131         Module exitfail.
65132         * m4/exitfail.m4: New file.
65133
65134         Module c-stack.
65135         * m4/c-stack.m4 (gl_C_STACK): New macro.
65136         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65137
65138         Module error.
65139         * m4/error.m4 (gl_ERROR): New macro.
65140         (jm_PREREQ_ERROR): Use onceonly macros.
65141
65142         Module fatal.
65143         * m4/fatal.m4: New file.
65144
65145         Module getloadavg.
65146         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65147         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65148
65149         Module getpagesize.
65150         * m4/getpagesize.m4: New file.
65151
65152         Module getusershell.
65153         * m4/getusershell.m4: New file.
65154
65155         Module physmem.
65156         * m4/physmem.m4: New file.
65157
65158         Module posixver.
65159         * m4/posixver.m4: New file.
65160
65161         Module quotearg.
65162         * m4/quotearg.m4: New file.
65163
65164         Module quote.
65165         * m4/quote.m4: New file.
65166
65167         Module readutmp.
65168         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65169
65170         Module sig2str.
65171         * m4/sig2str.m4: New file.
65172
65173         Other.
65174         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65175         ulonglong.m4.
65176         * m4/intmax_t.m4: New file.
65177         * m4/d-type.m4: Indentation.
65178         * m4/jm-macros.m4: Update.
65179         * m4/prereq.m4 (jm_PREREQ): Update.
65180         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65181         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65182         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65183         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65184         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65185         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65186         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65187         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65188         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65189         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65190         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65191         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65192         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65193         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65194         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65195         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65196         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65197         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65198         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65199
65200 2002-12-24  Bruno Haible  <bruno@clisp.org>
65201
65202         * MODULES.txt: Update according to m4/ changes.
65203
65204         Module gettext.
65205         * config.rpath: New file, from gettext-0.11.5.
65206
65207         * modules/*: New module descriptions.
65208         * gnulib-tool: New file.
65209         * MODULES.html.sh: New file.
65210
65211 2002-12-21  Karl Berry  <karl@gnu.org>
65212
65213         * doc/fdl.texi: update to version 1.2.
65214
65215 2002-12-19  Karl Berry  <karl@gnu.org>
65216
65217         * config/config.guess: update from prep.
65218
65219 2002-12-18  Bruno Haible  <bruno@clisp.org>
65220
65221         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65222         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65223
65224 2002-12-17  Bruno Haible  <bruno@clisp.org>
65225
65226         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65227         stdlib.h, string.h.
65228
65229 2002-12-17  Bruno Haible  <bruno@clisp.org>
65230
65231         * lib/canon-host.c (strdup): Remove unused declaration.
65232
65233         * lib/fsusage.c: Include full_read.h.
65234         (get_fs_usage): Use full_read instead of safe_read.
65235
65236         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65237
65238 2002-12-12  Karl Berry  <karl@gnu.org>
65239
65240         * config/config.guess: update from prep.
65241
65242 2002-12-11  Bruno Haible  <bruno@clisp.org>
65243
65244         * m4/setenv.m4: New file, from gettext-0.11.5.
65245
65246 2002-12-11  Bruno Haible  <bruno@clisp.org>
65247
65248         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65249         not unsetenv().
65250         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65251         modifications:
65252
65253         2002-12-11  Bruno Haible  <bruno@clisp.org>
65254
65255                 * setenv.c (alloca): Fall back to malloc.
65256                 (freea): New macro.
65257                 (setenv): Use freea() to free memory allocated with alloca().
65258
65259         2002-11-13  Bruno Haible  <bruno@clisp.org>
65260
65261                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65262                 function declarations.
65263                 * unsetenv.c (unsetenv): Likewise.
65264
65265         2002-03-04  Bruno Haible  <bruno@clisp.org>
65266
65267                 Portability to AIX 4.3.3.
65268                 * unsetenv.c: New file, extracted from setenv.c.
65269                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65270
65271         2001-12-20  Bruno Haible  <bruno@clisp.org>
65272
65273                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65274                 use malloc instead. For SunOS 4.
65275
65276         2001-12-11  Bruno Haible  <bruno@clisp.org>
65277
65278                 * setenv.c: Declare alloca.
65279                 (compar_fn_t): New typedef.
65280                 (KNOWN_VALUE, STORE_VALUE): Use it.
65281
65282         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65283         setenv.h.
65284
65285 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65286
65287         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65288         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65289         Choose values that are less likely to collide with system fnmatch
65290         options.
65291         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65292         defined (e.g., a pure POSIX system).
65293         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65294         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65295
65296 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65297
65298         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65299         a pain in practice to deal with generated m4 files.  This change
65300         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65301
65302         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65303         and jm-glibc-io.m4, as they are no longer a special case.
65304         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65305         kludge and the auto-generation stuff.  Check only whether the
65306         functions are declared, not whether they exist, since older hosts
65307         that don't declare the functions can't use the optimization anyway.
65308
65309 2002-12-06  Jim Meyering  <jim@meyering.net>
65310
65311         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65312
65313         Merge in changes from libc's misc/error.c, in preparation
65314         for the merge of gnulib's changes back into libc.
65315
65316         * lib/error.c (_): Define only if not already defined.
65317         Move definition to follow all #include directives.
65318         Include unlocked-io.h only if !_LIBC.
65319         [_LIBC]: Include <libio/libioP.h>.
65320         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65321         (fflush): Tweak definition to use INTUSE.
65322         (putc): Define.
65323
65324 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65325
65326         * lib/alloca.c [defined emacs]: Include "lisp.h".
65327         (xalloc_die) [defined emacs]: New macro.
65328         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65329         [! defined emacs]: Include <xalloc.h>.
65330         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65331         (pointer): Typedef to POINTER_TYPE *.
65332         (malloc): Remove decl; we now always use xmalloc.
65333         (alloca): Use old-style definition, since Emacs needs this.
65334         Check for arithmetic overflow when computing combined size.
65335
65336 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65337
65338         Do not generate unlocked-io.h automatically, since it's easier to
65339         maintain it by hand.
65340
65341         * lib/unlocked-io.h: New file, from GNU diffutils,
65342         but with proper copyright notice and attribution.
65343         * lib/gen-uio: Remove.
65344         * lib/Makefile.am: Add copyright notice.
65345         (libfetish_a_SOURCES): Add unlocked-io.h.
65346         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65347         (DISTCLEANFILES, io_functions): Remove macros.
65348         (EXTRA_DIST): Remove gen_uio.
65349         (unlocked-io.h): Remove rule.
65350
65351 2002-12-04  Jim Meyering  <jim@meyering.net>
65352
65353         Reflect the fact that stat.c and lstat.c are no longer generated.
65354         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65355         (DISTCLEANFILES): Likewise.
65356         (EXTRA_DIST): Likewise.
65357         (all_local): Don't depend on stat.c or lstat.c.
65358         (stat.c, lstat.c): Remove rules.
65359         (EXTRA_DIST): Remove xstat.in.
65360
65361         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65362         * lib/stat.c: New file.  Contents mostly from xstat.in.
65363         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65364         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65365
65366         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65367         too.
65368         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65369
65370 2002-12-03  Jim Meyering  <jim@meyering.net>
65371
65372         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65373         but not semantics, to minimize the differences between these two files.
65374         (safe_read): Change comment to mention SAFE_READ_ERROR.
65375
65376         * lib/safe-read.c (IS_EINTR): Define.
65377         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65378
65379 2002-12-02  Jim Meyering  <jim@meyering.net>
65380
65381         * lib/safe-read.c (EINTR): Define.
65382         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65383         (INT_MAX): Provide fallback.
65384         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65385
65386         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65387
65388 2002-12-02  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65391         Define, taken from safe-read.c.
65392         (INT_MAX): Provide fallback.
65393         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65394         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65395
65396         * lib/safe-read.c (EINTR): Remove definition.
65397         (safe_read): Don't use EINTR if it is absent.
65398
65399 2002-12-01  Jim Meyering  <jim@meyering.net>
65400
65401         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65402         zero.
65403         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65404
65405 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65406
65407         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65408         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65409         with `if (! (value < limit)) abort ();', for readability.
65410
65411 2002-11-26  Karl Berry  <karl@gnu.org>
65412
65413         * lib/strdup.c: copy from libc again, with jim's ok.
65414         * lib/.cppi-disable: re-add strdup.c
65415
65416 2002-11-25  Karl Berry  <karl@gnu.org>
65417
65418         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65419         instead of "strtol.c".
65420
65421 2002-11-25  Karl Berry  <karl@gnu.org>
65422
65423         * config/install-sh: update from automake for variable quoting, $0 in
65424         error msgs, etc.
65425
65426         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65427         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65428         entry.
65429
65430 2002-11-25  Jim Meyering  <jim@meyering.net>
65431
65432         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65433
65434 2002-11-24  Karl Berry  <karl@gnu.org>
65435
65436         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65437         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65438
65439 2002-11-24  Jim Meyering  <jim@meyering.net>
65440
65441         Update from coreutils:
65442
65443         * lib/mktime.c: Merge in changes from libc.
65444
65445         Avoid a link-time failure on some Linux systems.
65446         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65447         (otherwise).
65448         (__mon_yday): Declare with the STATIC attribute.
65449         (__mktime_internal): Likewise.
65450         Based on a report from Greg Schafer.
65451
65452 2002-11-23  Jim Meyering  <jim@meyering.net>
65453
65454         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65455         Use `unsigned', not `int', as type of index.
65456
65457         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65458
65459         * lib/fsusage.c: Remove unneeded parentheses around operands of
65460         `defined'.
65461
65462 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65463
65464         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65465         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65466         so that we can be included first.
65467         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65468         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65469         No need to include stddef.h or sys/types.h any more.
65470         Surround local include files with "", not "<>".
65471         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65472         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65473         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65474         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65475         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65476         (ISPRINT): Remove; no longer needed now that we assume C89.
65477
65478         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65479         Preserve errno.
65480
65481         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65482         quotearg_char): Use SIZE_MAX rather than
65483         (size_t) -1 when we are talking about "infinity".
65484
65485         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65486
65487 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65488
65489         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65490         hint that one should use `if (! x) abort ();' rather than `assert
65491         (x);', and anyway it's one less thing to worry about configuring.
65492         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65493         hash_rehash, hash_insert): Use abort rather than assert.
65494
65495 2002-11-22  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/safe-read.h: Assume C89. Add comments.
65498         (safe_read): Change return type to size_t.
65499         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65500         byte counts > SSIZE_MAX correctly.
65501         * lib/safe-write.h: New file.
65502         * lib/safe-write.c: New file.
65503         * lib/full-read.h: New file.
65504         * lib/full-read.c: New file.
65505         * lib/full-write.h: Assume C89. Add comments.
65506         * lib/full-write.c: Include safe-write.h.
65507         (full_write): Rewritten to use safe_write.
65508         Suggested by Jim Meyering and Paul Eggert.
65509
65510 2002-11-21  Jim Meyering  <jim@meyering.net>
65511
65512         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65513
65514         Merge in changes from the coreutils.
65515
65516         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65517         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65518         <stdint.h>.
65519         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65520         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65521         int.  Work more efficiently if X is the same width as uintmax_t.
65522         Do not compare X to -1, to avoid bogus compiler warning.
65523         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65524         Don't assume that f_frsize and f_bsize are the same type.
65525
65526         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65527         warning on FreeBSD.
65528
65529         * lib/makepath.c (make_path): Restore umask *before* creating the final
65530         component.
65531         (make_path): Minor reformatting.
65532
65533         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65534         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65535         HAVE_MALLOC/HAVE_REALLOC.
65536
65537         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65538         dummy ones.  At least on GNU/Linux systems, `auto' means something
65539         else.
65540         From Michael Stone.
65541
65542 2002-11-21  Bruno Haible  <bruno@clisp.org>
65543
65544         Remove case insensitive option matching.
65545         * lib/argmatch.h (argcasematch): Remove declaration.
65546         (ARGCASEMATCH): Remove macro.
65547         (__xargmatch_internal): Remove case_sensitive argument.
65548         (XARGMATCH): Update.
65549         (XARGCASEMATCH): Remove macro.
65550         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65551         case_sensitive argument.
65552         (argcasematch): Remove function.
65553         (__xargmatch_internal): Remove case_sensitive argument.
65554         (main): Use XARGMATCH instead of XARGCASEMATCH.
65555
65556         * lib/xmalloc.c: Change compile-time error message. Add comment about
65557         required autoconf version.
65558
65559 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65560
65561         Merge argmatch cleanups from Bison.  Assume C89.
65562
65563         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65564         Include stdlib.h, for EXIT_FAILURE.
65565         Always include <string.h>, since we assume C89.
65566         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65567         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65568         Include <stddef.h> instead, since it's all we need for size_t.
65569         (PARAMS): Remove.  All uses removed.
65570         (ARRAY_CARDINALITY): Do not bother to #undef.
65571         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65572         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65573         Remove unnecessary parentheses.
65574         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65575         Insert necessary parentheses.
65576         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65577         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65578
65579 2002-11-19  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65582         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65583
65584         * lib/mbswidth.h (PARAMS): Remove macro.
65585         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65586         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65587
65588         * lib/gcd.h (PARAMS): Remove macro.
65589         (gcd): Use ANSI C function declarations.
65590         * lib/gcd.c (gcd): Likewise.
65591
65592 2002-11-15  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/strcspn.c: Include <stddef.h>.
65595         (strcspn): Use ANSI C function declaration. Change return type to
65596         size_t. Use NULL.
65597         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65598         (strpbrk): Use NULL.
65599         * lib/strpbrk.h (PARAMS): Remove macro.
65600         (strpbrk): Use ANSI C function declaration.
65601         * lib/strstr.c: Don't include <sys/types.h>.
65602         * lib/strstr.h (PARAMS): Remove macro.
65603         (strstr): Use ANSI C function declarations.
65604
65605 2002-11-14  Karl Berry  <karl@gnu.org>
65606
65607         * config/mkinstalldirs: `do' on separate line, instead of
65608         `for var; do'.
65609
65610 2002-11-06  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65613         * lib/gcd.c (gcd): Likewise.
65614
65615 2002-11-05  Bruno Haible  <bruno@clisp.org>
65616
65617         * lib/gcd.h: New file, from gettext-0.11.5.
65618         * lib/gcd.c: New file, from gettext-0.11.5.
65619
65620 2002-11-05  Bruno Haible  <bruno@clisp.org>
65621
65622         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65623         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65624         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65625         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65626
65627         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65628         <libintl.h>.
65629         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65630         <libintl.h>.
65631
65632         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65633         * lib/human.c: Include gettext.h instead of <libintl.h>.
65634         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65635         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65636         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65637         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65638         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65639         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65640         (textdomain): Remove definition.
65641         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65642
65643         * lib/long-options.c: Remove include of <libintl.h> and definition of
65644         _.
65645         * lib/same.c: Remove include of <libintl.h> and definition of _.
65646
65647 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65648
65649         * lib/config.charset: A few additions for Solaris.
65650
65651 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65652
65653         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65654         * lib/localcharset.c (locale_charset): Declare as extern "C".
65655
65656 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65657
65658         * lib/config.charset: msdos in uk_UA uses CP1125.
65659
65660 2002-11-04  Bruno Haible  <bruno@clisp.org>
65661
65662         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65663         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65664         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65665         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65666         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65667
65668 2002-11-04  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/localcharset.c (locale_charset): Don't return an empty string.
65671
65672 2002-11-04  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65675         aliases.
65676
65677 2002-11-04  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/config.charset: Update for newest glibc. Add canonical names
65680         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65681
65682 2002-11-04  Bruno Haible  <bruno@clisp.org>
65683
65684         * lib/config.charset: Add support for NetBSD.
65685
65686 2002-11-04  Bruno Haible  <bruno@clisp.org>
65687
65688         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65689
65690 2002-11-01  Bruno Haible  <bruno@clisp.org>
65691
65692         * configure.in: Add AC_CONFIG_AUX_DIR call.
65693         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65694         test/Makefile.
65695         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65696
65697 2002-09-28  Karl Berry  <karl@gnu.org>
65698
65699         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65700         installed automake until the next release, since changes have been
65701         made.
65702
65703 2002-09-25  Karl Berry  <karl@gnu.org>
65704
65705         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65706         * lib/getopt*: copy from libc/posix.
65707         * lib/gettext.h: copy from gettext.
65708         * lib/.cppi-disable: add strdup.c, gettext.h.
65709
65710 2002-09-25  Karl Berry  <karl@gnu.org>
65711
65712         * config/srclist.txt: enable gettext.h check.
65713         * config/config.{guess,sub}: update from prep.
65714         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65715                 from automake 1.6.3.
65716         See srclist*.
65717
65718 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65719
65720         * regex.c (PATFETCH): Remove the translating fetch.
65721         (PATFETCH_RAW): Rename to PATFETCH.
65722         (set_image_of_range): New fun.
65723         (SET_RANGE_TABLE_WORK_AREA): Use it.
65724         (regex_compile): Don't translate the pattern chars so eagerly.
65725         Only do it when inserting an `exactn' bytecode or when handling
65726         a char-range.
65727         (mutually_exclusive_p): Avoid empty statement.
65728
65729 2002-07-06  Jim Meyering  <meyering@lucent.com>
65730
65731         * m4/README: Don't mention Makefile.am.in.
65732         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65733
65734 2002-07-01  Jim Meyering  <meyering@lucent.com>
65735
65736         * lib/c-stack.c: Include sys/time.h.
65737         From Volker Borchert.
65738
65739 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65740
65741         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65742
65743 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65744
65745         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65746         New macro.  Use it uniformly instead of
65747         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65748         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65749         reported by Vin Shelton.
65750
65751 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65752
65753         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65754         Do not assume SA_SIGINFO behavior.
65755         Bug reported by Jim Meyering on NetBSD 1.5.2.
65756
65757 2002-06-22  Jim Meyering  <meyering@lucent.com>
65758
65759         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65761
65762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65763         now that configure.ac uses AC_GNU_SOURCE.
65764         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65765         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65766
65767         Update to latest tools.  Suggestions from Paul Eggert.
65768         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65769         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65770         * m4/fnmatch.m4: Likewise.
65771         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65772         to AC_HEADER_STDBOOL
65773
65774 2002-06-22  Jim Meyering  <meyering@lucent.com>
65775
65776         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65777         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65778
65779 2002-06-22  Jim Meyering  <meyering@lucent.com>
65780
65781         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65782
65783         * lib/exitfail.c, exitfail.h: Likewise.
65784         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65785
65786         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65787         of fnmatch.h.
65788         (EXTRA_DIST): Add fnmatch_loop.c.
65789         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65790
65791         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65792         * lib/fnmatch.c: Update from diffutils-2.8.2.
65793         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65794         * lib/fnmatch.h: Remove file.
65795
65796 2002-06-21  Jim Meyering  <meyering@lucent.com>
65797
65798         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65799         * m4/mbrtowc.m4: Likewise.
65800
65801         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65802         * m4/mbswidth.m4: Reflect name change:
65803         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65804         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65805
65806         * m4/lib-link.m4: Update from gettext-0.11.2.
65807         * m4/gettext.m4: Likewise.
65808
65809         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65810         From Alfred M. Szmidt.
65811
65812 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65813
65814         * lib/file-type.h: Report an error if neither S_ISREG nor
65815         S_IFREG is defined, instead of using a test specific to glibc
65816         2.2.  This should be safe, since POSIX requires S_ISREG and
65817         Unix Version 7 had S_IFREG.  We don't need to check for
65818         <sys/types.h> since we don't use any symbols that it defines.
65819
65820 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65821
65822         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65823         $@-t, so that each temporary file name is unique and valid in the first
65824         8 characters, for operation under DOS.
65825
65826 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65827
65828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65829
65830 2002-06-15  Jim Meyering  <meyering@lucent.com>
65831
65832         Work even with DJGPP 2.03, which lacks support for symlinks.
65833         From Richard Dawe.
65834         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65835         is defined.
65836         * lib/lchown.c (S_ISLNK): Likewise.
65837
65838 2002-06-15  Jim Meyering  <meyering@lucent.com>
65839
65840         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65841         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65842         have been included before this file.
65843
65844 2002-06-14  Jim Meyering  <meyering@lucent.com>
65845
65846         * lib/file-type.h: Use the version from diffutils-2.8.2.
65847         * lib/file-type.c: Likewise.
65848
65849 2002-06-07  Jim Meyering  <meyering@lucent.com>
65850
65851         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65852         They're needed at least for NetBSD 1.5.2.
65853         ($statxfs_includes): Include those same headers.
65854         ($statxfs_includes): Include sys/vfs.h if available.
65855         ($statxfs_includes): Likewise for sys/statvfs.h.
65856         Check for the following members in both structs statfs and statvfs:
65857         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65858
65859 2002-06-01  Jim Meyering  <meyering@lucent.com>
65860
65861         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65862         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65863
65864 2002-05-28  Jim Meyering  <meyering@lucent.com>
65865
65866         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65867         Reported by Volker Borchert.
65868
65869 2002-05-27  Jim Meyering  <meyering@lucent.com>
65870
65871         Fix a problem seen only on nonconforming systems whereby ls.c's
65872         use of localtime, and then of gettimeofday would cause trouble:
65873         the localtime call used to initialize rpl_gettimeofday's save
65874         mechanism would clobber ls's current local time information so
65875         that in any long listing the first file would always be listed
65876         with date 1970-01-01.  Analysis by Volker Borchert.
65877
65878         * lib/gettimeofday.c (localtime): Undefine.
65879         (rpl_localtime): New function.
65880
65881 2002-05-27  Jim Meyering  <meyering@lucent.com>
65882
65883         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65884         localtime.
65885
65886         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65887         use the replacement function; it wouldn't resolve at link time.
65888         Reported by Volker Borchert.
65889
65890 2002-05-22  Jim Meyering  <meyering@lucent.com>
65891
65892         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65893         file-type.h.
65894         * lib/file-type.h: New file.
65895         * lib/file-type.c (file_type): New file/function.  Extracted from
65896         diffutils.
65897
65898 2002-04-30  Jim Meyering  <meyering@lucent.com>
65899
65900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65901
65902 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65903
65904         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65905
65906 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65907
65908         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65909         Do not check for alloca.h (no longer used) or stdbool.h (was never
65910         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65911
65912 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65913
65914         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65915
65916 2002-04-29  Jim Meyering  <meyering@lucent.com>
65917
65918         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65919         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65920         Use AC_FUNC_STRNLEN here instead.
65921
65922         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65923         With autoconf-2.53a, it's part of AC_PROG_CC.
65924
65925 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65926
65927         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65928         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65929
65930 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65931
65932         * lib/sig2str.h, lib/sig2str.c: New files.
65933         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65934
65935 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65936
65937         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65938         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65939         of 127, since 64 is the largest conceivable number for ancient
65940         nonstandard hosts.
65941         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65942
65943 2002-04-28  Jim Meyering  <meyering@lucent.com>
65944
65945         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65946
65947 2002-04-24  Jim Meyering  <meyering@lucent.com>
65948
65949         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65950         (jm_PREREQ): Use it.
65951
65952         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65953         mach/mach.h fcntl.h.
65954         Check for this function: setlocale.
65955
65956 2002-04-24  Jim Meyering  <meyering@lucent.com>
65957
65958         * lib/gettext.h: New file, from Gettext.
65959         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65960         (libfetish_a_SOURCES): Add gettext.h.
65961
65962 2002-04-16  Jim Meyering  <meyering@lucent.com>
65963
65964         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65965         ut_pid, ut_id, ut_exit.
65966
65967 2002-04-16  Jim Meyering  <meyering@lucent.com>
65968
65969         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65970         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65971         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65972
65973 2002-04-12  Jim Meyering  <meyering@lucent.com>
65974
65975         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65976         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65977         existence of the getmntinfo function.  Needed for Darwin 5.3.
65978
65979         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65980         This is necessary at least on Darwin 5.3.
65981
65982         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65983         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65984         strnlen.o in the library, and that makes some versions of ranlib
65985         object.
65986
65987 2002-04-12  Jim Meyering  <meyering@lucent.com>
65988
65989         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65990
65991 2002-04-09  Jim Meyering  <meyering@lucent.com>
65992
65993         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65994         to be more precise.  Rather than saying we're checking whether the
65995         function `works', say what we're testing.
65996         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65997         Reported by Bruno Haible.
65998
65999 2002-03-10  Jim Meyering  <meyering@lucent.com>
66000
66001         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66002         Suggestion from Santiago Vila.
66003
66004 2002-03-08  Jim Meyering  <meyering@lucent.com>
66005
66006         * lib/rename.c: Mention that this wrapper is needed also on
66007         mips-dec-ultrix4.4 systems.
66008
66009 2002-03-02  Jim Meyering  <meyering@lucent.com>
66010
66011         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66012         not HAVE_CLOCK_SETTIME.
66013
66014 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66015
66016         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66017         Check for clock_settime.
66018
66019 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66020
66021         * lib/nanosleep.h: Rename to....
66022         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66023
66024         * lib/gettime.c: New file.
66025         * lib/settime.c: New file.
66026         * lib/stime.c: Remove.
66027
66028         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66029         timespec.h.  Remove nanosleep.h.
66030
66031 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66032
66033         * m4/acl.m4: New file.
66034         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66035         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66036
66037 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66038
66039         * lib/acl.c, lib/acl.h: New files.
66040         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66041
66042 2002-02-24  Jim Meyering  <meyering@lucent.com>
66043
66044         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66045         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66046         cause trouble.  Reported by Nelson Beebe.
66047
66048 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66049
66050         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66051         compilers that don't know that xalloc_die never returns.
66052
66053 2002-02-20  Jim Meyering  <meyering@lucent.com>
66054
66055         * lib/getdate.c: Regenerate using bison-1.33.
66056
66057 2002-02-17  Jim Meyering  <meyering@lucent.com>
66058
66059         * config/config.guess (main): Don't use `head -1'; it's no longer
66060         portable. Use `sed 1q' instead.
66061
66062 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66063
66064         * m4/codeset.m4: Upgrade to gettext-0.11.
66065         * m4/gettext.m4: Upgrade to gettext-0.11.
66066         * m4/glibc21.m4: Upgrade to gettext-0.11.
66067         * m4/iconv.m4: Upgrade to gettext-0.11.
66068         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66069         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66070         * m4/lib-ld.m4: New file, from gettext-0.11.
66071         * m4/lib-link.m4: New file, from gettext-0.11.
66072         * m4/lib-prefix.m4: New file, from gettext-0.11.
66073         * m4/progtest.m4: Upgrade to gettext-0.11.
66074
66075 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66076
66077         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66078         (jm_PREREQ): Use it.
66079
66080 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66081
66082         * lib/posixver.c, lib/posixver.h: New files.
66083         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66084
66085 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66086             Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66089         (fwrite_success_callback): New declaration.
66090         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66091         print_unicode_char. Call failure callback instead of error.
66092         (fwrite_success_callback): New function.
66093         (exit_failure_callback): New function.
66094         (fallback_failure_callback): New function.
66095         (print_unicode_char): Call unicode_to_mb.
66096
66097 2002-01-26  Jim Meyering  <meyering@lucent.com>
66098
66099         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66100         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66101
66102 2002-01-26  Jim Meyering  <meyering@lucent.com>
66103
66104         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66105
66106 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66107
66108         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66109
66110 2002-01-22  Jim Meyering  <meyering@lucent.com>
66111
66112         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66113         Otherwise, some versions of automake would omit the rule that makes
66114         Makefile from Makefile.in.
66115
66116 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66117
66118         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66119         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66120         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66121         (memcoll): Set errno to zero if there is no error.
66122
66123         * lib/quotearg.c (quotearg_buffer_restyled):
66124         Fix bug with quoting buffers containing NUL when backslashing escapes.
66125         This bug was exposed by the other changes in this patch.
66126         (quotearg_n_options): New arg ARGSIZE.
66127         All callers changed.
66128         (quoting_options_from_style): New function.
66129         (quotearg_n_style): Use it.
66130         (quotearg_n_style_mem): New function.
66131
66132         * lib/quotearg.h (quotearg_n_style_mem): New function.
66133
66134 2002-01-19  Jim Meyering  <meyering@lucent.com>
66135
66136         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66137         Remove useless quotes: DF_PROG="df".
66138         * m4/strnlen.m4: New file.
66139
66140 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66141
66142         * lib/backupfile.c (ISDIGIT): Comment fix.
66143         * lib/getdate.y (ISDIGIT): Likewise.
66144         * lib/posixtm.c (ISDIGIT, year): Likewise.
66145         * lib/strverscmp.c (ISDIGIT): Likewise.
66146         * lib/userspec.c (ISDIGIT): Likewise.
66147
66148 2002-01-16  Jim Meyering  <meyering@lucent.com>
66149
66150         * lib/getdate.y: Add three semicolons, each just before a closing
66151         brace. Bison (as of version 1.31) no longer papers over that mistake.
66152
66153 2002-01-05  Jim Meyering  <meyering@lucent.com>
66154
66155         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66156
66157 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66158
66159         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66160         not silently exit merely because the output buffer happens to
66161         have nothing pending.
66162
66163 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66164
66165         See the big note in ../ChangeLog.
66166         * lib/human.c (suffixes): Prefer K to k for 1024.
66167         (generate_suffix_backwards): New function.
66168         (human_readable_inexact): Use it.
66169         * lib/xstrtol.c (__xstrtol): If there is no number but there
66170         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66171         Accept 'K' as well as 'k'.
66172
66173 2001-12-15  Jim Meyering  <meyering@lucent.com>
66174
66175         * lib/regex.h (__restrict_arr): Update from libc.
66176
66177         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66178         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66179         (STREQ): Define.
66180
66181 2001-12-14  Jim Meyering  <meyering@lucent.com>
66182
66183         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66184         Suggestion from Bruno Haible.
66185
66186 2001-12-10  Jim Meyering  <meyering@lucent.com>
66187
66188         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66189         xrealloc, Instead, include "xalloc.h".
66190         (initbuffer): Don't cast xmalloc return value to char*.
66191         (readline): Reword comment.
66192         Don't cast xrealloc return value to char*
66193         Return NULL, not 0.
66194
66195 2001-12-09  Jim Meyering  <meyering@lucent.com>
66196
66197         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66198         about `signed and unsigned type in conditional expression'.
66199         * lib/posixtm.c (posix_time_parse): Likewise.
66200
66201         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66202
66203         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66204         to avoid a pedantic warning.
66205
66206         * lib/getstr.c: Don't include assert.h.
66207         (getstr): Remove warning-evoking assertions.
66208         Return -1 if offset parameter is out of bounds.
66209         Change the type of a local from int to size_t.
66210
66211         * lib/strftime.c (my_strftime_localtime_r): Include this function
66212         definition in the `#if ! HAVE_TM_GMTOFF' block.
66213
66214         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66215         Include xalloc.h instead.
66216
66217 2001-12-02  Jim Meyering  <meyering@lucent.com>
66218
66219         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66220         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66221         included.
66222
66223         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66224         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66225
66226 2001-11-30  Akim Demaille  <akim@epita.fr>
66227
66228         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66229         before being defined.
66230
66231 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66232
66233         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66234         First arg is int, not unsigned.
66235         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66236         (SIZE_MAX, UINT_MAX): New macros.
66237         (quotearg_n_options): Abort if N is negative.
66238         Avoid overflow check on hosts where size_t is 64 bits and int
66239         is 32 bits, as overflow is impossible there.
66240         Fix off-by-one typo that caused unnecessary reallocation.
66241
66242 2001-11-27  Jim Meyering  <meyering@lucent.com>
66243
66244         * lib/tempname.c: Merge with version from libc.
66245         * lib/regex.c: Likewise.
66246
66247         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66248         systems for which STDC_HEADERS is 0, it was not included, resulting in
66249         a warning about an integer-to-pointer conversion problem with getenv.
66250         Reported by Volker Borchert.
66251
66252 2001-11-26  Jim Meyering  <meyering@lucent.com>
66253
66254         * lib/gtod.h: Remove file.
66255         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66256         * lib/gettimeofday.c: Don't include gtod.h.
66257         (GTOD_init): Remove function.
66258         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66259         Suggestion from Volker Borchert.
66260
66261 2001-11-23  Jim Meyering  <meyering@lucent.com>
66262
66263         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66264         it.
66265         * lib/hash.c (struct hash_table): Define it here instead.
66266
66267 2001-11-22  Jim Meyering  <meyering@lucent.com>
66268
66269         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66270
66271 2001-11-20  Jim Meyering  <meyering@lucent.com>
66272
66273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66274         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66275
66276 2001-11-19  Jim Meyering  <meyering@lucent.com>
66277
66278         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66279         directory.  Use "conftestXXXXXX" as the template.
66280         Suggestion from Paul Eggert.
66281
66282         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66283         immediately, so the test doesn't mistakenly hit the max-open-files
66284         limit.
66285
66286 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66287
66288         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66289         (TEMPORARIES): New macro.
66290         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66291         removes an artificial limitation (e.g. HP-UX 10.20, where
66292         TMP_MAX is 17576).
66293
66294 2001-11-18  Jim Meyering  <meyering@lucent.com>
66295
66296         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66297
66298 2001-11-18  Jim Meyering  <meyering@lucent.com>
66299
66300         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66301         on SunOS 4.
66302
66303         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66304         files will be created before anything else.
66305
66306 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66307
66308         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66309         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66310
66311 2001-11-17  Jim Meyering  <meyering@lucent.com>
66312
66313         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66314         Prompted by a report from Bob Proulx.
66315
66316         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66317         Instead, require UTILS_FUNC_MKSTEMP.
66318
66319 2001-11-17  Jim Meyering  <meyering@lucent.com>
66320
66321         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66322         Now, that's done as part of AC_FUNC_STRTOD.
66323
66324 2001-11-17  Jim Meyering  <meyering@lucent.com>
66325
66326         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66327         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66328         rather than group writable.  Patch by Juan F. Codagnone.
66329
66330         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66331         xrealloc, Instead, include "xalloc.h".
66332
66333         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66334         Remove explicit declarations of xmalloc, xrealloc,
66335         and xstrdup.  Instead, include "xalloc.h".
66336
66337         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66338         unlocked-io.h.
66339         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66340         Likewise.
66341         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66342
66343         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66344         Reported by Padraig Brady.
66345
66346         * lib/mkstemp.c: #undef mkstemp.
66347         Include config.h.
66348         (rpl_mkstemp): Rename from mkstemp.
66349         Protoize.
66350
66351 2001-11-16  Jim Meyering  <meyering@lucent.com>
66352
66353         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66354         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66355         determine the amount of total physical memory, use pstat_getstatic.
66356         HPUX-11 doesn't define _SC_PHYS_PAGES.
66357         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66358         If sysconf couldn't be used to determine the amount of available
66359         physical memory, use both pstat_getstatic and pstat_getdynamic.
66360         Based on a patch from Bob Proulx.
66361
66362 2001-11-10  Jim Meyering  <meyering@lucent.com>
66363
66364         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66365         (jm_PREREQ): Use it.
66366
66367 2001-11-09  Jim Meyering  <meyering@lucent.com>
66368
66369         * m4/jm-macros.m4: Require autoconf-2.52f.
66370         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66371         Use these AC_-prefixed names, not the AM_-prefixed ones.
66372
66373         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66374
66375 2001-11-05  Jim Meyering  <meyering@lucent.com>
66376
66377         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66378
66379 2001-11-04  Jim Meyering  <meyering@lucent.com>
66380
66381         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66382         $DEFS.
66383
66384 2001-11-03  Jim Meyering  <meyering@lucent.com>
66385
66386         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66387         of AC_DEFUN.
66388
66389         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66390         know the name of the variable in the macro definition.
66391
66392 2001-11-03  Jim Meyering  <meyering@lucent.com>
66393
66394         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66395         in argmatch_to_argument call.
66396
66397         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66398         argument.
66399
66400         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66401         e.g., a fault due to an attempt to free a NULL pointer.
66402
66403 2001-11-01  Jim Meyering  <meyering@lucent.com>
66404
66405         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66406         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66407
66408 2001-11-01  Jim Meyering  <meyering@lucent.com>
66409
66410         * lib/dirfd.c, lib/dirfd.h: New files.
66411         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66412
66413         * lib/hash.c (hash_print) [TESTING]: Clean up.
66414
66415 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66416
66417         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66418         to avoid a warning if -Wall.
66419
66420 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66421
66422         * README: New file
66423         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66424         (per RMS's instructions, this is now the canonical source)
66425         * lgpl/, gpl/: New directories.
66426
66427 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66428
66429         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66430
66431 2001-10-21  Jim Meyering  <meyering@lucent.com>
66432
66433         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66434         this code would end up calling gettext even in packages built
66435         with --disable-nls.
66436         * lib/getopt.c (_): Likewise.
66437         * lib/regex.c (_): Likewise.
66438
66439 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66440
66441         * m4/error.m4 (jm_PREREQ_ERROR):
66442         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66443         AC_FUNC_STRERROR_R does that.
66444         Check for strerror declaration.
66445
66446         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66447         are supposed to have them these days.
66448         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66449         Merge changes from latest Autoconf CVS.
66450         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66451         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66452         POSIX decided to standardize on the int flavor of strerror_r.
66453
66454 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66455
66456         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66457         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66458         Use strerror_r that is only a macro, even if it is not a function.
66459         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66460         (private_strerror): Use prototypes, not old-style function definition.
66461         (print_errno_message): New function.
66462         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66463         char*-flavored one.
66464         (error_tail, error, error_at_line): Use it.
66465
66466 2001-10-11  Jim Meyering  <meyering@lucent.com>
66467
66468         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66469         and quote_n (1, ... to avoid clobbering a buffer.
66470
66471 2001-10-05  Jim Meyering  <meyering@lucent.com>
66472
66473         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66474         hash-pjw.h.
66475         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66476         * lib/hash-pjw.h: New file.
66477
66478 2001-09-30  Jim Meyering  <meyering@lucent.com>
66479
66480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66481         `struct fsstat' has the `f_fstypename' member.
66482         Use that to define FS_TYPE, which is now used to make
66483         the getfsstat link test tighter.
66484
66485 2001-09-30  Jim Meyering  <meyering@lucent.com>
66486
66487         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66488         Include <sys/ucred.h>, for Apple Darwin.
66489         Include sys/mount.h and sys/fs_types.h only if available.
66490         (FS_TYPE): Define.
66491         (read_filesystem_list): Use FS_TYPE.
66492
66493 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66494
66495         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66496         a boolean context.
66497
66498 2001-09-29  Jim Meyering  <meyering@lucent.com>
66499
66500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66501         [one-argument getmntent function]): Include stdio.h before mntent.h.
66502         SunOS 4.1.x needs it for the declaration of `FILE'.
66503         Patch by Volker Borchert.
66504
66505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66506         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66507         sys/fs_types.h, and make the link-test for getfsstat guard #include
66508         directives with appropriate #if HAVE_*_H tests so that we can
66509         detect getfsstat on Apple Darwin1.3.7 systems.
66510         Reported by Nelson Beebe.
66511         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66512
66513 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66514
66515         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66516         #defines strtoimax.  Also treat the other strto* functions
66517         like strtoimax.
66518
66519         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66520         Check for strtoul and strtoumax,
66521         as those declarations are made even in the signed case.
66522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66523         Likewise, for strtol and strtoimax.
66524
66525 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66526
66527         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66528         #defines strtoimax.  Also treat the other strto* functions
66529         like strtoimax.
66530
66531         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66532         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66533         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66534
66535 2001-09-26  Jim Meyering  <meyering@lucent.com>
66536
66537         Most macros in unlocked-io.h had the wrong number of arguments.
66538         * lib/gen-uio: New script.
66539         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66540         * lib/unlocked-io.hin: Remove file.
66541         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66542         rather than trying to embed it here.
66543         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66544         Reported by Padraig Brady.
66545
66546 2001-09-25  Volker Borchert  <bt@teknon.de>
66547
66548         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66549         `result'.
66550
66551 2001-09-24  Jim Meyering  <meyering@lucent.com>
66552
66553         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66554
66555 2001-09-23  Jim Meyering  <meyering@lucent.com>
66556
66557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66558         instead of the mere test for existence of mntent.h.  The latter
66559         would get a false-positive on AIX 3.4 systems.
66560         In the outer getmntent if-block, don't die if neither of the getmntent
66561         tests succeeds.  Instead, just fall through and continue with the
66562         remaining tests.
66563
66564 2001-09-23  Jim Meyering  <meyering@lucent.com>
66565
66566         * lib/mountlist.c: Remove useless parentheses in #if directives.
66567         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66568         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66569
66570 2001-09-22  Jim Meyering  <meyering@lucent.com>
66571
66572         * m4/gettext.m4: New file.  From gettext.
66573         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66574         * m4/progtest.m4: Likewise
66575         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66576         * m4/glibc21.m4: Likewise.
66577
66578         * m4/libintl.m4: Remove.  No longer used.
66579
66580 2001-09-22  Jim Meyering  <meyering@lucent.com>
66581
66582         * lib/localcharset.c: Update from latest gettext.
66583         * lib/config.charset: Likewise.
66584
66585 2001-09-20  Jim Meyering  <meyering@lucent.com>
66586
66587         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66588         strtoimax.
66589         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66590         strtoumax.
66591
66592 2001-09-20  Jim Meyering  <meyering@lucent.com>
66593
66594         * lib/xstrtol.c (strtoimax): Guard declaration with
66595         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66596         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66597         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66598         (strtoumax): Likewise, for completeness (it wasn't necessary).
66599
66600 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66601
66602         * lib/strtoimax.c (HAVE_LONG_LONG):
66603         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66604         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66605         to work around bug in IBM C compiler.
66606
66607 2001-09-17  Jim Meyering  <meyering@lucent.com>
66608
66609         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66610         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66611         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66612         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66613         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66614         whenever the right hand side need not be expanded by the shell.
66615
66616 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66617
66618         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66619         library.  It's not correct, as some older glibcs are buggy.
66620         fnmatch wasn't fixed until glibc 2.2.
66621
66622         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66623         special shell magic here.
66624
66625 2001-09-16  Jim Meyering  <meyering@lucent.com>
66626
66627         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66628         * m4/jm-macros.m4: Require it.
66629
66630 2001-09-16  Jim Meyering  <meyering@lucent.com>
66631
66632         * lib/mkdir.c: New file.
66633
66634 2001-09-15  Jim Meyering  <meyering@lucent.com>
66635
66636         * m4/jm-macros.m4: Check for help2man.
66637
66638 2001-09-11  Jim Meyering  <meyering@lucent.com>
66639
66640         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66641         The body, by Paul Eggert, was moved here from configure.in.
66642         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66643
66644 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66645
66646         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66647         (jm_PREREQ): Use it.
66648
66649 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66650
66651         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66652         Use ssize_t, not int, to store result of readlink.
66653         Check for ssize_t overflow as well as size_t overflow,
66654         as POSIX says the result of readlink is implementation-defined
66655         when ssize_t overflows.
66656         Remove unnecessary cast to char*.
66657         Use free+malloc instead of realloc, as the storage doesn't need
66658         to be preserved and it's clearer and can be more efficient that way.
66659         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66660         * lib/xreadlink.h (xreadlink): Update prototype.
66661
66662 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66663
66664         * lib/xgetcwd.c: Revert some of the previous change; intead,
66665         fix the HAVE_GETCWD_NULL code to behave more like the
66666         !HAVE_GETCWD_NULL code used to.
66667
66668         Include "xalloc.h".
66669         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66670         invoke xalloc_die.
66671
66672 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66673
66674         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66675         sys/param.h, as pathmax.h includes them.
66676
66677 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66678
66679         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66680         (jm_PREREQ_XGETCWD): New macro.
66681
66682         * m4/getcwd.m4: New file.
66683
66684 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66685
66686         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66687         like the HAVE_GETCWD_NULL code.
66688         Include pathmax.h if not HAVE_GETCWD.
66689         Do not include xalloc.h.
66690         (INITIAL_BUFFER_SIZE): New symbol.
66691         Do not use xmalloc / xrealloc, since the caller is responsible for
66692         handling errors.  Preserve errno around `free' during failure.
66693         Do not overrun buffer when using getwd.
66694
66695 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66696
66697         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66698         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66699         getcwd (NULL, 0).
66700
66701 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66702
66703         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66704         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66705         spotted by Jim Meyering.
66706
66707 2001-09-03  Jim Meyering  <meyering@lucent.com>
66708
66709         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66710         failure.
66711
66712 2001-09-02  Jim Meyering  <meyering@lucent.com>
66713
66714         * lib/error.c: Update from GNU libc.
66715
66716 2001-09-01  Jim Meyering  <meyering@lucent.com>
66717
66718         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66719         Used by df.
66720
66721 2001-09-01  Jim Meyering  <meyering@lucent.com>
66722
66723         * lib/xreadlink.c: New file.
66724         * lib/xreadlink.h: New file.
66725         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66726         xreadlink.h.
66727
66728         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66729         doesn't conflict with sparc Solaris 7's definition in
66730         /usr/include/sys/int_types.h.
66731
66732         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66733         files.
66734         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66735         and strncasecmp as r-values.  Unixware didn't have declarations.
66736
66737 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66738
66739         * lib/xstrtol.h: Add copyright notice.
66740         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66741         LONGINT_INVALID_SUFFIX_CHAR.
66742
66743 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66744
66745         * lib/xstrtol.c (strtoimax): New decl.
66746
66747 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66748
66749         * lib/xgetcwd.c: Don't include pathmax.h.
66750         Include stdlib.h and unistd.h if available.
66751         Include xalloc.h.
66752         (xmalloc, xstrdup, free): Remove decls.
66753         (xgetcwd): Don't assume sizes fit in unsigned.
66754         Check for overflow when computing sizes.
66755         Simplify reallocation code.
66756
66757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66758
66759         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66760         a directory's st_size can have an arbitrary value, so the old
66761         usage could waste an arbitrary amount of memory.  All uses
66762         changed.
66763         * lib/savedir.h: Update prototype.
66764
66765 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66766
66767         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66768
66769         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66770         old strtoimax.c.
66771
66772         Also, make the following further changes to make this file's
66773         configuration more similar to that of strtol.c:
66774         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66775         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66776         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66777         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66778         changed to signed values.
66779
66780         And make the following changes as well:
66781         Fix copyright notice, as 1999 was missing.
66782         (verify): New macro.
66783         (strtoimax): Check sizes at compile-time, not run-time.
66784         Prefer strtol to strtoll if both work.
66785         (main): Remove; it was not that useful and was a pain to maintain.
66786
66787         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66788
66789 2001-08-31  Jim Meyering  <meyering@lucent.com>
66790
66791         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66792         Use an initial, malloc'd, buffer of length 128 rather than
66793         a statically allocated one of length 1024.
66794
66795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66796
66797         Simplify code, partly by assuming autoconf 2.52 semantics.
66798
66799         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66800
66801         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66802         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66803         All uses removed.
66804         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66805         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66806         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66807         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66808         jm_AC_HEADER_INTTYPES_H.
66809         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66810
66811         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66812
66813         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66814         Quote first arg of AC_DEFUN.
66815         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66816         since they are needed to parse the include file even if we need
66817         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66819         but with opposite signedness.
66820
66821 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66822
66823         Merge 'exclude' changes from tar 1.13.22.
66824         This fixes one or two unlikely storage allocation overflow bugs,
66825         but doesn't change user-visible behavior otherwise.
66826
66827 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66828
66829         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66830         (jm_PREREQ_EXCLUDE): New macro.
66831
66832 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66833
66834         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66835         tm to be declared.
66836
66837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66838
66839         * lib/hash.c: Remove '2001' from copyright notice.
66840
66841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66842
66843         * lib/full-write.h: New file.
66844         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66845         * lib/full-write.c: Correct credits, as cccp.c no longer
66846         exists and anyway it was so heavily changed from the old cccp
66847         code as to be unrecognizable.  Include full-write.h.
66848         (full_write) Return size_t, with short writes meaning failure.
66849         All callers changed.  This fixes a bug with large buffers
66850         on 64-bit hosts.
66851         * lib/utime.c: Include full-write.h.
66852
66853 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66854
66855         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66856         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66857         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66858         Include if available.
66859         (<xalloc.h>): Include
66860         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66861         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66862         collide with FNM macros.
66863         (struct patopts): New struct.
66864         (struct exclude): Use it, as exclude patterns now come with options.
66865         (new_exclude): Support above changes.
66866         (new_exclude, add_exclude_file):
66867         Initial size must now be a power of two to simplify overflow checking.
66868         (free_exclude, fnmatch_no_wildcards): New function.
66869         (excluded_filename): No longer requires options arg, as the options
66870         are determined by add_exclude.  Now returns bool, not int.
66871         (excluded_filename, add_exclude):
66872         Add support for the fancy new exclusion options.
66873         (add_exclude, add_exclude_file): Now takes int options arg.
66874         Check for arithmetic overflow when computing sizes.
66875         (add_exclude_file): xrealloc might modify errno, so don't
66876         realloc until after errno might be used.
66877
66878         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66879         New macros.
66880         (free_exclude): New decl.
66881         (add_exclude, add_exclude_file): Now takes int options arg.
66882         (excluded_filename): No longer requires options arg, as the options
66883         are determined by add_exclude.  Now returns bool, not int.
66884
66885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66886
66887         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66888
66889 2001-08-27  Jim Meyering  <meyering@lucent.com>
66890
66891         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66892
66893         * lib/version-etc.c (N_): Remove definition.
66894         Revert most of last change.
66895         Instead, simply don't mark the `Copyright...' string for translation.
66896         Based on advice from Paul Eggert.
66897
66898         * lib/strtoxmax.c: Tweak comment.
66899
66900 2001-08-26  Jim Meyering  <meyering@lucent.com>
66901
66902         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66903
66904         * m4/xstrtoimax.m4: New file.
66905         * m4/xstrtoumax.m4: Add comments explaining why we
66906         AC_REPLACE_FUNCS(strtol).
66907
66908 2001-08-26  Jim Meyering  <meyering@lucent.com>
66909
66910         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66911         of copyright with `%s' so translators don't get an untranslated
66912         message in 2002.
66913         (COPYRIGHT_YEAR): Define.
66914         (version_etc): Use fprintf rather than fputs.
66915         Suggestion from Ulrich Drepper.
66916
66917         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66918
66919         * lib/strtoll.c: New file, from GNU libc.
66920         * lib/xstrtoimax.c: New file.
66921
66922         * lib/xstrtol.h: Add xstrtoimax.
66923         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66924         * lib/strtoimax.c: New file.  Likewise, but first define
66925         STRTOUXMAX_SIGNED.
66926
66927         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66928         ...
66929         * lib/strtoxmax.c: ... then renamed to this.
66930
66931 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66932
66933         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66934         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66935         (jm_AC_TYPE_INTMAX_T): New macro.
66936         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66937
66938         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66939
66940         * m4/longlong.m4: Renamed from ulonglong.m4.
66941         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66942         * m4/uintmax_t.m4: Removed.
66943
66944 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66945
66946         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66947         Port to Solaris 8, where 'sed' requires a space after the 'r'
66948         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66949         Redirect output to $tmp just once.
66950
66951 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66952
66953         * lib/addext.c (<errno.h>): Include.
66954         (errno): Declare if not defined.
66955         (addext): Work correctly when pathconf returns -1 and leaves
66956         errno alone because there is no limit.  Also, work even if
66957         pathconf returns a value greater than SIZE_MAX.
66958
66959 2001-08-12  Jim Meyering  <meyering@lucent.com>
66960
66961         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66962         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66963         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66964         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66965         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66966         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66967         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66968         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66969         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66970         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66971         utime.m4, utimes.m4, xstrtoumax.m4:
66972         Quote the first argument in each use of AC_DEFUN.
66973
66974 2001-08-12  Jim Meyering  <meyering@lucent.com>
66975
66976         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66977         Simply `return getcwd (NULL, 0);'.
66978         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66979         Use 1300 as initial value for length, not PATH_MAX.
66980
66981         * lib/pathmax.h: Clean up cpp syntax.
66982
66983 2001-08-12  Jim Meyering  <meyering@lucent.com>
66984
66985         * lib/gettimeofday.c: New file.
66986         * lib/gtod.h: New file.
66987         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66988
66989 2001-08-05  Jim Meyering  <meyering@lucent.com>
66990
66991         * m4/jm-macros.m4: Require autoconf-2.52.
66992
66993 2001-08-04  Jim Meyering  <meyering@lucent.com>
66994
66995         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66996         stmt, to get in sync with glibc.
66997
66998 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66999
67000         The following changes are from gettext 0.10.39 as maintained by
67001         Bruno Haible.
67002
67003         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67004         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67005         with inverted sense.  All uses changed.
67006
67007         * lib/mbswidth.c: Don't include <limits.h>.
67008         Include <stdlib.h> and <string.h> unconditionally.
67009         (iswcntrl, mbsinit, ISCNTRL): New macros.
67010         (mbsnwidth): Use K&R style function declarations.
67011         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67012         can optimize it when MB_CUR_MAX == 1.
67013         The width of control characters is zero, not 1.
67014
67015 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67016
67017         The following changes are from gettext 0.10.39 as maintained by
67018         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67019
67020         * m4/codeset.m4: Upgrade to serial AM1.
67021         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67022         all uses changed.  Quote first arg of AC_DEFUN.
67023         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67024
67025         * m4/iconv.m4: Upgrade to serial AM2.
67026         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67027         Add --with-libconv-prefix.
67028         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67029         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67030         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67031         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67032         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67033
67034         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67035         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67036         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67037         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67038         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67039         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67040         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67041         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67042         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67043
67044         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67045         string.h any more.
67046
67047         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67048         not the default value.
67049
67050         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67051         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67052         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67053         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67054         Also check for iswcntrl, used for wcwidth fallback.
67055         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67056         to Autoconf 2.13.
67057
67058 2001-08-03  Jim Meyering  <meyering@lucent.com>
67059
67060         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67061         as it was in the original.  Reported by Paul Eggert.
67062
67063 2001-07-16  Jim Meyering  <meyering@lucent.com>
67064
67065         * m4/gettimeofday.m4: New file.
67066         Prompted by a report from Bernhard Baehr.
67067
67068 2001-07-15  Jim Meyering  <meyering@lucent.com>
67069
67070         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67071         stuff. Now it's in ../Makefile.cfg.
67072
67073 2001-07-15  Jim Meyering  <meyering@lucent.com>
67074
67075         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67076         (BUILT_SOURCES): Add unlocked-io.h.
67077         (io_functions): Define.
67078         (unlocked-io.h): New rule.
67079         (DISTCLEANFILES): Add unlocked-io.h.
67080         (all-local): Depend on unlocked-io.h, to ensure it is created.
67081
67082         * lib/unlocked-io.hin: New file
67083
67084         * lib/regex.c: Update from glibc.
67085
67086 2001-07-05  Jim Meyering  <meyering@lucent.com>
67087
67088         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67089         recommendation.
67090         (libfetish_a_SOURCES): Put all .h files here instead.
67091         Remove a thus-exposed (better checks in automake) duplicate and
67092         two unnecessary .h files.
67093
67094 2001-07-04  Jim Meyering  <meyering@lucent.com>
67095
67096         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67097         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67098         distcheck failure.
67099
67100 2001-07-02  Jim Meyering  <meyering@lucent.com>
67101
67102         The following changes were prompted by suggestions from Bruno Haible.
67103
67104         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67105         is now generated.
67106         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67107         definition of EXTRA_DIST.
67108         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67109         ensure that the generated file is created/updated whenever the list
67110         of $(unlocked_functions) is changed.
67111         (jm-glibc-io.m4): New rule.
67112         (unlocked-io.h): New rule -- currently unused.
67113
67114 2001-06-24  Jim Meyering  <meyering@lucent.com>
67115
67116         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67117         unmatched right bracket, rather than kludging it with an extra,
67118         falsely-matching quote in a comment.  Patch by Akim Demaille.
67119
67120 2001-06-11  Jim Meyering  <meyering@lucent.com>
67121
67122         * lib/regex.c: Update from GNU libc.
67123
67124 2001-05-27  Jim Meyering  <meyering@lucent.com>
67125
67126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67127         Check for ut_type in struct utmp.
67128
67129 2001-05-27  Jim Meyering  <meyering@lucent.com>
67130
67131         * lib/readutmp.h (UT_TYPE): Define.
67132
67133 2001-05-24  Jim Meyering  <meyering@lucent.com>
67134
67135         * lib/argmatch.c: Include "quote.h".
67136         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67137         quote function.  Reported by Göran Uddeborg.
67138
67139 2001-05-22  Jim Meyering  <meyering@lucent.com>
67140
67141         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67142         now that we use the package-supplied version unconditionally.
67143         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67144
67145 2001-05-21  Jim Meyering  <meyering@lucent.com>
67146
67147         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67148         shell syntax errors.
67149
67150 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67151
67152         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67153
67154 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67155
67156         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67157         Don't bother to check library strftime, since
67158         we'll be using our own my_strftime function anyway.
67159         Define my_strftime instead of strftime.
67160
67161 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67162
67163         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67164         which is not yet declared.
67165
67166 2001-05-15  Jim Meyering  <meyering@lucent.com>
67167
67168         * m4/regex.m4: Use proper quoting so brackets appear in the test
67169         program.
67170         Reported by, and with help from, Bruno Haible.
67171
67172 2001-05-13  Jim Meyering  <meyering@lucent.com>
67173
67174         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67175         undefined.
67176
67177 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67178
67179         dirname code cleanup.  base_name now behaves more compatibly
67180         with POSIX basename when given file names that have trailing
67181         slashes, and similarly for dir_name.  Add new primitives
67182         base_len and dir_len.  Put the directory-name-related decls
67183         into dirname.h.
67184
67185         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67186         * lib/backupfile.c (base_name): Likewise.
67187         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67188         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67189         * lib/makepath.c (strip_trailing_slashes): Likewise.
67190         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67191         ISSLASH): Likewise.
67192         * lib/rename.c (strip_trailing_slashes): Likewise.
67193         * lib/same.c (base_name): Likewise.
67194         * lib/stripslash.c (ISSLASH): Likewise.
67195
67196         * lib/addext.c: Include <dirname.h> after size_t is defined.
67197         * lib/backupfile.c: Likewise.
67198
67199         * lib/addext.c (addext): Use base_len to trim redundant
67200         trailing slashes instead of doing it ourselves.
67201         But do not trim the last slash if it is not redundant.
67202
67203         * lib/backupfile.c (find_backup_file_name,
67204         max_backup_version): Use base_len instead of rolling it ourselves.
67205         Handle the case of "" and (on DOS) "C:" correctly.
67206
67207         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67208         needed. Include <string.h>, <dirname.h>.
67209         (base_name): Allow file names ending in slashes, other than names
67210         that are all slashes.  In this case, return the basename followed
67211         by the slashes.  This is more general, and can be used in places
67212         where the original base_name purposely had an assertion failure.
67213         (base_len): New function.
67214
67215         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67216         Do not include <assert.h>; no longer needed.
67217         Include xalloc.h.
67218         (memrchr): Remove decl.
67219         (dir_name_r): Remove.
67220         (dir_len): Renamed from dirlen.  All callers changed.
67221         Rewrite in terms of base_name, for simplicity and consistency.
67222         (dir_name): Never return NULL.  All callers changed.
67223         Do not include <stdlib.h> in test program; no longer needed.
67224         return 0; is fine for test program.
67225
67226         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67227         New macros.
67228         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67229
67230         * lib/path-concat.c (path_concat): Use base_len to compute
67231         base length, not strlen; this means we cannot rely on memcpy
67232         to null-terminate.
67233
67234         * lib/same.c (STREQ): Remove.
67235         (same_name): Handle the case where the basename ends in trailing '/'.
67236
67237         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67238         a slash was stripped.  Do not strip the last slash after a
67239         file system prefix.
67240
67241 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67242
67243         * lib/Makefile.am (libfetish_a_SOURCES):
67244         Add strftime.c, since we now compile it on all hosts.
67245
67246         * lib/strftime.c (my_strftime):
67247         Define to nstrftime if emacs, but only if my_strftime is not defined.
67248         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67249         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67250         Add one more extra argument: a nanoseconds value.
67251         All uses changed.
67252         (ns): New macro.
67253         (my_strftime function): Add %N format.
67254         (emacs_strftimeu): Renamed from emacs_strftime,
67255         with extra ut argument.
67256
67257 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67258
67259         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67260
67261 2001-04-21  Jim Meyering  <meyering@lucent.com>
67262
67263         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67264         doesn't interfere.
67265
67266 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67267
67268         * m4/ftruncate.m4: Check for chsize.
67269         Link with ftruncate.o unconditionally if ftruncate is missing.
67270         This was required when cross-compiling to i586-mingw32msvc.
67271
67272 2001-04-08  Jim Meyering  <meyering@lucent.com>
67273
67274         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67275         recomputed; that's necessary when the offset spans a DST transition.
67276         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67277
67278 2001-04-02  Jim Meyering  <meyering@lucent.com>
67279
67280         * lib/regex.h, regex.c: Update from GNU libc.
67281
67282 2001-03-24  Jim Meyering  <meyering@lucent.com>
67283
67284         * m4/jm-macros.m4: Require autoconf-2.49d.
67285
67286 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67287
67288         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67289
67290 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67291
67292         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67293
67294 2001-03-17  Jim Meyering  <meyering@lucent.com>
67295
67296         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67297         now that the version in autoconf is equivalent.
67298         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67299
67300         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67301         Suggestion from Akim Demaille.
67302
67303         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67304         (jm_PREREQ_TEMPNAME): New function.
67305
67306 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67307
67308         * lib/tempname.c (uint64_t): Define to uintmax_t if
67309         not defined, and if UINT64_MAX is not defined.
67310         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67311         Reported by John David Anglin.
67312
67313 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67314
67315         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67316         resolve alias if codeset is empty.
67317         * lib/config.charset (BeOS): Use wildcard syntax.
67318
67319 2001-03-13  Jim Meyering  <meyering@lucent.com>
67320
67321         * lib/path-concat.c (path_concat)
67322         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67323         concatenating e.g., `C:' and `foo'.
67324         From Bruno Haible.
67325
67326 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67327
67328         * lib/localcharset.c (locale_charset): Don't use
67329         setlocale(LC_CTYPE,NULL). Don't return NULL.
67330         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67331
67332 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67333
67334         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67335         support for DOS/DJGPP.
67336
67337 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67338
67339         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67340         lacks mkstemp.  Compile our own tempname.c if we compile our own
67341         mkstemp.c, as mkstemp relies on tempname.
67342
67343 2001-03-01  Jim Meyering  <meyering@lucent.com>
67344
67345         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67346         AH_VERBATIM really does output its argument verbatim.
67347
67348 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67349
67350         * lib/Makefile.am (libfetish_a_SOURCES):
67351         Add dup-safer.c, fopen-safer.c.
67352         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67353
67354         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67355         * lib/unistd-safer.h: New files.
67356
67357 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67358
67359         The mkstemp replacement is taken from glibc 2.2.2, with some
67360         portability fixes for use outside glibc, as follows:
67361
67362         * lib/tempname.c (struct_stat64): New macro.
67363         (direxists, __gen_tempname): Use it.
67364         This avoids a portability problem with Solaris 8.
67365
67366         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67367         (<stddef.h>, <stdint.h>, <string.h>):
67368         Include only if STDC_HEADERS || _LIBC.
67369         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67370         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67371         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67372         (__set_errno): Define this macro if <errno.h> doesn't.
67373         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67374         Define these macros if <stdio.h> doesn't.
67375         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67376         Define these macros if <sys/stat.h>
67377         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67378         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67379         __xstat64): Define if not _LIBC.
67380         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67381         (__gen_tempname): Invoke gettimeofday only if
67382         HAVE_GETTIMEOFDAY || _LIBC;
67383         otherwise, fall back on plain "time".
67384         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67385
67386         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67387
67388         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67389
67390 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67391
67392         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67393
67394 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67395
67396         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67397         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67398         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67399         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67400
67401 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67402
67403         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67404         Remove workaround macros for hosts that have mbrtowc but not
67405         mbstate_t, as we now insist on proper declarations for both
67406         before using mbrtowc.
67407
67408 2001-02-17  Jim Meyering  <meyering@lucent.com>
67409
67410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67411         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67412         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67413         UnixWare 7.1.1.
67414
67415         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67416         rather than AC_CACHE_VAL.
67417
67418 2001-02-17  Jim Meyering  <meyering@lucent.com>
67419
67420         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67421         around included file name.
67422
67423         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67424
67425         * lib/strftime.c: Update from GNU libc (the only changes were to
67426         comments).
67427
67428 2001-02-17  Jim Meyering  <meyering@lucent.com>
67429
67430         * lib/regex.c: Update from libc.
67431
67432 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67433
67434         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67435         clash.
67436
67437 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67438
67439         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67440         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67441         Reported by Mark Hounschell via Paul Eggert.
67442
67443 2001-02-07  Jim Meyering  <meyering@lucent.com>
67444
67445         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67446
67447 2001-02-05  Jim Meyering  <meyering@lucent.com>
67448
67449         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67450         it includes the patch required for `large file' support with at least
67451         HP-UX's 10.20 /bin/cc.
67452
67453 2001-02-03  Jim Meyering  <meyering@lucent.com>
67454
67455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67456         AS_IF, now that it works once again (mysteriously).
67457         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67458
67459 2001-01-30  Jim Meyering  <meyering@lucent.com>
67460
67461         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67462         * m4/chown.m4: Rename conftestchown to conftest.chown.
67463         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67464         s/conftestdir2/conftest.d2/.
67465         * m4/utimes.m4: s/conftestdata/conftest.data/
67466         Inspired by Pavel Roskin's change in autoconf.
67467
67468 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67469
67470         * lib/config.charset: Update for FreeBSD 4.2.
67471
67472 2001-01-27  Jim Meyering  <meyering@lucent.com>
67473
67474         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67475         a use of AS_IF.
67476         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67477
67478 2001-01-26  Jim Meyering  <meyering@lucent.com>
67479
67480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67481         quotearg.c includes it.
67482
67483 2001-01-26  Jim Meyering  <meyering@lucent.com>
67484
67485         * lib/quotearg.c: Include stddef.h.
67486         * lib/quote.c: Include stddef.h.
67487         Reported by Axel Kittenberger.
67488
67489         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67490         line in double quotes so that it evokes a better diagnostic.
67491         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67492         Reported by Axel Kittenberger.
67493
67494 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67495
67496         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67497         as if it was a `charset'.
67498
67499 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67500
67501         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67502         has const.
67503
67504 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67505
67506         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67507         to avoid a warning.  Add back 'const' to inptr.
67508
67509 2001-01-20  Jim Meyering  <meyering@lucent.com>
67510
67511         Be sure that headers are checked before used in code compiled
67512         for the type checks.
67513         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67514         In place of that, invoke jm_CHECK_ALL_TYPES.
67515         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67516         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67517         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67518         The check for ssize_t was mistakenly run before the test for unistd.h.
67519
67520         The configure-time check for stdbool.h was missing.
67521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67522         (jm_PREREQ_HASH): New function.
67523
67524 2001-01-17  Jim Meyering  <meyering@lucent.com>
67525
67526         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67527         for autoconf-2.49c.
67528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67529
67530 2001-01-16  Jim Meyering  <meyering@lucent.com>
67531
67532         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67533         From Bruno Haible.
67534
67535 2001-01-14  Jim Meyering  <meyering@lucent.com>
67536
67537         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67538         foo and bar.  Create conftestdir/ in the script, not in the C code.
67539         Remove directories in the script, not in the C code.
67540         Remove conftestdir{,2} before trying to create the directory.
67541         Make the entire configure script fail if the mkdir fails.
67542
67543 2001-01-14  Jim Meyering  <meyering@lucent.com>
67544
67545         * lib/rename.c: New file.  From Volker Borchert.
67546         Include stdlib.h, string.h or strings.h, and xalloc.h.
67547         Use strip_trailing_slashes rather than open-coding it.
67548
67549 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67550
67551         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67552
67553 2001-01-03  Jim Meyering  <meyering@lucent.com>
67554
67555         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67556         of local `inptr' to avoid warning with some system declarations of
67557         iconv.
67558
67559 2001-01-02  Volker Borchert  <bt@teknon.de>
67560
67561         * m4/rename.m4: New file.
67562         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67563
67564 2001-01-01  Jim Meyering  <meyering@lucent.com>
67565
67566         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67567         even on systems with utmpx.h.  It's necessary for the declaration of
67568         utmp's ut_user member.  Reported by Andreas Jaeger.
67569
67570         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67571         available. They are required for the declarations of getgrgid and
67572         getpwuid resp.
67573         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67574         Reported by Andreas Jaeger.
67575
67576 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67577
67578         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67579         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67580         so `make install' also works in VPATH builds.
67581
67582 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67583
67584         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67585         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67586         can be used in subdirectories.
67587
67588 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67589
67590         * lib/modechange.c: Do not assume that mode_t uses the
67591         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67592         the other-execute bit of FOO even if S_IXOTH != 1.
67593
67594         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67595         WOTH, XOTH, ALLM): New macros.
67596         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67597          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67598         Use them.
67599         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67600         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67601         (mode_compile):
67602         No need to use uintmax_t; unsigned long is long enough.
67603         Don't bother to get suffix since we don't use it.
67604
67605 2000-12-26  Jim Meyering  <meyering@lucent.com>
67606
67607         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67608         better with autoheader.
67609
67610 2000-12-24  Jim Meyering  <meyering@lucent.com>
67611
67612         * lib/hash.c (is_prime): Return explicit boolean values.
67613         (hash_get_first): Return NULL to appease Irix5.6's 89.
67614         Reported by Nelson Beebe.
67615
67616 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67617
67618         * lib/localcharset.c (locale_charset): Add support for Win32.
67619
67620 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67621
67622         * lib/physmem.h, lib/physmem.c: New files.
67623
67624         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67625         (noinst_HEADERS): Add physmem.h.
67626
67627         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67628         't' for compatibility with Solaris 8 sort.
67629
67630 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67631
67632         * lib/config.charset: Add support for BeOS.
67633
67634 2000-12-17  Jim Meyering  <meyering@lucent.com>
67635
67636         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67637         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67638
67639 2000-12-16  Jim Meyering  <meyering@lucent.com>
67640
67641         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67642         N and M) would have treated it like `chown N:N FILE'.
67643
67644         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67645
67646 2000-12-16  Jim Meyering  <meyering@lucent.com>
67647
67648         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67649         SHELLS_FILE to a file name that's useful on djgpp systems.
67650         Include stdlib.h.
67651         (ADDITIONAL_DEFAULT_SHELLS): Define.
67652         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67653         Based mostly on a patch from Prashant TR.
67654
67655 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67656
67657         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67658         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67659         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67660
67661 2000-12-08  Andreas Schwab  <schwab@suse.de>
67662
67663         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67664         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67665
67666 2000-12-07  Jim Meyering  <meyering@lucent.com>
67667
67668         * lib/stripslash.c (ISSLASH): Define.
67669         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67670         `/'.
67671         From Prashant TR.
67672
67673         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67674         (dir_name_r): Declare this function as static.
67675         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67676         manifest itself on a name containing a mix of slashes and
67677         backslashes.
67678         Make this function work with names starting with a DOS-style
67679         drive letter and colon prefix.
67680         (dir_name): Append `.' if necessary.
67681         Based mostly on patches from Prashant TR and Eli Zaretskii.
67682
67683         * lib/dirname.h (dir_name_r): Remove prototype.
67684
67685 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67686
67687         * m4/off_t-format.m4: Remove this file.
67688         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67689
67690 2000-12-06  Jim Meyering  <meyering@lucent.com>
67691
67692         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67693         replacement strtoull, we may well need the replacement strtoul, too.
67694         Check for declarations of strtoul and strtoull.
67695         Check for strtol.  Mainly as a cue to cause automake to include
67696         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67697         Check for limits.h -- strtol.c needs it.
67698
67699 2000-12-05  Jim Meyering  <meyering@lucent.com>
67700
67701         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67702
67703 2000-12-04  Jim Meyering  <meyering@lucent.com>
67704
67705         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67706         Also include memory.h, stdlib.h, unistd.h if appropriate.
67707         Reported by Andreas Jaeger (conflicting declaration of malloc).
67708
67709 2000-12-02  Jim Meyering  <meyering@lucent.com>
67710
67711         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67712         * m4/jm-macros.m4 (jm_MACROS): require it.
67713
67714 2000-12-02  Jim Meyering  <meyering@lucent.com>
67715
67716         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67717
67718 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67719
67720         * lib/memrchr.c: Include <config.h> before any system include file.
67721
67722 2000-11-30  Jim Meyering  <meyering@lucent.com>
67723
67724         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67725
67726 2000-11-30  Jim Meyering  <meyering@lucent.com>
67727
67728         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67729
67730 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67731
67732         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67733
67734 2000-11-26  Jim Meyering  <meyering@lucent.com>
67735
67736         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67737
67738 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67739
67740         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67741         size of (size_t) -1; it's not portable.
67742
67743 2000-11-17  Jim Meyering  <meyering@lucent.com>
67744
67745         * lib/strstr.c: Update from GNU libc.
67746
67747 2000-11-17  Akim Demaille  <akim@epita.fr>
67748
67749         * lib/obstack.h: Formatting changes.
67750         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67751         prevent type checking.
67752         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67753         cast the value to (void *): assigning a `foo *' to a `void *'
67754         variable is valid.
67755         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67756
67757 2000-11-16  Jim Meyering  <meyering@lucent.com>
67758
67759         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67760
67761 2000-11-11  Jim Meyering  <meyering@lucent.com>
67762
67763         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67764
67765 2000-11-10  Jim Meyering  <meyering@lucent.com>
67766
67767         * lib/obstack.h: Update from GNU libc.
67768         * lib/obstack.c: Likewise.
67769
67770 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67771
67772         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67773
67774 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67775
67776         * lib/getusershell.c (setusershell): Use rewind rather than
67777         fseek/fseeko, to avoid configuration hassles with fseeko.
67778         Don't bother opening SHELLS_FILE if shellstream is NULL;
67779         it's not necessary.
67780
67781 2000-11-05  Jim Meyering  <meyering@lucent.com>
67782
67783         * lib/makepath.h (make_dir): Declare.
67784         * lib/makepath.c (make_dir): Remove `static' attribute.
67785         Tweak a comment.
67786
67787 2000-11-04  Jim Meyering  <meyering@lucent.com>
67788
67789         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67790
67791 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67792
67793         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67794         last one in a bucket, advance to the next bucket.
67795
67796 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67797
67798         * lib/fnmatch.c: Do not comment out all the code if we are using
67799         the GNU C library, because in some cases we are replacing buggy
67800         code in the GNU C library itself.
67801
67802 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67803
67804         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67805         (regex_compile): Catch bogus \(\1\).
67806
67807 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67808
67809         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67810         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67811         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67812
67813 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67814
67815         * lib/error.h, getline.h, modechange.h:
67816         Remove "2000" from Copyright line, as the file hasn't been
67817         changed this year other than in the copyright notice.
67818
67819         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67820         was changed this year.
67821
67822 2000-10-29  Jim Meyering  <meyering@lucent.com>
67823
67824         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67825         renaming.
67826         * m4/ls-mntd-fs.m4: Likewise
67827
67828 2000-10-29  Jim Meyering  <meyering@lucent.com>
67829
67830         * lib/xstat.in: Fix grammar in comment.
67831
67832 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67833
67834         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67835         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67836         doesn't define __restrict_arr.
67837
67838 2000-10-28  Jim Meyering  <meyering@lucent.com>
67839
67840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67841         (jm_PREREQ_MEMCHR): New function.
67842
67843 2000-10-28  Jim Meyering  <meyering@lucent.com>
67844
67845         * lib/memchr.c: Update from libc.
67846         Adjust for portability:
67847         [HAVE_STDLIB_H]: Include stdlib.h.
67848         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67849         Undef __memchr, too.
67850         [!weak_alias]: Define __memchr to memchr.
67851
67852         * lib/regex.c: Update from libc.
67853         * lib/regex.h: Likewise.
67854         * lib/getopt1.c: Likewise.
67855         * lib/memcmp.c: Likewise.
67856
67857         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67858         Avoid using fseek, when possible -- it's broken by design.
67859         Patch by Ulrich Drepper.
67860
67861 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67862
67863         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67864         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67865         Giving in to popular pressure to shut up the compiler with casts.
67866
67867 2000-10-26  Jim Meyering  <meyering@lucent.com>
67868
67869         * lib/strftime.c: Update from libc.
67870
67871 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67872
67873         * regex.c: More `unsigned char' -> `re_char' changes.
67874         Also change several `int' into `re_wchar_t'.
67875         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67876         (PUSH_FAILURE_POINTER): Don't cast any more.
67877         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67878         We want GCC to complain, since this piece of code makes
67879         re_match non-reentrant, which *should* be fixed.
67880         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67881         (EXTEND_BUFFER): Use RETALLOC.
67882         (SET_LIST_BIT): Don't cast.
67883         (re_wchar_t): New type.
67884         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67885         that those two functions will always properly return.
67886         (IMMEDIATE_QUIT_CHECK): Cast to void.
67887         (analyse_first): Use recursion rather than an explicit stack.
67888         (re_compile_fastmap): Can't fail anymore.
67889         (re_search_2): Don't check re_compile_fastmap for failure.
67890         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67891         Now also sets the new value (passed in a new argument).
67892         (re_match_2_internal): Use it.
67893         Also, use a new var `reg' of type size_t when looping through regs
67894         rather than reuse the inappropriate `mcnt'.
67895
67896 2000-10-25  Jim Meyering  <meyering@lucent.com>
67897
67898         * lib/obstack.c: Update from libc.
67899
67900 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67901
67902         * regex.c (regex_compile): Change the way of handling a range from
67903         a char less than 256 to a char not less than 256.
67904
67905 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67906
67907         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67908         NT-Emacs only.
67909         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67910         so that re_search functions only quit when callers expect them to.
67911
67912 2000-10-23  Jim Meyering  <meyering@lucent.com>
67913
67914         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67915         wrong.  That set_locale call must not have any side effects.
67916         From Paul Eggert.
67917
67918 2000-10-22  Jim Meyering  <meyering@lucent.com>
67919
67920         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67921         [CYCLIC]: Remove now-unused definition.
67922
67923         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67924         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67925         Suggestion from Ulrich Drepper.
67926
67927 2000-10-21  Jim Meyering  <meyering@lucent.com>
67928
67929         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67930         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67932
67933 2000-10-21  Jim Meyering  <meyering@lucent.com>
67934
67935         * lib/dirname.c (memrchr): Declare if necessary.
67936         (dir_name): Remove the restriction that there be no
67937         trailing slashes.  Now, this code skips past them, effectively
67938         ignoring them.
67939         [TEST_DIRNAME] (main): New unit tests.
67940
67941         * lib/memrchr.c: New file from GNU libc.
67942         Undef __memrchr, too.
67943         [!weak_alias]: Define __memrchr to memrchr.
67944         Guard weak_alias use with `#ifdef weak_alias'.
67945
67946 2000-10-21  Jim Meyering  <meyering@lucent.com>
67947
67948         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67949         (dir_name): Use dir_name_r.
67950         * lib/dirname.h (dir_name_r): Declare it.
67951
67952 2000-10-17  Jim Meyering  <meyering@lucent.com>
67953
67954         * lib/quote.h (PARAMS): Define and use.
67955         Reported by Akim Demaille.
67956
67957         * lib/getopt.c: Update from libc.
67958
67959 2000-10-16  Jim Meyering  <meyering@lucent.com>
67960
67961         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67962         setlocale.
67963         From Jan Fedak.
67964
67965 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67966
67967         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67968
67969 2000-09-25  Jim Meyering  <meyering@lucent.com>
67970
67971         * lib/md5.h (rol): Define (from GnuPG).
67972
67973         * lib/sha.c: Give credit (GnuPG) where due.
67974         (M): Use rol rather than open-coding it.
67975         Add a FIXME comment.
67976
67977 2000-09-21  Jim Meyering  <meyering@lucent.com>
67978
67979         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67980         Reported by Michael Stone.
67981
67982 2000-09-20  Jim Meyering  <meyering@lucent.com>
67983
67984         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67985         (noinst_HEADERS): Add sha.h.
67986         Based on code from Scott G. Miller and from GnuPG.
67987
67988 2000-09-18  Jim Meyering  <meyering@lucent.com>
67989
67990         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67991         LIBS. Otherwise, everyone ends up linking with -lelf for some
67992         configurations.
67993         Reported by Mike Stone.
67994
67995 2000-09-15  Jim Meyering  <meyering@lucent.com>
67996
67997         * lib/regex.c: Update from libc.
67998
67999 2000-09-10  Jim Meyering  <meyering@lucent.com>
68000
68001         * lib/getopt.c (_getopt_internal): Update from glibc.
68002
68003 2000-09-09  Jim Meyering  <meyering@lucent.com>
68004
68005         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68006         think it should be used as a general replacement for isascii.
68007         * lib/fnmatch.c: Likewise.
68008         * lib/mbswidth.c: Likewise
68009         * lib/regex.c: Likewise.
68010
68011         Don't use atoi.
68012         * lib/userspec.c: Include sys/param.h and limits.h.
68013         Include xstrtol.h.
68014         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68015         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68016         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68017         UID, GID.  Check range.
68018
68019 2000-09-06  Jim Meyering  <meyering@lucent.com>
68020
68021         * lib/getopt.c (_getopt_internal): Update from glibc.
68022
68023 2000-08-30  Jim Meyering  <meyering@lucent.com>
68024
68025         * lib/strftime.c: Merge in changes from GNU libc.
68026
68027 2000-08-26  Jim Meyering  <meyering@lucent.com>
68028
68029         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68030         * m4/fpending.m4: New file.
68031
68032 2000-08-26  Jim Meyering  <meyering@lucent.com>
68033
68034         * lib/closeout.c: Include "__fpending.h".
68035         (close_stdout_status): Return right away if there's nothing to flush.
68036
68037         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68038         * lib/__fpending.c: New file.
68039         * lib/__fpending.h: New file.
68040
68041 2000-08-20  Jim Meyering  <meyering@lucent.com>
68042
68043         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68044         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68045         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68046
68047 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68048
68049         Improve fileutils installation on systems where running
68050         programs (like install) can't be unlinked.
68051         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68052         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68053
68054 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68055
68056         Standardize on "memory exhausted" instead of "Memory exhausted"
68057         or "virtual memory exhausted".
68058         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68059         "virtual memory exhausted".
68060         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68061         our own message.
68062         * lib/userspec.c (parse_user_spec): Likewise.
68063         * lib/bumpalloc.h: comment fix
68064         * lib/same.c, userspec.c: Include xalloc.h.
68065
68066         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68067         not char *const and pointing to a constant array.
68068         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68069         (xrealloc): Comment fix.
68070
68071         * lib/userspec.c (parse_user_spec):
68072         Don't translate a message until just before returning,
68073         to avoid unnecessary translation.
68074
68075 2000-08-07  Jim Meyering  <meyering@lucent.com>
68076
68077         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68078         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68079         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68080         getgroups.c, gethostname.c, getopt.h, group-member.c,
68081         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68082         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68083         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68084         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68085         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68086         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68087         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68088         yesno.c: Back out Copyright date changes for each file with no change
68089         this year.  This eases coordination with other programs using the same
68090         source code modules.  From Paul Eggert.
68091
68092 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68093
68094         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68095         not char, for compatibility with glibc 2.1.3 strftime.c.
68096
68097 2000-08-03  Greg McGary  <greg@mcgary.org>
68098
68099         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68100         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68101         (EXTEND_BUFFER): Use them.
68102
68103 2000-08-01  Jim Meyering  <meyering@lucent.com>
68104
68105         * lib/dirname.c (ISSLASH): Define.
68106         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68107         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68108         both `\' and `/' may be use as path separators.
68109         Based on a patch from Prashant TR.
68110
68111 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68112
68113         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68114         slot vector a constant, since it might get modified.
68115
68116 2000-07-31  Jim Meyering  <meyering@lucent.com>
68117
68118         * lib/xmalloc.c: Use `virtual memory exhausted', not
68119         `Memory exhausted'.
68120         * lib/obstack.c (print_and_abort): Likewise.
68121
68122 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68123
68124         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68125         buffer, so that the caller can always quote one small
68126         component of a "memory exhausted" message in slot 0.
68127         From a suggestion by Jim Meyering.
68128
68129 2000-07-30  Jim Meyering  <meyering@lucent.com>
68130
68131         * lib/makepath.c (make_path): Quote the other instance, too.
68132
68133         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68134         (STATIC_BUF_SIZE): Define.
68135         (quotearg_n_options): Use only statically allocated storage when
68136         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68137         than STATIC_BUF_SIZE.
68138
68139 2000-07-29  Jim Meyering  <meyering@lucent.com>
68140
68141         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68142         * lib/dirname.c (dir_name): Likewise.
68143
68144         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68145         `/'.
68146
68147         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68148         (dir_name): Assert that there are no trailing slashes.
68149
68150 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68151
68152         * lib/mbswidth.h (mbswidth): Add a flags argument.
68153         (mbswidth): New declaration.
68154         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68155         * lib/mbswidth.c (mbswidth): Add a flags argument.
68156         (mbsnwidth): New function.
68157
68158 2000-07-24  Jim Meyering  <meyering@lucent.com>
68159
68160         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68161
68162 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68163
68164         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68165
68166 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68167
68168         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68169         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68170         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68171         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68172         invoke multibyte primitives.
68173
68174 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68175
68176         * lib/quotearg.c:
68177         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68178         so that mbstate_t is always defined.
68179
68180         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68181         be 1 in at least one GCC installation, and this configuration
68182         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68183         performance on hosts that have mbrtowc but have only unibyte
68184         locales, but I assume these hosts are rare.
68185
68186 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68187
68188         * lib/mbswidth.c (_XOPEN_SOURCE):
68189         Don't define; this causes problems on Solaris 7.
68190         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68191
68192 2000-07-23  Jim Meyering  <meyering@lucent.com>
68193
68194         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68195         too: getgrgid, getpwuid, getuid.
68196
68197 2000-07-23  Jim Meyering  <meyering@lucent.com>
68198
68199         * lib/basename.c (base_name): Add an assertion.
68200
68201 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68202
68203         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68204         shadow its mbsinit function.
68205
68206 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68207
68208         * lib/mbswidth.h: New file.
68209         * lib/mbswidth.c: New file.
68210         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68211         (noinst_HEADERS): Add mbswidth.h.
68212
68213 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68214
68215         * lib/config.charset: Add support for FreeBSD. Improve support for
68216         HP-UX and IRIX 6.
68217
68218 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68219
68220         * m4/mbswidth.m4: New file.
68221         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68222
68223 2000-07-15  Jim Meyering  <meyering@lucent.com>
68224
68225         * lib/makepath.c: Include quote.h.
68226         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68227         corresponding argument in a `quote (...)' call.
68228         Give better diagnostics.
68229
68230         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68231         (noinst_HEADERS): Add quote.h.
68232
68233         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68234         from tar's src/misc.c.
68235         * lib/quote.h: New file.  Prototypes for same.
68236
68237 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68238
68239         From a suggestion by Bruno Haible.
68240         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68241         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68242         to decide whether to define the BeOS workaround macro;
68243         this adjusts to the change to AC_MBSTATE_T.
68244
68245 2000-07-14  Jim Meyering  <meyering@lucent.com>
68246
68247         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68248         jm_AC_TYPE_UINTMAX_T.
68249
68250 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68251
68252         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68253
68254         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68255         quotearg_buffer_restyled): Add support for
68256         clocale_quoting_style.  Undo previous change to
68257         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68258         and "{RIGHT QUOTATION MARK}" msgids.
68259
68260 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68261
68262         From a suggestion by Bruno Haible.
68263         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68264         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68265         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68266         and mbstate_t, to a single-part test that simply defines mbstate_t.
68267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68268         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68269
68270 2000-07-10  Jim Meyering  <meyering@lucent.com>
68271
68272         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68273
68274         * m4/gnu-source.m4: Output to confdefs.h directly.
68275         Suggestion from Akim Demaille.
68276
68277 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68278
68279         The old behavior of quoting `like this' doesn't look good with
68280         newer, ISO-style fonts.  See:
68281         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68282
68283         Instead, quote "like this" by default.  Let the translator
68284         tailor the locale-specific quoting behavior by providing
68285         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68286
68287         * lib/quotearg.c (N_): New macro.
68288         (gettext_default): New function.
68289         (quotearg_buffer_restyled): Use
68290         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68291         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68292
68293 2000-07-09  Jim Meyering  <meyering@lucent.com>
68294
68295         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68296         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68297
68298         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68300
68301 2000-07-09  Jim Meyering  <meyering@lucent.com>
68302
68303         * lib/Most files: Update copyright dates to include 2000.
68304
68305 2000-07-08  Jim Meyering  <meyering@lucent.com>
68306
68307         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68308         if not defined.
68309         (xgethostname): Remove now-unnecessary #ifdef.
68310         Move declaration of `err' into loop where it's used.
68311
68312 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68313         and Bruno Haible  <haible@clisp.cons.org>
68314
68315         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68316         only if the test for an object-type mbstate_t fails.  This
68317         prevents us from mistakenly reporting that mbstate_t is a
68318         system object type after we "#define mbstate_t int" to work
68319         around its lack.
68320
68321 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68322         and Bruno Haible  <haible@clisp.cons.org>
68323
68324         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68325
68326 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68327
68328         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68329         to strerror_r.
68330         Include <ctype.h> for use of isalpha.
68331
68332 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68333
68334         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68335         by allocating a larger buffer. Test the gethostname return value for
68336         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68337         returns an error and ENAMETOOLONG isn't defined.
68338
68339 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68340
68341         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68342         dimension.
68343
68344 2000-07-04  Jim Meyering  <meyering@lucent.com>
68345
68346         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68347         of the deprecated AC_CHECKING.
68348
68349 2000-07-04  Jim Meyering  <meyering@lucent.com>
68350
68351         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68352         Reported by Bruno Haible.
68353
68354 2000-07-04  Jim Meyering  <meyering@lucent.com>
68355
68356         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68357         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68358         lacks mbrtowc.
68359
68360 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68361
68362         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68363         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68364
68365 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68366         and Bruno Haible  <haible@clisp.cons.org>
68367
68368         * lib/quotearg.c (mbrtowc):
68369         Assign to *pwc, and return 1 only if result is nonzero.
68370         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68371
68372 2000-07-03  Jim Meyering  <meyering@lucent.com>
68373
68374         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68375
68376 2000-07-03  Jim Meyering  <meyering@lucent.com>
68377
68378         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68379         This is necessary to get a definition of e.g., UTMP_FILE on
68380         HP-UX 10.20.
68381         From Bob Proulx.
68382
68383 2000-07-02  Jim Meyering  <meyering@lucent.com>
68384
68385         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68386
68387         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68388         AC_LIBOBJ(function_name).
68389         * m4/chown.m4: Likewise.
68390         * m4/fnmatch.m4: Likewise.
68391         * m4/ftruncate.m4: Likewise.
68392         * m4/getgroups.m4: Likewise.
68393         * m4/getline.m4: Likewise.
68394         * m4/group-member.m4: Likewise.
68395         * m4/jm-macros.m4: Likewise.
68396         * m4/lstat.m4: Likewise.
68397         * m4/malloc.m4: Likewise.
68398         * m4/memcmp.m4: Likewise.
68399         * m4/nanosleep.m4: Likewise.
68400         * m4/putenv.m4: Likewise.
68401         * m4/realloc.m4: Likewise.
68402         * m4/regex.m4: Likewise.
68403         * m4/stat.m4: Likewise.
68404         * m4/strftime.m4: Likewise.
68405
68406 2000-07-02  Jim Meyering  <meyering@lucent.com>
68407
68408         * lib/quotearg.c (mbstate_t): Don't define here.
68409
68410 2000-07-02  Jim Meyering  <meyering@lucent.com>
68411
68412         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68413
68414 2000-07-01  Jim Meyering  <meyering@lucent.com>
68415
68416         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68417
68418 2000-07-01  Jim Meyering  <meyering@lucent.com>
68419
68420         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68421         problem.
68422
68423 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68424
68425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68426         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68427
68428 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68429
68430         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68431         per change in ../m4/ls-mntd-fs.m4.
68432         (read_filesystem_list): Ignore symbolic links.
68433
68434 2000-06-29  Jim Meyering  <meyering@lucent.com>
68435
68436         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68437         for declaration of strcmp.
68438
68439         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68440
68441         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68442         Avoid warning by casting result to `char *' to remove `const'.
68443
68444 2000-06-28  Jim Meyering  <meyering@lucent.com>
68445
68446         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68447         included by quotearg.c, for which we perform this test.  From
68448         Bruno Haible.
68449
68450 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68451
68452         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68453         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68454         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68455
68456 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68457
68458         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68459
68460 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68461
68462         savedir now sets errno on failure and invokes xmalloc to get memory.
68463         Fix a couple of other minor bugs while we're at it.
68464
68465         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68466         (NAMLEN): Remove macro.
68467         (malloc, realloc): Remove decls.
68468         (stpcpy): Likewise.
68469         ("xalloc.h"): Include.
68470         (NAME_SIZE_DEFAULT): New macro.
68471         (savedir): Use xmalloc / xrealloc to allocate memory.
68472         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68473         Skip "" directory entries.
68474         Use strlen to calculate directory entry length, since the old method
68475         is rarely used these days and isn't worth supporting.
68476         Don't use a pointer after freeing it.
68477         Check for integer overflow when calculating allocation size.
68478         Use memcpy to copy entries, instead of stpcpy.
68479         Set errno properly when returning NULL.
68480         Check for readdir error.
68481
68482 2000-06-26  Jim Meyering  <meyering@lucent.com>
68483
68484         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68485
68486 2000-06-25  Jim Meyering  <meyering@lucent.com>
68487
68488         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68489         Linux header bug when _XOPEN_SOURCE is defined to 500.
68490
68491 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68492
68493         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68494         deficiency.
68495
68496 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68497
68498         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68499         Include xalloc.h.
68500         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68501
68502 2000-06-24  Jim Meyering  <meyering@lucent.com>
68503
68504         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68505         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68506         for which strerror does return char*, but which lacks a conveniently
68507         accessible declaration of the function.  If the compile-test says
68508         strerror_r doesn't work, then resort to a `run'-test that works on
68509         BeOS and segfaults on DEC Unix.
68510
68511 2000-06-24  Jim Meyering  <meyering@lucent.com>
68512
68513         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68514
68515 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68516
68517         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68518         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68519
68520 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68521
68522         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68523         (mbrtowc, mbstate_t): Define substitutes if
68524         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68525         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68526         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68527
68528 2000-06-23  Jim Meyering  <meyering@lucent.com>
68529
68530         * m4/afs.m4: Add missing AC_MSG_RESULT.
68531         Reported by Bruno Haible.
68532
68533         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68534         Suggestion from Bruno Haible.
68535
68536 2000-06-23  Jim Meyering  <meyering@lucent.com>
68537
68538         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68539
68540 2000-06-21  Jim Meyering  <meyering@lucent.com>
68541
68542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68543
68544 2000-06-21  Jim Meyering  <meyering@lucent.com>
68545
68546         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68547         (noinst_HEADERS): Add getstr.h.
68548
68549         * lib/getline.c (getstr): Move into a separate file.
68550         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68551         the following changes: new parameter, delim2; both delim[12]
68552         parameters have type `int', not `char'.  The latter would lose
68553         with 8-bit delimiters.
68554         * lib/getstr.h: New file.
68555
68556 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68557
68558         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68559         than 1024, return a memory chunk of least possible size, instead
68560         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68561         Use free/xmalloc instead of xrealloc to avoid copying for very long
68562         paths.
68563
68564 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68565
68566         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68567         the empty string.
68568
68569 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68570
68571         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68572         address, not strdup.  Include <stdlib.h> and don't declare free().
68573
68574 2000-06-19  Jim Meyering  <meyering@lucent.com>
68575
68576         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68577
68578 2000-06-18  Jim Meyering  <meyering@lucent.com>
68579
68580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68581
68582         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68583         `checking whether...' message to be consistent with that of the
68584         lstat test.
68585
68586 2000-06-18  Jim Meyering  <meyering@lucent.com>
68587
68588         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68589         Besides, these days every porting target provides a mkdir function.
68590
68591         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68592         needed. (this snippet comes from src/system.h).
68593
68594 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68595
68596         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68597
68598 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68599
68600         * lib/human.c (adjust_value): New function.
68601         (human_readable_inexact): Apply rounding style even when
68602         printing approximate values.
68603
68604 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68605
68606         * lib/human.c (human_readable_inexact): Allow an input block
68607         size that is not a multiple of the output block size, and vice versa.
68608         Reported by Piergiorgio Sartor.
68609
68610 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68611
68612         * lib/getdate.y (get_date): Apply relative times after time
68613         zone indicator, not before.  Reported by Todd A. Jacobs.
68614
68615 2000-06-13  Jim Meyering  <meyering@lucent.com>
68616
68617         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68618
68619         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68620
68621 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68622
68623         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68624
68625 2000-06-12  Jim Meyering  <meyering@lucent.com>
68626
68627         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68628         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68629         optional argument.
68630         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68631         the optional argument, `lib'.
68632
68633 2000-06-08  Jim Meyering  <meyering@lucent.com>
68634
68635         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68636
68637 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68638
68639         Rewrite largefile configuration so that we don't need to run
68640         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68641         AC_CANONICAL_HOST in configure.in -- jmm]
68642
68643         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68644         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68645         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68646         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68647         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68648         All uses changed.
68649         Instead of inspecting the output of getconf, try to compile the
68650         test program without and with the macro definition.
68651         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68652         for getconf.  Instead, check for the needed flags by compiling
68653         test programs.
68654
68655 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68656
68657         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68658
68659 2000-06-04  Jim Meyering  <meyering@lucent.com>
68660
68661         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68662         SunOS 4.1.4 for which gid_t is an unsigned type.
68663
68664 2000-06-03  Jim Meyering  <meyering@lucent.com>
68665
68666         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68667         now that autoconf requires that.
68668
68669         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68670         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68671         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68672
68673 2000-06-03  Jim Meyering  <meyering@lucent.com>
68674
68675         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68676
68677 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68678
68679         * m4/glibc21.m4: New file.
68680         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68681
68682 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68683
68684         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68685         newer, don't install charset.alias.
68686         * lib/config.charset: Change the Linux/glibc rules so they become empty
68687         on glibc-2.1 or newer.
68688
68689 2000-06-02  Jim Meyering  <meyering@lucent.com>
68690
68691         * lib/mountlist.c: Back out last change.  Instead, do this...
68692         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68693         me_dummy member using the same `ignore'-testing code.
68694         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68695         fs_type strings.
68696         From Mark D. Roth.
68697
68698 2000-05-29  Jim Meyering  <meyering@lucent.com>
68699
68700         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68701         mounts with the `ignore' attribute.  Based on a patch from
68702         Mark D. Roth.
68703
68704 2000-05-28  Jim Meyering  <meyering@lucent.com>
68705
68706         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68707         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68708         * m4/stat.m4: Likewise.
68709         * m4/lstat.m4: Likewise.
68710         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68711
68712         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68713         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68714
68715 2000-05-26  Jim Meyering  <meyering@lucent.com>
68716
68717         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68718
68719 2000-05-24  Jim Meyering  <meyering@lucent.com>
68720
68721         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68722         autoconf requires that.
68723         * m4/lib-check.m4: Likewise.
68724         * m4/jm-macros.m4: Likewise.
68725         * m4/strftime.m4: Likewise.
68726
68727         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68728         AC_CHECK_DECLS, now that autoconf requires that.
68729
68730 2000-05-22  Jim Meyering  <meyering@lucent.com>
68731
68732         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68733         * m4/lstat.m4: Likewise.
68734
68735 2000-05-22  Jim Meyering  <meyering@lucent.com>
68736
68737         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68738
68739 2000-05-20  Jim Meyering  <meyering@lucent.com>
68740
68741         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68742         (jm_PREREQ): Use it.
68743
68744 2000-05-18  Jim Meyering  <meyering@lucent.com>
68745
68746         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68747         back, too, since it may have been modified by allocate_entry.
68748         (hash_delete): Rewrite to use neither the assignment operator
68749         nor the comma operator in an if-expression.
68750
68751 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68752
68753         * lib/closeout.c:
68754         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68755         Remove; no longer needed.
68756         "quotearg.h": Add include.
68757         (file_name): Do not bother to explicitly initialize to NULL; it's less
68758         efficient on some hosts.
68759         (close_stdout_status): Remove test as to whether stdout was already
68760         closed; it breaks for the case "echo x | sort >&-".
68761         Quote file name colons.
68762         Do not assume that _("write error") lacks format strings.
68763
68764 2000-05-15  Jim Meyering  <meyering@lucent.com>
68765
68766         * lib/version-etc.c (version_etc_copyright): Update the copyright
68767         string used in all --version output.
68768
68769 2000-05-14  Jim Meyering  <meyering@lucent.com>
68770
68771         * lib/closeout.c (close_stdout_set_file_name): New function.
68772         (close_stdout_status): Use new file-scoped global.
68773         Return right away if fstat says the stdout file descriptor is invalid.
68774         * lib/closeout.h (close_stdout_set_file_name): Declare.
68775
68776 2000-05-10  Jim Meyering  <meyering@lucent.com>
68777
68778         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68779         (close_stdout_set_status): New function.
68780         * lib/closeout.h (close_stdout_set_status): Declare.
68781
68782 2000-05-09  Jim Meyering  <meyering@lucent.com>
68783
68784         * m4/gettext.m4: Rename this...
68785         * m4/libintl.m4: ...to this.
68786
68787 2000-05-08  Jim Meyering  <meyering@lucent.com>
68788
68789         * lib/long-options.c: Don't include closeout.h.
68790         (parse_long_options): Don't call close_stdout for --version.
68791
68792 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68793
68794         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68795         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68796         2.1.3 bug.  This avoids a clash when files like regex.c define
68797         _GNU_SOURCE.
68798
68799 2000-05-06  Jim Meyering  <meyering@lucent.com>
68800
68801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68802         (AC_REPLACE_FUNCS): Add strnlen.
68803
68804         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68805         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68806
68807         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68808         AC_SEARCH_LIBS call for nanosleep.
68809         (LIB_NANOSLEEP): Set and AC_SUBST.
68810
68811 2000-05-06  Jim Meyering  <meyering@lucent.com>
68812
68813         * lib/strnlen.c: Undefine __strnlen and strnlen.
68814         [!weak_alias]: Define __strnlen to strnlen.
68815
68816         * lib/atexit.c: New file, from libiberty.
68817
68818 2000-05-06  Jim Meyering  <meyering@lucent.com>
68819
68820         * lib/closeout.c (close_stdout_status): Also check for errors on the
68821         stderr stream.
68822
68823 2000-05-05  Jim Meyering  <meyering@lucent.com>
68824
68825         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68826         AC_SEARCH_LIBS call for clock_gettime.
68827         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68828
68829         * m4/search-libs.m4: Update from autoconf.
68830
68831         su doesn't work on Solaris 2.6.
68832         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68833         <shadow.h>.  Reported by Dragos Harabor.
68834
68835 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68836
68837         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68838         memcpy instead of xmalloc, xrealloc, path_concat.
68839         (locale_charset): Treat empty environment variables as absent.
68840         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68841
68842 2000-05-04  Jim Meyering  <meyering@lucent.com>
68843
68844         * lib/getopt.c: Update from glibc.
68845         * lib/obstack.c: Likewise.
68846         * lib/obstack.h: Likewise.
68847         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68848         file
68849
68850         * lib/regex.h: Likewise.
68851         * lib/strndup.c: Likewise.
68852         * lib/strnlen.c: New file, from glibc.
68853
68854 2000-05-03  Jim Meyering  <meyering@lucent.com>
68855
68856         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68857
68858 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68859
68860         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68861         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68862         compile-time test, rather than inspecting host and OS, to
68863         decide whether to define _LARGEFILE_SOURCE.
68864
68865 2000-05-01  Jim Meyering  <meyering@lucent.com>
68866
68867         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68868
68869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68870         Based on a patch from Bruno Haible.
68871
68872 2000-05-01  Jim Meyering  <meyering@lucent.com>
68873
68874         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68875
68876 2000-04-29  Jim Meyering  <meyering@lucent.com>
68877
68878         * lib/path-concat.c: Declare strdup only if it's not defined.
68879         * lib/canon-host.c: Likewise.
68880
68881 2000-04-28  Jim Meyering  <meyering@lucent.com>
68882
68883         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68884         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68885         is included first, then limits.h is included by locale.h by libintl.h.
68886         From John David Anglin.
68887
68888 2000-04-25  Jim Meyering  <meyering@lucent.com>
68889
68890         * lib/makepath.c (S_IRWXUGO): Define.
68891         (make_path): Always perform explicit chmod if MODE specifies any
68892         of the `special' permission bits.  Prompted by a bug report against
68893         install from Mate Wierdl and Joost van Baal.
68894
68895 2000-04-18  Jim Meyering  <meyering@lucent.com>
68896
68897         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68898         (jm_PREREQ): Use it.
68899
68900 2000-04-18  Jim Meyering  <meyering@lucent.com>
68901
68902         * lib/README: New file.
68903
68904         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68905         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68906
68907 2000-04-17  Jim Meyering  <meyering@lucent.com>
68908
68909         Get it right :-)
68910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68911         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68912         Suggestion from Akim Demaille.
68913
68914 2000-04-17  Jim Meyering  <meyering@lucent.com>
68915
68916         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68917         the definition of it to rpl_strftime also defined-away the system's
68918         declaration.
68919
68920 2000-04-15  Jim Meyering  <meyering@lucent.com>
68921
68922         Use `C' to denote so-called `contiguous' files, the same way
68923         that tar does.
68924         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68925         (ftypelet): Use S_ISCTG.
68926         From Michael Deutschmann.
68927
68928 2000-04-14  Jim Meyering  <meyering@lucent.com>
68929
68930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68931         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68932         clobbered.
68933
68934 2000-04-14  Jim Meyering  <meyering@lucent.com>
68935
68936         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68937
68938 2000-04-13  Jim Meyering  <meyering@lucent.com>
68939
68940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68941         AH_VERBATIM to insert required #ifndef into config.h.in.
68942         Suggestion from Akim Demaille.
68943
68944 2000-04-12  Jim Meyering  <meyering@lucent.com>
68945
68946         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68947         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68948         Christian Krackowizer.
68949
68950         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68951         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68952         (AC_SYS_LARGEFILE): Require.
68953         (AM_C_PROTOTYPES): Require.
68954
68955 2000-04-08  Jim Meyering  <meyering@lucent.com>
68956
68957         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68958         names don't conflict.  Reported by Eli Zaretskii.
68959
68960 2000-04-07  Jim Meyering  <meyering@lucent.com>
68961
68962         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68963         sys/types.h, to work around system header problems on AIX 3.2.5.
68964         From Bruno Haible.
68965
68966 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68967
68968         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68969         bug.  Deal with the different error behavior of Irix iconv.
68970
68971 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68972
68973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68974         IRIX if the installer said otherwise.
68975
68976 2000-04-05  Jim Meyering  <meyering@lucent.com>
68977
68978         Portability tweaks required for ultrix4.3.
68979         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68980         (jm_CHECK_DECLS): Add getutent to the list of functions.
68981         (_jm_DECL_HEADERS): Add utmpx.h.
68982         From John David Anglin.
68983
68984         * m4/strftime.m4: Back out the 2000-04-02 change.
68985         Instead of that change, simply undefine putenv in the test program.
68986
68987 2000-04-05  Jim Meyering  <meyering@lucent.com>
68988
68989         Portability tweaks required for ultrix4.3.
68990         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68991         getutent.
68992         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68993         * lib/canon-host.c: Declare strdup.
68994         * lib/path-concat.c: Likewise.
68995         From John David Anglin.
68996
68997 2000-04-04  Jim Meyering  <meyering@lucent.com>
68998
68999         Be more DOS 8.3-friendly.
69000         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69001         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69002         * lib/Makefile.am: Reflect renaming.
69003         Reported by Eli Zaretskii.
69004
69005         Use a temporary file name that won't clash with `charset.alias'
69006         in the DOS 8.3 name space.
69007         * lib/Makefile.am (charset_tmp): Define.
69008         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69009         (uninstall-local): Likewise.
69010         Reported by Eli Zaretskii.
69011
69012 2000-04-03  Jim Meyering  <meyering@lucent.com>
69013
69014         * m4/gettext.m4: Fix typo in comment.
69015
69016         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69017         textutils/configure.in).  Suggestion from Paul Eggert.
69018         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69019
69020 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69021
69022         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69023         variable in the shell rather than using putenv, which isn't
69024         portable.  This avoids the configure-time inter-test dependency
69025         on the potentially-renamed putenv function.
69026
69027 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69028
69029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69030         before checking struct stat.st_blksize, so that
69031         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69032
69033 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69034
69035         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69036         since strftime.c uses HAVE_STRFTIME to decide whether to use
69037         the underlying strftime.
69038
69039 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69040
69041         * lib/time/strftime.c (my_strftime): Make sure we call the system
69042         strftime, not ourselves, when invoking the underlying strftime.
69043
69044 2000-03-24  Jim Meyering  <meyering@lucent.com>
69045
69046         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69047         (charset_alias): Define.
69048         (install-exec-local): Factor out common code.
69049         (uninstall-local): Split lines longer than 80.
69050         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69051         (SUFFIXES): Define.
69052         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69053         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69054
69055 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69056
69057         * lib/config.charset: Output a line containing "Packages using this
69058         file".
69059         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69060         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69061         ref-del.sed): New rules.
69062
69063 2000-03-17  Jim Meyering  <meyering@lucent.com>
69064
69065         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69066         Otherwise, include <strings.h>
69067
69068 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69069
69070         * lib/unicodeio.c (utf8_wctomb): New function.
69071         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69072         format instead of in UCS-4 with platform dependent endianness.
69073
69074 2000-03-10  Jim Meyering  <meyering@lucent.com>
69075
69076         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69077         From Marco Franzen.
69078
69079 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69080
69081         * lib/savedir.c (savedir): Work even if directory size is
69082         negative; this can happen with some screwy NFS configurations.
69083
69084 2000-03-06  Jim Meyering  <meyering@lucent.com>
69085
69086         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69087         if it's NULL (because we ran out of memory).  From Bruno Haible.
69088
69089 2000-03-05  Jim Meyering  <meyering@lucent.com>
69090
69091         * lib/localcharset.c ("path-concat.h"): Include.
69092         (get_charset_aliases): Use path_concat instead of ANSI string
69093         concatenation.
69094
69095         * lib/unicodeio.h (PARAMS): Define.
69096         Use it to guard prototype.
69097
69098 2000-03-04  Jim Meyering  <meyering@lucent.com>
69099
69100         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69101         for lib/localcharset.c.
69102
69103 2000-03-04  Jim Meyering  <meyering@lucent.com>
69104
69105         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69106         installing into it.
69107         (uninstall-local): Uncomment this rule so `make distcheck' works
69108         once again.
69109
69110         * lib/unicodeio.c (<errno.h>): Include it.
69111         (errno): Declare if not defined.
69112
69113         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69114
69115         * lib/config.charset: New version, incorporating remarks from a linux
69116         i18n mailing list.  From Bruno Haible.
69117
69118 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69119
69120         * m4/codeset.m4: New file.
69121         * m4/iconv.m4: New file.
69122         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69123
69124 2000-03-03  Jim Meyering  <meyering@lucent.com>
69125
69126         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69127
69128 2000-03-02  Jim Meyering  <meyering@lucent.com>
69129
69130         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69131         the messages come out on separate lines.
69132
69133         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69134         rather than jm_CHECK_DECLARATIONS.
69135         * m4/decl.m4: Remove now-unused file.
69136
69137         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69138         geteuid.
69139
69140 2000-03-02  Jim Meyering  <meyering@lucent.com>
69141
69142         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69143
69144 2000-03-01  Jim Meyering  <meyering@lucent.com>
69145
69146         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69147         * lib/unicodeio.c: Likewise.
69148
69149 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69150
69151         * lib/config.charset: New file.
69152         * lib/localcharset.c: New file.
69153         * lib/unicodeio.h, lib/unicodeio.c: New files.
69154         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69155         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69156         (noinst_HEADERS): Add unicodeio.h.
69157         (all-local, install-exec-local, charset.alias): New targets.
69158
69159 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69160
69161         * lib/quotearg.c (ALERT_CHAR): New macro.
69162         (quotearg_buffer_restyled): Use it.
69163
69164 2000-02-27  Jim Meyering  <meyering@lucent.com>
69165
69166         * m4/check-decl.m4: Add getenv to the list.
69167
69168 2000-02-27  Jim Meyering  <meyering@lucent.com>
69169
69170         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69171         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69172
69173         * lib/backupfile.c: Guard inclusion of stdlib.h with
69174         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69175         Declare malloc if needed.
69176
69177         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69178         `#ifndef HAVE_DECL..'
69179         now that autoconf always defines the HAVE_DECL_ symbols.
69180         * lib/human.c: Likewise.
69181         * lib/same.c: Likewise.
69182         * lib/strtoumax.c: Likewise.
69183
69184         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69185         declaration check was not run.
69186         * lib/hash.c: Likewise.
69187         * lib/human.c: Likewise.
69188         * lib/same.c: Likewise.
69189         * lib/strtoumax.c: Likewise.
69190
69191         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69192         `.', then first look up the entire `.'-containing string as a login
69193         name.
69194
69195 2000-02-23  Jim Meyering  <meyering@lucent.com>
69196
69197         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69198         in place of my hack.
69199
69200 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69201
69202         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69203         (textint): New typedef.
69204         (parser_control): Member year changed from int to textint.
69205         All uses changed.
69206         (YYSTYPE): Removed; replaced by %union with int and textint members.
69207         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69208         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69209         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69210         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69211         (date, number, to_year): Use width of number in digits, not its value,
69212         to determine whether it's a 2-digit year, or a 2-digit time.
69213         (yylex): Store number of digits of numeric tokens.
69214         Reported by John Kendall.
69215
69216         (parser_control): Changed from struct parser_control to typedef (for
69217         consistency).  All uses changed.
69218
69219         (tID): Removed; not used.
69220         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69221
69222 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69223
69224         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69225         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69226
69227 2000-02-12  Jim Meyering  <meyering@lucent.com>
69228
69229         * lib/userspec.c (ISDIGIT): Define it.
69230         (isdigit): Remove definition.
69231         (is_number): Use ISDIGIT, not isdigit.
69232         <libintl.h>: Include.
69233         (_ and N_): Define.
69234         (parse_user_spec): Mark translatable strings.
69235
69236 2000-02-10  Jim Meyering  <meyering@lucent.com>
69237
69238         With these changes, nanosleep.[ch] are finally enough like the other
69239         lib/* replacement files to compile on a few more losing systems.
69240
69241         * lib/nanosleep.h: Don't include config.h.
69242         Remove prototype from declaration of nanosleep.
69243         (PARAMS): Remove now-unneeded definition.
69244         * lib/nanosleep.c: #undef nanosleep.
69245         (rpl_nanosleep): Rename from nanosleep.
69246
69247 2000-02-10  Jim Meyering  <meyering@lucent.com>
69248
69249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69250         gnu_nanosleep to rpl_nanosleep.
69251
69252 2000-02-09  Jim Meyering  <meyering@lucent.com>
69253
69254         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69255         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69256
69257 2000-02-08  Akim Demaille  <akim@epita.fr>
69258
69259         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69260         `[' and `]' and remove uses of `changequote'.
69261         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69262         (AC_SYS_LARGEFILE): Likewise.
69263         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69264         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69265         of changequote.
69266         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69267         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69268         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69269         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69270
69271 2000-02-05  Jim Meyering  <meyering@lucent.com>
69272
69273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69274         Remove explicit use of AC_HEADER_TIME.  It is required by
69275         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69276         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69277         in autoconf whereby the expansion of the latter ended up preceding
69278         the expansion of its prerequisite, AC_HEADER_TIME.
69279         Reported by Volker Borchert.
69280
69281 2000-02-03  Jim Meyering  <meyering@lucent.com>
69282
69283         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69284
69285 2000-02-03  Jim Meyering  <meyering@lucent.com>
69286
69287         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69288         rather than with `#if HAVE_UTMPNAME'.
69289
69290 2000-02-02  Jim Meyering  <meyering@lucent.com>
69291
69292         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69293         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69294         Reported by Eli Zaretskii.
69295
69296 2000-02-01  Jim Meyering  <meyering@lucent.com>
69297
69298         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69299
69300 2000-01-31  Jim Meyering  <meyering@lucent.com>
69301
69302         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69303         functions.  Add the time.h and sys/time.h headers along with the
69304         AC_REQUIRE'ment of AC_HEADER_TIME.
69305
69306 2000-01-31  Jim Meyering  <meyering@lucent.com>
69307
69308         * lib/nanosleep.h (nanosleep): Guard declaration with
69309         `#if ! HAVE_DECL_NANOSLEEP'.
69310         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69311         the declaration in that vendor's sys/timers.h.
69312         Reported by Christian Krackowizer.
69313
69314         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69315         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69316         (ISPRINT): Likewise.
69317         Reported by Tom Tromey.
69318
69319 2000-01-30  Jim Meyering  <meyering@lucent.com>
69320
69321         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69322
69323         * m4/prereq.m4 (utmp_includes): Define.
69324         Check for ut_user and ut_name members in both struct utmpx
69325         and struct utmp.
69326
69327 2000-01-30  Jim Meyering  <meyering@lucent.com>
69328
69329         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69330         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69331         header files where only utmpx.ut_user is declared.
69332
69333         * lib/readutmp.h (UT_USER): Define.
69334
69335 2000-01-29  Jim Meyering  <meyering@lucent.com>
69336
69337         * m4/lib-check.m4: New file containing library-related checks from
69338         fileutils and sh-utils (textutils had none).
69339
69340 2000-01-28  Jim Meyering  <meyering@lucent.com>
69341
69342         * m4/perl.m4: Change format of warning message to look more like that
69343         from the missing script.  Suggestion from François Pinard.
69344
69345 2000-01-25  Jim Meyering  <meyering@lucent.com>
69346
69347         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69348         well as time.h in the compile check.
69349         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69350         Fix typo in cross-compiling case: s/yes/no/.
69351
69352 2000-01-23  Jim Meyering  <meyering@lucent.com>
69353
69354         * m4/jm-macros.m4: Move df-related tests here from
69355         fileutils/configure.in
69356
69357         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69358         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69359
69360         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69361         s/space/ac_fsusage_space/.
69362         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69363
69364         * m4/ftruncate.m4: New file (derived from part of
69365         fileutils/configure.in).
69366         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69367         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69368
69369         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69370         AC_SUBST these here, rather than just in sh-util/configure.in, so
69371         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69372         all the same.
69373         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69374         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69375         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69376         (AC_SUBST(POW_LIBM)): Likewise.
69377         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69378
69379 2000-01-23  Jim Meyering  <meyering@lucent.com>
69380
69381         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69382         obstack.c.
69383
69384 2000-01-22  Jim Meyering  <meyering@lucent.com>
69385
69386         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69387
69388         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69389
69390         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69391         configure.in
69392         (AC_CHECK_HEADERS): Likewise for sh-utils.
69393         (AC_CHECK_HEADERS): Likewise for textutils.
69394         Merge the three lists of headers.
69395
69396         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69397         from fileutils' configure.in.
69398
69399         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69400         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69401         check-decl.m4.
69402
69403         * m4/check-decl.m4: Use #if rather than #ifdef.
69404         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69405         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69406         (_jm_DECL_HEADERS): Define new function.
69407         (jm_CHECK_DECLARATIONS): Require it.
69408
69409 2000-01-22  Jim Meyering  <meyering@lucent.com>
69410
69411         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69412         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69413         Required for some AIX systems.  Reported by Christian Krackowizer.
69414         [TESTING] (main): New function.
69415
69416         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69417         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69418         letters.
69419
69420         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69421         iswprint.
69422
69423         * lib/strverscmp.c (ISDIGIT): Define.
69424         (strverscmp): Use ISDIGIT, not isdigit.
69425
69426 2000-01-19  Jim Meyering  <meyering@lucent.com>
69427
69428         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69429         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69430         defines `struct timespec' in <sys/time.h>
69431
69432         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69433         Thanks to Akim for explaining.
69434
69435 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69436
69437         * lib/nanosleep.c (nanosleep):
69438         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69439         POSIX.1 doesn't require SA_INTERRUPT and some systems
69440         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69441         it's been part of POSIX.1 since day 1 (in 1988).
69442
69443 2000-01-17  Jim Meyering  <meyering@lucent.com>
69444
69445         * lib/interlock: Remove unused file.  Reported by François Pinard.
69446
69447 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69448
69449         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69450         alert, backslash, formfeed, and vertical tab unnecessarily in
69451         shell quoting style.
69452
69453 2000-01-16  Jim Meyering  <meyering@lucent.com>
69454
69455         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69456         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69457         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69458         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69459
69460 2000-01-16  Jim Meyering  <meyering@lucent.com>
69461
69462         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69463         because the latter didn't work.
69464
69465 2000-01-15  Jim Meyering  <meyering@lucent.com>
69466
69467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69468         (AC_REPLACE_FUNCS): Add memcpy and memset.
69469         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69470         Add strpbrk.
69471         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69472
69473 2000-01-12  Jim Meyering  <meyering@lucent.com>
69474
69475         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69476         (jm_PREREQ): Use it.
69477         (jm_PREREQ_READUTMP): New macro.
69478         (jm_PREREQ): Use it.
69479
69480 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69481
69482         Quote multibyte characters correctly.
69483         * m4/c-bs-a.m4: New file.
69484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69485         (jm_PREREQ): Use it.
69486
69487 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69488
69489         * m4/uintmax_t.m4: Port to autoconf 2.13.
69490
69491 2000-01-08  Jim Meyering  <meyering@ascend.com>
69492
69493         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69494         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69495
69496 2000-01-04  Jim Meyering  <meyering@ascend.com>
69497
69498         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69499         jm_STRUCT_DIRENT_D_TYPE.
69500         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69501         jm_STRUCT_DIRENT_D_INO.
69502         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69503         jm_STRUCT_UTIMBUF.
69504         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69505         renamings.
69506         * m4/utime.m4: Likewise.
69507
69508         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69509         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69510
69511 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69512
69513         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69514         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69515
69516 2000-01-02  Jim Meyering  <meyering@ascend.com>
69517
69518         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69519         remember if this is necessary.
69520
69521 1999-12-26  Jim Meyering  <meyering@ascend.com>
69522
69523         * m4/jm-macros.m4: Use it here.
69524         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69525
69526 1999-12-23  Jim Meyering  <meyering@ascend.com>
69527
69528         * m4/jm-macros.m4: Check for clock_gettime (moved from
69529         fileutils/configure.in)
69530         Check for gettimeofday.
69531
69532 1999-12-20  Jim Meyering  <meyering@ascend.com>
69533
69534         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69535         autoconf-2.14a-1999-12-20.
69536
69537 1999-12-19  Jim Meyering  <meyering@ascend.com>
69538
69539         * m4/lstat-slash.m4: New file.
69540         * m4/jm-macros.m4: Use the new macro:
69541         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69542
69543 1999-12-07  Jim Meyering  <meyering@ascend.com>
69544
69545         * m4/perl.m4: Require that File::Compare be available, too.
69546         Too many systems seem to lack it.
69547
69548         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69549         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69550
69551 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69552
69553         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69554         problem with the QNX 4.25 shell, which doesn't propagate exit
69555         status of failed commands inside shell assignments.
69556
69557 1999-11-17  Jim Meyering  <meyering@ascend.com>
69558
69559         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69560
69561 1999-11-07  Jim Meyering  <meyering@ascend.com>
69562
69563         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69564
69565 1999-11-06  Jim Meyering  <meyering@ascend.com>
69566
69567         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69568         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69569
69570 1999-11-05  Jim Meyering  <meyering@ascend.com>
69571
69572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69573         configure.in of textutils, fileutils, and sh-utils into this one
69574         (shared between those packages) file.
69575         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69576         AC_STRUCT_ST_BLKSIZE.
69577
69578 1999-11-03  Jim Meyering  <meyering@ascend.com>
69579
69580         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69581         of AC_CHECK_TYPE checks includes unistd.h.
69582         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69583         Suggestion from Akim Demaille.
69584
69585 1999-10-30  Jim Meyering  <meyering@ascend.com>
69586
69587         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69588         m4-quoted string.
69589         * m4/ls-mntd-fs.m4: Likewise.
69590         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69591         * m4/jm-winsz1.m4: Likewise.
69592
69593         * m4/const.m4: Remove file, since the fix made it into the experimental
69594         version of autoconf.
69595         * m4/mktime.m4: Likewise.
69596
69597         * m4/check-type.m4: Remove file, now that the latest version of
69598         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69599
69600         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69601         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69602         AC_CHECK_TYPE.
69603
69604 1999-10-04  Jim Meyering  <meyering@ascend.com>
69605
69606         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69607
69608 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69609
69610         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69611         2.95.1 bug with HP-UX 10.20.
69612
69613 1999-09-17  Jim Meyering  <meyering@ascend.com>
69614
69615         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69616         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69617         due to missing strdup (against sh-utils-2.0).
69618
69619 1999-08-29  Jim Meyering  <meyering@ascend.com>
69620
69621         * m4/jm-macros.m4: Require jm_BISON.
69622         * m4/bison.m4: New file.
69623
69624 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69625
69626         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69627         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69628
69629 1999-08-05  Jim Meyering  <meyering@ascend.com>
69630
69631         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69632         to avoid conflicts with `conftest' on 8+3 filesystems.
69633         Suggestion from Eli Zaretskii.
69634
69635 1999-08-04  Jim Meyering  <meyering@ascend.com>
69636
69637         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69638         fileutils and sh-utils (textutils's getline test was inadequate).
69639         (AM_FUNC_GETLINE): Run this test.
69640         (AC_CHECK_FUNCS): Check for getdelim.
69641         Reported by Bob Proulx.
69642
69643 1999-08-02  Jim Meyering  <meyering@ascend.com>
69644
69645         * m4/jm-macros.m4: Add a comment.
69646
69647 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69648
69649         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69650         <inttypes.h> defines strtoumax as a macro (and not as a
69651         function).
69652
69653 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69654
69655         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69656         that we can shift, multiply and divide unsigned long long
69657         values; Ultrix cc can't do it.
69658
69659 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69660
69661         * m4/mktime.m4: New file, which is a preview of what should appear
69662         in the next public autoconf release.
69663
69664 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69665
69666         * m4/lfs.m4: Remove this file.
69667         * m4/largefile.m4: New file.  It contains the old contents of
69668         lfs.m4, except that all names with prefix AC_LFS have been
69669         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69670         compatible with future autoconf versions.  Also, some minor m4
69671         quoting problems have been fixed.
69672
69673 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69674
69675         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69676         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69677         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69678         and simplify the shell code.
69679
69680 1999-08-01  Jim Meyering  <meyering@ascend.com>
69681
69682         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69683         m4.
69684
69685 1999-07-20  Jim Meyering  <meyering@ascend.com>
69686
69687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69688
69689 1999-07-15  Jim Meyering  <meyering@ascend.com>
69690
69691         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69692
69693 1999-05-22  Jim Meyering  <meyering@ascend.com>
69694
69695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69696
69697 1999-05-20  Jim Meyering  <meyering@ascend.com>
69698
69699         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69700         Add a colon after each `then' in case $4 is empty.
69701
69702 1999-05-16  Jim Meyering  <meyering@ascend.com>
69703
69704         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69705
69706 1999-05-10  Jim Meyering  <meyering@ascend.com>
69707
69708         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69709
69710         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69711         AC_FUNC_MKTIME.
69712
69713 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69714
69715         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69716
69717 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69718
69719         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69720         not CPPFLAGS, so that linking works correctly in IRIX.
69721
69722 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69723
69724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69725
69726 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69727
69728         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69729         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69731         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69732         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69733
69734         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69735
69736 1999-04-20  Jim Meyering  <meyering@ascend.com>
69737
69738         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69739         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69740         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69741
69742 1999-04-18  Jim Meyering  <meyering@ascend.com>
69743
69744         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69745         * m4/jm-macros.m4: Use it.
69746
69747 1999-04-06  Jim Meyering  <meyering@ascend.com>
69748
69749         * m4/strftime.m4: Remove test for %f.
69750
69751 1999-03-29  Jim Meyering  <meyering@ascend.com>
69752
69753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69754         superset of the AC_TYPE_* checks in the textutils, fileutils,
69755         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69756         AC_TYPE_PID_T.
69757
69758 1999-03-28  Jim Meyering  <meyering@ascend.com>
69759
69760         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69761         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69762         replaced e.g., in the *.sh files of the sh-utils.
69763
69764 1999-03-20  Jim Meyering  <meyering@ascend.com>
69765
69766         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69767         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69768         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69769
69770 1999-03-19  Jim Meyering  <meyering@ascend.com>
69771
69772         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69773
69774 1999-03-12  Jim Meyering  <meyering@ascend.com>
69775
69776         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69777
69778 1999-03-07  Jim Meyering  <meyering@ascend.com>
69779
69780         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69781         declared.
69782
69783 1999-02-17  Jim Meyering  <meyering@ascend.com>
69784
69785         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69786         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69787
69788 1999-02-07  Jim Meyering  <meyering@ascend.com>
69789
69790         * m4/group-member.m4: New file -- extracted from sh-utils'
69791         configure.in.
69792
69793         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69794         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69795
69796 1999-02-06  Jim Meyering  <meyering@ascend.com>
69797
69798         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69799         * m4/fnmatch.m4: Likewise.
69800         * m4/getgroups.m4: Likewise.
69801         * m4/lstat.m4: Likewise.
69802         * m4/malloc.m4: Likewise.
69803         * m4/putenv.m4: Likewise.
69804         * m4/realloc.m4: Likewise.
69805         * m4/regex.m4: Likewise.
69806         * m4/stat.m4: Likewise.
69807         * m4/strftime.m4: Likewise.
69808         Suggestion from Alain Magloire.
69809
69810         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69811         * m4/fnmatch.m4: Likewise.
69812         * m4/getgroups.m4: Likewise.
69813         * m4/getline.m4: Likewise.
69814         * m4/lstat.m4: Likewise.
69815         * m4/malloc.m4: Likewise.
69816         * m4/memcmp.m4: Likewise.
69817         * m4/putenv.m4: Likewise.
69818         * m4/realloc.m4: Likewise.
69819         * m4/regex.m4: Likewise.
69820         * m4/stat.m4: Likewise.
69821         * m4/strftime.m4: Likewise.
69822         Suggestion from Alain Magloire.
69823
69824         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69825         an argument.
69826
69827         * m4/regex.m4: Add a run-time Test for proper operation of
69828         re_compile_pattern.
69829
69830 1999-01-31  Jim Meyering  <meyering@ascend.com>
69831
69832         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69833
69834 1999-01-30  Jim Meyering  <meyering@ascend.com>
69835
69836         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69837
69838         * m4/jm-mktime.m4: Make this a wrapper around the official
69839         AM_FUNC_MKTIME rather than my private copy, now that the official one
69840         is up to date.
69841         * m4/mktime.m4: Remove file.
69842
69843         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69844         * m4/uptime.m4: Likewise.
69845         * m4/uintmax_t.m4: Likewise.
69846
69847 1999-01-28  Jim Meyering  <meyering@ascend.com>
69848
69849         * m4/jm-macros.m4: Use jm_AFS.
69850         * m4/afs.m4: New file (from fileutils' configure.in).
69851
69852         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69853         * m4/chown.m4: Likewise.
69854         * m4/d-ino.m4: Likewise.
69855         * m4/d-type.m4: Likewise.
69856         * m4/fnmatch.m4: Likewise.
69857         * m4/getgroups.m4: Likewise.
69858         * m4/gettext.m4: Likewise.
69859         * m4/jm-mktime.m4: Likewise.
69860         * m4/jm-winsz2.m4: Likewise.
69861         * m4/lcmessage.m4: Likewise.
69862         * m4/ls-mntd-fs.m4: Likewise.
69863         * m4/malloc.m4: Likewise.
69864         * m4/memcmp.m4: Likewise.
69865         * m4/putenv.m4: Likewise.
69866         * m4/realloc.m4: Likewise.
69867         * m4/st_mtim.m4: Likewise.
69868         * m4/strftime.m4: Likewise.
69869
69870 1999-01-16  Jim Meyering  <meyering@ascend.com>
69871
69872         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69873         (ARGMATCH_DIE_DECL): Define.
69874
69875 1999-01-12  Jim Meyering  <meyering@ascend.com>
69876
69877         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69878         Reported by Lars Hecking.
69879
69880 1999-01-10  Jim Meyering  <meyering@ascend.com>
69881
69882         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69883         gross kludge.
69884         * m4/inttypes_h.m4: Likewise.
69885         * m4/lstat.m4: Likewise.
69886         * m4/malloc.m4: Likewise.
69887         * m4/readdir.m4: Likewise.
69888         * m4/realloc.m4: Likewise.
69889         * m4/st_dm_mode.m4: Likewise.
69890         * m4/stat.m4: Likewise.
69891         * m4/utimbuf.m4: Likewise.
69892         * m4/utimes.m4: Likewise.
69893
69894         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69895         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69896         comments in config.h.in are meaningful.
69897
69898         * m4/jm-macros.m4: Require autoconf-2.13 here.
69899
69900         * m4/regex.m4: By default, don't use the included regex.c on systems
69901         with glibc 2.  Suggestion from Uli Drepper.
69902
69903 1999-01-02  Jim Meyering  <meyering@ascend.com>
69904
69905         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69906
69907 1998-12-18  Jim Meyering  <meyering@ascend.com>
69908
69909         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69910         Based on a suggestion from Lars Hecking.
69911
69912 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69913
69914         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69915
69916 1998-11-16  Jim Meyering  <meyering@ascend.com>
69917
69918         * m4/lfs.m4: Double-quote the `uname...` expression.
69919
69920 1998-11-14  Jim Meyering  <meyering@ascend.com>
69921
69922         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69923         * m4/stat.m4: Likewise.
69924
69925 1998-11-03  Jim Meyering  <meyering@ascend.com>
69926
69927         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69928         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69929
69930 1998-10-18  Jim Meyering  <meyering@ascend.com>
69931
69932         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69933
69934 1998-10-17  Jim Meyering  <meyering@ascend.com>
69935
69936         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69937         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69938         calls for those previously hard-coded headers.  Instead, take a new
69939         parameter.
69940         (jm_CHECK_DECLARATIONS): Reflect interface change.
69941         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69942         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69943
69944         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69945
69946 1998-10-14  Jim Meyering  <meyering@ascend.com>
69947
69948         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69949         instead of "TZ=America/Vancouver".  From Paul Eggert.
69950
69951 1998-10-11  Jim Meyering  <meyering@ascend.com>
69952
69953         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69954         This adds a test for a recently added compatibility fix for mktime.c.
69955         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69956
69957 1998-09-27  Jim Meyering  <meyering@ascend.com>
69958
69959         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69960
69961         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69962         ../configure.in, including a change from Gordon Matzigkeit to allow
69963         cross-compiling for the Hurd.
69964
69965         * m4/glibc.m4: New file/macro to test for the GNU C Library
69966         versions 1 and 2.  From Gordon Matzigkeit.
69967         Indent.
69968
69969 1998-09-21  Jim Meyering  <meyering@ascend.com>
69970
69971         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69972
69973 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69974
69975         Port nanosecond-resolution times to UnixWare 2.1.2 and
69976         pedantic Solaris 2.6.
69977
69978         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69979         AC_STRUCT_ST_MTIM.
69980         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69981         Generate name of ns member, instead of just 1 or undef.
69982         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69983
69984 1998-08-15  Jim Meyering  <meyering@ascend.com>
69985
69986         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69987         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69988         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69989         instead of jm_TYPE_SSIZE_T.
69990
69991 1998-08-12  Jim Meyering  <meyering@ascend.com>
69992
69993         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69994
69995 1998-08-02  Jim Meyering  <meyering@ascend.com>
69996
69997         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69998         in acconfig.h manually.
69999
70000 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70001
70002         * m4/st_mtim.m4: New file.
70003
70004 1998-07-28  Jim Meyering  <meyering@ascend.com>
70005
70006         * m4/utimes.m4: Undef stat.
70007
70008 1998-07-25  Jim Meyering  <meyering@ascend.com>
70009
70010         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70011         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70012
70013 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70014
70015         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70016         uid and gid actually remain unchanged.
70017
70018 1998-07-07  Jim Meyering  <meyering@ascend.com>
70019
70020         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70021
70022 1998-07-04  Jim Meyering  <meyering@ascend.com>
70023
70024         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70025         to prove that this macro can be used in packages without regex.c.
70026
70027 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70028
70029         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70030         is to be used.
70031
70032 1998-07-03  Jim Meyering  <meyering@ascend.com>
70033
70034         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70035
70036         * m4/gettext.m4: New file -- from gettext-0.10.35.
70037         * m4/lcmessage.m4: Likewise.
70038         * m4/progtest.m4: Likewise.
70039
70040         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70041         * m4/jm-macros.m4: Require the new macro.
70042
70043 1998-06-29  Jim Meyering  <meyering@ascend.com>
70044
70045         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70046         for the definition of NGROUPS (used in a system header included
70047         by sys/mount.h).
70048
70049 1998-06-28  Jim Meyering  <meyering@ascend.com>
70050
70051         * m4/ls-mntd-fs.m4: New file.
70052         * m4/fstypename.m4: New file.
70053
70054         * m4/jm-macros.m4: Require the new macro.
70055         * m4/jm-glibc-io.m4: New file.
70056
70057 1998-05-19  Jim Meyering  <meyering@ascend.com>
70058
70059         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70060         * m4/lchown.m4: New file.
70061
70062         * m4/Makefile.am.in: New file.
70063         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70064
70065 1998-05-14  Jim Meyering  <meyering@ascend.com>
70066
70067         * m4/Makefile.am (EXTRA_DIST): Add them.
70068         * m4/jm-macros.m4: New file.
70069         * m4/utimbuf.m4: New file.
70070
70071 1998-05-12  Jim Meyering  <meyering@ascend.com>
70072
70073         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70074
70075 1998-05-11  Jim Meyering  <meyering@ascend.com>
70076
70077         * m4/isc-posix.m4: New file.
70078
70079 1998-05-10  Jim Meyering  <meyering@ascend.com>
70080
70081         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70082
70083 1998-05-09  Jim Meyering  <meyering@ascend.com>
70084
70085         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70086         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70087         with automake.
70088
70089         * m4/ssize_t.m4: New file.
70090         * m4/mktime.m4: Remove file -- the new automake has this now.
70091
70092 1998-04-26  Jim Meyering  <meyering@ascend.com>
70093
70094         * m4/assert.m4: New file.
70095         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70096
70097 1998-04-05  Jim Meyering  <meyering@ascend.com>
70098
70099         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70100         (jm_PREREQ): Use it here.
70101
70102 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70103
70104         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70105         in acconfig.h.
70106
70107 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70108
70109         * m4/prereq.m4: New file.
70110         * m4/error.m4: New file.
70111         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70112
70113 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70114
70115         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70116         cache-check for the same variable -- that defeated the purpose of
70117         the test; the test program was never run.  This was a problem only
70118         on systems with losing getline functions -- HP-UX 10.20 is one.
70119         Reported by Bjorn Helgaas.
70120
70121 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70122
70123         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70124
70125 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70126
70127         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70128
70129         * m4/const.m4: New file.  Use an initializer in this declaration
70130         typedef int charset[2]; const charset x;
70131         Reported by Bob Glickstein.
70132
70133 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70134
70135         * m4/chown.m4: Fix reversed types on -1 args to chown.
70136         From Kaveh Ghazi.
70137
70138 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70139
70140         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70141         Add lseek and memchr.
70142
70143         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70144         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70145         have a 20-character limit on names.
70146
70147 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70148
70149         * m4/inttypes_h.m4: New file.
70150         * m4/uintmax_t.m4: New file.
70151         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70152
70153
70154         -----
70155
70156         Local Variables:
70157         coding: utf-8
70158         End:
70159
70160         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70161
70162         Copying and distribution of this file, with or without
70163         modification, are permitted provided the copyright notice
70164         and this notice are preserved.